BioLib  3.7.0
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)
319 {
320 ROIs.Add(first);
321 }

Member Function Documentation

◆ FromROIs()

Cell BioLib.Cell.FromROIs ( ROI first,
ROI[] rois )
323 {
324 if (first == null)
325 throw new ArgumentNullException(nameof(first), "First ROI cannot be null.");
326
327 if (rois == null || rois.Length == 0)
328 throw new ArgumentNullException(nameof(rois), "ROIs array cannot be null or empty.");
329
330 // Create the cell using the first ROI
331 var cell = new Cell(first);
332
333 // Maintain a set of unused ROIs
334 var unusedROIs = new List<ROI>(rois);
335
336 for (int i = 0; i < rois.Length; i++)
337 {
338 ROI r = rois[i];
339 if (r.BoundingBox.IntersectsWith(first.GetCenter()))
340 {
341
342 }
343 }
344
345 return cell;
346 }
Definition Bio.cs:307
Definition ROI.cs:27

Property Documentation

◆ Depth

int BioLib.Cell.Depth
get
311 {
312 get { return ROIs.Count; }
313 }

◆ Volume

VolumeD BioLib.Cell.Volume
getset
315 {
316 get; set;
317 }

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