![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Measure allowing to compute Lowitz local histogram module. More...
Classes | |
| class | ipsdk::imaproc::shape::analysis::LocalHistogramModuleMsr |
| Measurement object for measure LocalHistogramModule. More... | |
| class | ipsdk::imaproc::shape::analysis::LocalHistogramModuleMsrInfo |
| Information object for measure LocalHistogramModule. More... | |
| class | ipsdk::imaproc::shape::analysis::LocalHistogramModuleMsrParams |
| Parameter object for measure LocalHistogramModule. More... | |
Measure allowing to compute Lowitz local histogram module.
This measure computes the local histogram module [1], of image pixel/voxel intensity values associated to a 2d/3d shape. The higher is the measure, the more homogeneous is the shape. Homogeneous shapes yields 1/NumericLimits<ipReal64>::epsilon().
This measure is based on the analysis of the shape histogram (see Histogram). Given the histogram parameters allowing to determine (among others) the number of classes
and a global range for the histogram, this measure is computed as the Mahalanobis distance between the actual histogram
and the theoretical histogram
for which each bin has the same value. This distance can be expressed as :
Where
is the number of classes in the histogram,
is the expected value of the
bin of the histogram
and
is its variance.
Let us define
as the value of the normalized histogram :
, with
being the number of pixels in the shape. Since this measure is based on Bernoulli distribution, the expected value of
and its variance are :
Moreover the expected value (and hence probability) and variance of the theoretical histogram
for each bin
are:
With
draws (1 per pixel in the shape), we can rewrite the Mahalanobis distance as follows :
Here is an example of energy measurement in 2d case :
[1] G. Lowitz "Can a Local Histogram Really Map Texture Information?". Pattern Recognition, 16, 2, 1983, pp 141–147.
Measure allowing to compute Lowitz local histogram module
| Measure Type | Measure Unit Type | Parameter Type | Result Type | Shape Requirements |
|---|---|---|---|---|
Generic |
None |
|
Value (ipsdk::ipReal64) |
Row Intersections |
This is a generic measure
This measure can be used in 2d and 3d case
Measure LocalHistogramModule is not associated to any unit [ipsdk::shape::analysis::eMsrUnitFormat::eMUF_NoUnit]
Measure LocalHistogramModule is associated to LocalHistogramModuleMsrParams parameters
Measure LocalHistogramModule is associated to ipsdk::shape::analysis::ValueMeasureResult<ipsdk::ipReal64> results
Measure LocalHistogramModule requires row intersections from shape data
Measure LocalHistogramModule depends on following measures :
| Measure Mode | Measure Name | Measure Type | Measure Parameters |
|---|---|---|---|
| eMVP_2d3d | Histogram | Histogram | createHistogramMsrParams(_pMsrParams->getNode<LocalHistogramModuleMsrParams::HistoParams>()) |
Generic example in 2d case :
Generic example in 3d case :
1.8.14