BioLib  3.6.2
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]
 

Detailed Description

Definition at line 1368 of file Bio.cs.

Constructor & Destructor Documentation

◆ Cell()

BioLib.Cell.Cell ( ROI first)

Definition at line 1380 of file Bio.cs.

1381 {
1382 ROIs.Add(first);
1383 }

Member Function Documentation

◆ FromROIs()

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

Definition at line 1384 of file Bio.cs.

1385 {
1386 if (first == null)
1387 throw new ArgumentNullException(nameof(first), "First ROI cannot be null.");
1388
1389 if (rois == null || rois.Length == 0)
1390 throw new ArgumentNullException(nameof(rois), "ROIs array cannot be null or empty.");
1391
1392 // Create the cell using the first ROI
1393 var cell = new Cell(first);
1394
1395 // Maintain a set of unused ROIs
1396 var unusedROIs = new List<ROI>(rois);
1397
1398 for (int i = 0; i < rois.Length; i++)
1399 {
1400 ROI r = rois[i];
1401 if (r.Rect.IntersectsWith(first.GetCenter()))
1402 {
1403
1404 }
1405 }
1406
1407 return cell;
1408 }

Member Data Documentation

◆ ROIs

List<ROI> BioLib.Cell.ROIs = new List<ROI>()

Definition at line 1370 of file Bio.cs.

Property Documentation

◆ Depth

int BioLib.Cell.Depth
get

Definition at line 1372 of file Bio.cs.

1373 {
1374 get { return ROIs.Count; }
1375 }

◆ Volume

VolumeD BioLib.Cell.Volume
getset

Definition at line 1376 of file Bio.cs.

1377 {
1378 get; set;
1379 }

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