scalar = | globalEntropyMsr2d (inImg) |
scalar = | globalEntropyMsr2d (inImg,histoPrms) |
Compute 2d image global entropy.
The global entropy of an image is a measure calculated using the image histogram, which gives information about the image disorder. This measure is calculated with the following formula :
Where is the image domain, and
is the probability of appearance of a pixel with the value i.
Two wrappers can be called : the globalEntropyMsr2d wrapper is only used to compute the global entropy measure on a grey level 2d image, whereas the multiSlice_globalEntropyMsr2d wrapper must be used for more complex data (volume, sequence and/or color). In the second case, a measure is calculated for each 2d plan forming the input images.