![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
calculates the histogram for each 2d plan of the portion of an input image More...
calculates the histogram for each 2d plan of the portion of an input image
This algorithm computes the histogram on a subset of pixels for each 2d plan of a given input image. The subsets of pixels to consider are defined by the set of pixels whose values is different from 0 in the associated mask image.
The mask image is binary, and must have the same sizes as the input image.
Two wrappers can be called : the histogramMaskMsr2d wrapper is only used to compute the histogram measurements on a grey level 2d image, whereas the multiSlice_histogramMaskMsr2d wrapper must be used for more complex data (volume, sequence and/or color).
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] image for processing operation | X |
| ipsdk::imaproc::attr::InMaskImg | [Input] Binary image for masking operation | X |
| ipsdk::imaproc::attr::InOptHistoMsrParams | [Input Optional] histogram measure parameters | X |
| ipsdk::imaproc::attr::OutPIHistogram | [Output] Plan indexed collection of histogram properties | ipsdk::imaproc::fromImage (_pOutPIHistogram, _pInImg) |
Global rule description for algorithm :
ipsdk::imaproc::matchImagePlans (_pOutPIHistogram,_pInImg,eImagePlansMatchPolicy::eIPMP_ZCT) &&
ipsdk::imaproc::matchSize (_pInImg,_pInMaskImg) &&
(ipsdk::processor::If (
ipsdk::processor::isSet (_pInOptHistoMsrParams), ipsdk::imaproc::matchImageRange<ipsdk::imaproc::attr::HistoMsrParams::Min>(_pInImg,_pInOptHistoMsrParams) && ipsdk::imaproc::matchImageRange<ipsdk::imaproc::attr::HistoMsrParams::Max>(_pInImg,_pInOptHistoMsrParams) && ipsdk::processor::isGreater<ipsdk::imaproc::attr::HistoMsrParams::BinWidth>(_pInOptHistoMsrParams,0),
ipsdk::processor::none ()))
| IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::HistogramDataPtr ipsdk::imaproc::glbmsr::histogramMaskMsr2d | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImageConstPtr & | pInMaskImg | ||
| ) |
wrapper function for calculates the histogram for each 2d plan of an input image intersected with a mask
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::PlanIndexedHistogramDataPtr ipsdk::imaproc::glbmsr::multiSlice_histogramMaskMsr2d | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImageConstPtr & | pInMaskImg | ||
| ) |
wrapper function for calculates the histogram for each 2d plan of an input image intersected with a mask
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::HistogramDataPtr ipsdk::imaproc::glbmsr::histogramMaskMsr2d | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImageConstPtr & | pInMaskImg, | ||
| const ipsdk::imaproc::attr::HistoMsrParamsConstPtr & | pHistoPrms | ||
| ) |
wrapper function for calculates the histogram for each 2d plan of an input image intersected with a mask
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::PlanIndexedHistogramDataPtr ipsdk::imaproc::glbmsr::multiSlice_histogramMaskMsr2d | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImageConstPtr & | pInMaskImg, | ||
| const ipsdk::imaproc::attr::HistoMsrParamsConstPtr & | pHistoPrms | ||
| ) |
wrapper function for calculates the histogram for each 2d plan of an input image intersected with a mask
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14