BioLib  3.9.1
A GUI-less version of Bio .NET library for editing & annotating various microscopy image formats.
Loading...
Searching...
No Matches
BioLib.Cell Class Reference

Public Member Functions

 Cell (ROI first)
 
Cell FromROIs (ROI first, ROI[] rois)
 

Public Attributes

List< ROIROIs = new List<ROI>()
 

Properties

int Depth [get]
 
VolumeD Volume [get, set]
 

Constructor & Destructor Documentation

◆ Cell()

BioLib.Cell.Cell ( ROI first)
331 {
332 ROIs.Add(first);
333 }

Member Function Documentation

◆ FromROIs()

Cell BioLib.Cell.FromROIs ( ROI first,
ROI[] rois )
335 {
336 if (first == null)
337 throw new ArgumentNullException(nameof(first), "First ROI cannot be null.");
338
339 if (rois == null || rois.Length == 0)
340 throw new ArgumentNullException(nameof(rois), "ROIs array cannot be null or empty.");
341
342 // Create the cell using the first ROI
343 var cell = new Cell(first);
344
345 // Maintain a set of unused ROIs
346 var unusedROIs = new List<ROI>(rois);
347
348 for (int i = 0; i < rois.Length; i++)
349 {
350 ROI r = rois[i];
351 if (r.BoundingBox.IntersectsWith(first.GetCenter()))
352 {
353
354 }
355 }
356
357 return cell;
358 }
Definition Bio.cs:319
Definition ROI.cs:27

Property Documentation

◆ Depth

int BioLib.Cell.Depth
get
323 {
324 get { return ROIs.Count; }
325 }

◆ Volume

VolumeD BioLib.Cell.Volume
getset
327 {
328 get; set;
329 }

The documentation for this class was generated from the following file: