![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
calculates the histogram for each 2d plan of an input image More...
calculates the histogram for each 2d plan of an input image
The histogram of an image is generally used as a tool to visualize the distribution of grey levels of the pixels of an image.
This algorithm computes the histogram for each 2d plan of the input image. In other words, the results will be computed :
Two wrappers can be called : the histogramMsr2d wrapper is only used to compute the histogram measurements on a grey level 2d image, whereas the multiSlice_histogramMsr2d wrapper must be used for more complex data (volume, sequence and/or color).
Consider:
, whose levels are encoded on a given data type
. We will note minimal and maximal values of
and
(ex.: for
=uint8,
equals to 0 and
equals to 255; for
=int8,
equals to -128 and
equals to 127)
;
if image levels are encoded on integers,
otherwise
, with
and 
Then, we can split the range
in
intervals
(
integer,
) and one interval
. These intervals are adjacent.
If images levels are encoded on floating values, then
Else,
Then, the histogram of input parameters
,
and
computed on
is the collection
(
integer,
), with
the number of pixels in
whose levels belong to
.
There are different ways to compute the histogram of an input image:
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] image for processing 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::processor::ifIsSet (_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)))
| IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::HistogramDataPtr ipsdk::imaproc::glbmsr::histogramMsr2d | ( | const image::ImageConstPtr & | pInImg | ) |
wrapper function for calculates the histogram for each 2d plan of an input image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::PlanIndexedHistogramDataPtr ipsdk::imaproc::glbmsr::multiSlice_histogramMsr2d | ( | const image::ImageConstPtr & | pInImg | ) |
wrapper function for calculates the histogram for each 2d plan of an input image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::HistogramDataPtr ipsdk::imaproc::glbmsr::histogramMsr2d | ( | const image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::HistoMsrParamsConstPtr & | pHistoPrms | ||
| ) |
wrapper function for calculates the histogram for each 2d plan of an input image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLGLOBALMEASURE_API ipsdk::imaproc::attr::PlanIndexedHistogramDataPtr ipsdk::imaproc::glbmsr::multiSlice_histogramMsr2d | ( | const image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::HistoMsrParamsConstPtr & | pHistoPrms | ||
| ) |
wrapper function for calculates the histogram for each 2d plan of an input image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14