Topic "stats"

STATS			    Monash Image Library			STATS

Another strucutre which is defined in image.h is ISTATS:

typedef struct ISTATS_T
{
        double  min;            /* Minimum Value */
        double  max;            /* Maximum Value */
        double  mean;           /* Mean */
        double  sd;             /* Standard Deviation */
        double  entropy;        /* Markovian Entropy */
} 
ISTATS;

This structure is used to store statistics of an image generated by the
function i_stats. This function allocates the memory for this structure, and
it is the users responsibility to free that memory when the structure no
longer required.

The entropy value is only an estimation. The accuracy for this value is much
greater for integer based images, rather than floating point as these values
are rounded to integers. Therefore, an image with a range of pixel values
between 0 and 1 would generate a useless entropy value. All other statistics
should be accurate.

This structure should be expanded in future to accommodate more statistics.


Related Functions

ientropy calculate the entropy of an image
imaxvalue calculate the maximum value of the image
imean calculate the mean of the image
iminvalue calculate the minimum value of the image
irgbcorrelate calcuate the correlation coeficients between the bands of a three band image. Returns an array of three doubles as there are three combinations of coefficients eg Red-Green, Red-Blue and Green-Blue.
istats calculate the mean, min, max, standard deviation and entropy of the image.
istddev calculate the standard deviation of an image
itexture compute texture as an image (out is 64 bpp) cmd: mean,variance,entropy,maximality,uniformity,contrast

Other Topics

index | userguide | full | arithmetic | basic | binary | blocks | colour | compress | display | docs | fft | hist | image | io | makefile | masks | memory | misc | morph | pixel | rgb | stats | transform | error | mapping