BioLib  4.1.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)
342 {
343 ROIs.Add(first);
344 }

Member Function Documentation

◆ FromROIs()

Cell BioLib.Cell.FromROIs ( ROI first,
ROI[] rois )
346 {
347 if (first == null)
348 throw new ArgumentNullException(nameof(first), "First ROI cannot be null.");
349
350 if (rois == null || rois.Length == 0)
351 throw new ArgumentNullException(nameof(rois), "ROIs array cannot be null or empty.");
352
353 // Create the cell using the first ROI
354 var cell = new Cell(first);
355
356 // Maintain a set of unused ROIs
357 var unusedROIs = new List<ROI>(rois);
358
359 for (int i = 0; i < rois.Length; i++)
360 {
361 ROI r = rois[i];
362 if (r.BoundingBox.IntersectsWith(first.GetCenter()))
363 {
364
365 }
366 }
367
368 return cell;
369 }
Definition Bio.cs:330
Definition ROI.cs:27

Property Documentation

◆ Depth

int BioLib.Cell.Depth
get
334 {
335 get { return ROIs.Count; }
336 }

◆ Volume

VolumeD BioLib.Cell.Volume
getset
338 {
339 get; set;
340 }

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