HistogramAnalyzer¶
Inheritance diagram¶
Classes¶
HistogramAnalyzer¶
-
class
ORSModel.ors.HistogramAnalyzer¶ Bases:
ORSModel.ors.Unmanaged-
fillHistogram1DFromChannel(self, IHistogramData: ORSModel.ors.HistogramData, IChannel1: ORSModel.ors.Channel, tChannel: int, IROI: ORSModel.ors.ROI, tROI: int) → None¶ Fill a 1D histogram from the channel values, over the voxels specified by theROI.
Parameters: - IHistogramData (ORSModel.ors.HistogramData) – the 1D histogram to fill (an HistogramData)
- IChannel1 (ORSModel.ors.Channel) – the channel (an Channel)
- tChannel (int) – the t index of the channel (an unsigned int)
- IROI (ORSModel.ors.ROI) – the ROI specifying what channel voxels to include (an ROI). If this parameter is given as nullptr, all channel voxels will be used.
- tROI (int) – the t index of the ROI (an unsigned int)
-
fillHistogram1DFromChannelSubset(self, IHistogramData: ORSModel.ors.HistogramData, IChannel1: ORSModel.ors.Channel, tChannel: int, xmin: int, ymin: int, zmin: int, xmax: int, ymax: int, zmax: int) → None¶ Fill a 1D histogram from the channel values, over a subset of the volume.
Parameters: - IHistogramData (ORSModel.ors.HistogramData) – the 1D histogram to fill (an HistogramData)
- IChannel1 (ORSModel.ors.Channel) – the channel (an Channel)
- tChannel (int) – the t index of the channel (an unsigned int)
- xmin (int) – the minimal x index of the channel to use (an unsigned int)
- ymin (int) – the minimal y index of the channel to use (an unsigned int)
- zmin (int) – the minimal z index of the channel to use (an unsigned int)
- xmax (int) – the maximal x index of the channel to use (an unsigned int)
- ymax (int) – the maximal y index of the channel to use (an unsigned int)
- zmax (int) – the maximal z index of the channel to use (an unsigned int)
-
fillHistogram1DFromCollection(self, IHistogramData: ORSModel.ors.HistogramData, ICollection1: ORSModel.ors.SequenceableCollection, IFilterCollection: ORSModel.ors.SequenceableCollection, IArrayBinIndexes: ORSModel.ors.ArrayUnsignedLONGLONG) → None¶ Fill a 1D histogram from the collection values, over the elements specified by the filter collection.
Parameters: - IHistogramData (ORSModel.ors.HistogramData) – the 1D histogram to fill (an HistogramData)
- ICollection1 (ORSModel.ors.SequenceableCollection) – the collection values (a SequenceableCollection)
- IFilterCollection (ORSModel.ors.SequenceableCollection) – the filter collection (a SequenceableCollection). If this parameter is given as nullptr, all elements of the collection values will be used.
- IArrayBinIndexes (ArrayUnsignedLONGLONG) – an array filled with the bin index of each element. If this parameter is given as nullptr, these indexes won’t be returned.
-
fillHistogram1DFromCollectionSubset(self, IHistogramData: ORSModel.ors.HistogramData, ICollection1: ORSModel.ors.SequenceableCollection, indexStart: int, indexEnd: int) → None¶ Fill a 1D histogram from the collection values, over a subset of the collection.
Parameters: - IHistogramData (ORSModel.ors.HistogramData) – the 1D histogram to fill (an HistogramData)
- ICollection1 (ORSModel.ors.SequenceableCollection) – the collection (a SequenceableCollection)
- indexStart (int) – the first index of the collection to use (an uint64_t)
- indexEnd (int) – the last index of the collection to use (an uint64_t)
-
fillHistogram2DFromChannels(self, IHistogramData: ORSModel.ors.HistogramData, IChannel1: ORSModel.ors.Channel, IChannel2: ORSModel.ors.Channel, tChannel1: int, tChannel2: int, IROI: ORSModel.ors.ROI, tROI: int, IProgress: ORSModel.ors.Progress) → None¶ Fill a 2D histogram from the channels values, over the voxels specified by theROI.
Parameters: - IHistogramData (ORSModel.ors.HistogramData) – the 2D histogram to fill (an HistogramData)
- IChannel1 (ORSModel.ors.Channel) – the channel of the first dimension (an Channel)
- IChannel2 (ORSModel.ors.Channel) – the channel of the second dimension (an Channel)
- tChannel1 (int) – the t index of the channel of the first dimension (an unsigned int)
- tChannel2 (int) – the t index of the channel of the second dimension (an unsigned int)
- IROI (ORSModel.ors.ROI) – the ROI specifying what channel voxels to include (an ROI). If this parameter is given as nullptr, all channel voxels will be used.
- tROI (int) – the t index of the ROI (an unsigned int)
- IProgress (ORSModel.ors.Progress) –
-
fillHistogram2DFromChannelsSubset(self, IHistogramData: ORSModel.ors.HistogramData, IChannel1: ORSModel.ors.Channel, IChannel2: ORSModel.ors.Channel, tChannel: int, xmin: int, ymin: int, zmin: int, xmax: int, ymax: int, zmax: int) → None¶ Fill a 2D histogram from the channels values, over a subset of the volume.
Parameters: - IHistogramData (ORSModel.ors.HistogramData) – the 2D histogram to fill (an HistogramData)
- IChannel1 (ORSModel.ors.Channel) – the channel of the first dimension (an Channel)
- IChannel2 (ORSModel.ors.Channel) – the channel of the second dimension (an Channel)
- tChannel (int) – the t index of the channels (an unsigned int)
- xmin (int) – the minimal x index of the channels to use (an unsigned int)
- ymin (int) – the minimal y index of the channels to use (an unsigned int)
- zmin (int) – the minimal z index of the channels to use (an unsigned int)
- xmax (int) – the maximal x index of the channels to use (an unsigned int)
- ymax (int) – the maximal y index of the channels to use (an unsigned int)
- zmax (int) – the maximal z index of the channels to use (an unsigned int)
-
fillHistogram2DFromCollections(self, IHistogramData: ORSModel.ors.HistogramData, ICollection1: ORSModel.ors.SequenceableCollection, ICollection2: ORSModel.ors.SequenceableCollection, IFilterCollection: ORSModel.ors.SequenceableCollection, IArrayBinIndexes: ORSModel.ors.ArrayUnsignedLONGLONG) → None¶ Fill a 2D histogram from the collections values, over the elements specified by the filter collection.
Parameters: - IHistogramData (ORSModel.ors.HistogramData) – the 2D histogram to fill (an HistogramData)
- ICollection1 (ORSModel.ors.SequenceableCollection) – the collection values of the first dimension (a SequenceableCollection)
- ICollection2 (ORSModel.ors.SequenceableCollection) – the collection values of the second dimension (a SequenceableCollection)
- IFilterCollection (ORSModel.ors.SequenceableCollection) – the filter collection (a SequenceableCollection). If this parameter is given as nullptr, all elements of the collections values will be used.
- IArrayBinIndexes (ArrayUnsignedLONGLONG) – an array filled with the linear bin index of each element. If this parameter is given as nullptr, these indexes won’t be returned.
-
fillHistogram2DFromCollectionsSubset(self, IHistogramData: ORSModel.ors.HistogramData, ICollection1: ORSModel.ors.SequenceableCollection, ICollection2: ORSModel.ors.SequenceableCollection, indexStart: int, indexEnd: int) → None¶ Fill a 2D histogram from the collections values, over a subset of the collection.
Parameters: - IHistogramData (ORSModel.ors.HistogramData) – the 2D histogram to fill (an HistogramData)
- ICollection1 (ORSModel.ors.SequenceableCollection) – the collection of the first dimension (a SequenceableCollection)
- ICollection2 (ORSModel.ors.SequenceableCollection) – the collection of the second dimension (a SequenceableCollection)
- indexStart (int) – the first index of the collections to use (an uint64_t)
- indexEnd (int) – the last index of the collections to use (an uint64_t)
-
getClassNameStatic() → str¶ getClassNameStatic
Returns: output (str) –
-
getOtsuThreshold(self, IHistogramData: ORSModel.ors.HistogramData, dimension: int) → float¶ Computes the Otsu threshold value along a dimension.
Parameters: - IHistogramData (ORSModel.ors.HistogramData) – the ND histogram (an HistogramData)
- dimension (int) – the dimension along which the threshold is computed (an unsigned int)
Returns: output (float) –
-
mapHistogram2DLabels(self, IHistogramData: ORSModel.ors.HistogramData, ILMRHistogramLabels: ORSModel.ors.MultiROI, IChannel1: ORSModel.ors.Channel, IChannel2: ORSModel.ors.Channel, tChannel1: int, tChannel2: int, IROI: ORSModel.ors.ROI, tROI: int, ILMROutput: ORSModel.ors.MultiROI, tLMR: int) → None¶ Map labels of a LMR having the same shape as the 2D histogram into a LMR using the channels values.
Parameters: - IHistogramData (ORSModel.ors.HistogramData) – the 2D histogram (an HistogramData)
- ILMRHistogramLabels (ORSModel.ors.MultiROI) – the LMR of labels (histogram classification) (an MultiROI)
- IChannel1 (ORSModel.ors.Channel) – the channel of the first dimension (an Channel)
- IChannel2 (ORSModel.ors.Channel) – the channel of the second dimension (an Channel)
- tChannel1 (int) – the t index of the channel of the first dimension (an unsigned int)
- tChannel2 (int) – the t index of the channel of the second dimension (an unsigned int)
- IROI (ORSModel.ors.ROI) – the ROI specifying what channel voxels to include (an ROI). If this parameter is given as nullptr, all channel voxels will be used.
- tROI (int) – the t index of the ROI (an unsigned int)
- ILMROutput (ORSModel.ors.MultiROI) – the LMR receiving the labels (volume segmentation) (an MultiROI)
- tLMR (int) – the t index of the LMR (an unsigned int)
-
none() → HistogramAnalyzer¶ Returns: output (HistogramAnalyzer) –
-
Unmanaged¶
-
class
ORSModel.ors.Unmanaged Bases:
ORSModel.ors.ORSBaseClassbrief_description: Abstract class for objects that are not managed by the core library. author: Eric Fournier. All other members of ORS participated. version: 1.0 date: Jan 2005
-
atomicLoad(sFilename: str) → Unmanaged Creates an object from a file where an object was saved.
Parameters: sFilename (str) – path of the file to load Returns: output (Unmanaged) – a managed object, or none() if the load fails
-
atomicSave(self, aFilename: str) → int Saves the object to a file.
Parameters: aFilename (str) – path of the file to save Returns: output (int) – 0 if successful, otherwise an error code
-
createFromPythonRepresentation(aPythonRepresentation: str) → Unmanaged Create aUnmanaged Object from a python representation a static method.
Parameters: aPythonRepresentation (str) – Returns: output (ORSModel.ors.Unmanaged) –
-
fromPythonRepresentation(self, aPythonRepresentation: str) → bool Create aUnmanaged object from a Python string representation.
Parameters: aPythonRepresentation (str) – a Python evaluable string representation (a string) Returns: output (bool) – TRUE if parsing worked, FALSE otherwise (a bool)
-
classmethod
getAllSubclasses(outputCollection=None)
-
classmethod
getClassDenomination()
-
static
getClassFromProgId(progId)
-
getClassName(self) → str Retrieves the class name of the core object wrapped by this Interface object.
Returns: output (str) –
-
getClassNameStatic() → str getClassNameStatic
Returns: output (str) –
-
getDataChecksum(self) → str Returns: output (str) –
-
getIsInstanceOf(self, pProgId: str) → bool Queries the object to know if it is an instance of a certain class.
Parameters: pProgId (str) – Returns: output (bool) –
-
classmethod
getIsSubclassOf(parentClass)
-
getPythonRepresentation(self) → str Gets a Python evaluable string representation.
Returns: output (str) –
-
isNone(self) → bool Checks if the receiver is none.
Returns: output (bool) –
-
isNotNone(self) → bool Checks if the receiver is not none.
Returns: output (bool) –
-
none() → Unmanaged Returns: output (Unmanaged) –
-
ORSBaseClass¶
-
class
ORSModel.ors.ORSBaseClass brief_description: An abstract class from which all objects issued from the author: Eric Fournier. All other members of ORS participated. version: 1.0 date: Jan 2005
-
getPythonTraceBack() → typing.List[str] Set the python traceback for a call from python.
Returns: output (typing.List[str]) –
-
isManaged(self) → bool Returns: output (bool) –
-
isNone(self) → bool Returns: output (bool) –
-
setPythonTraceBack(tb: ORSModel.ors.typing.List[str]) → None Set the python traceback for a call from python.
Parameters: tb (typing.List[str]) –
-