![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Computes the ratio between the number of pivoxels and the total image size. More...
Computes the ratio between the number of pivoxels and the total image size.
This algorithm computes the ratio between the 3D objects volumes and the total image volume. Let VolumePercent(i) be the result for the ith object, Volume(i) its volume and (sizeX, sizeY, sizeZ) the image size, the calculation can be expressed as follows:
In the case of binary images, the result contains the volume ratio for the background (voxels set to 0) at index 0 and the volume ratio for the foreground (voxels set to 1) at index 1.
In the case of label images, the result contains the volume ratio for the background (voxels set to 0) at index 0 and then the volume ratio for each label.
Here is an example of result for a label image:
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InBinLabImg3d | [Input] binary or label 3d image for processing operation | X |
| ipsdk::imaproc::attr::InOptMaskImg | [Input Optional] Binary image for masking operation | X |
| ipsdk::imaproc::attr::OutPIValues | [Output] plan indexed collection of values | ipsdk::imaproc::fromImageButVolume (_pOutPIValues, _pInBinLabImg3d) |
Global rule description for algorithm :
ipsdk::processor::If (
ipsdk::processor::isSet (_pInOptMaskImg),
ipsdk::imaproc::matchSize (_pInBinLabImg3d,_pInOptMaskImg),
ipsdk::processor::none ()) &&
ipsdk::imaproc::matchImagePlans (_pOutPIValues,_pInBinLabImg3d,eImagePlansMatchPolicy::eIPMP_CT)
| IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::DoublesPtr ipsdk::imaproc::glbmsr::volumePercent3dMsr | ( | const ipsdk::image::ImageConstPtr & | pInImg | ) |
wrapper function for Computes the ratio between the number of pivoxels and the total image size.
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::DoublesPtr ipsdk::imaproc::glbmsr::volumePercent3dMsr | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::image::ImageConstPtr & | pInMaskImg | ||
| ) |
wrapper function for Computes the ratio between the number of pivoxels and the total image size.
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::PlanIndexedDoublesPtr ipsdk::imaproc::glbmsr::multiSlice_volumePercent3dMsr | ( | const ipsdk::image::ImageConstPtr & | pInImg | ) |
wrapper function for Computes the ratio between the number of pivoxels and the total image size.
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::PlanIndexedDoublesPtr ipsdk::imaproc::glbmsr::multiSlice_volumePercent3dMsr | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::image::ImageConstPtr & | pInMaskImg | ||
| ) |
wrapper function for Computes the ratio between the number of pivoxels and the total image size.
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14