SMIL 1.1.2
|
Common useful measures on images, not based on Morphological operations. More...
Common useful measures on images, not based on Morphological operations.
Functions | |
template<class T > | |
size_t | area (const Image< T > &imIn) |
area() - Area of an image | |
template<class T > | |
double | vol (const Image< T > &imIn) |
vol() - Volume of an image | |
template<class T > | |
double | volume (const Image< T > &imIn) |
colume() - Volume of an image | |
template<class T > | |
Vector_double | meanVal (const Image< T > &imIn, bool onlyNonZero=false) |
meanVal() - Mean value and standard deviation | |
template<class T > | |
T | minVal (const Image< T > &imIn, bool onlyNonZero=false) |
minVal() - Min value of an image | |
template<class T > | |
T | minVal (const Image< T > &imIn, Point< UINT > &pt, bool onlyNonZero=false) |
minVal() - Min value of an image | |
template<class T > | |
T | maxVal (const Image< T > &imIn, bool onlyNonZero=false) |
maxVal() - Max value of an image | |
template<class T > | |
T | maxVal (const Image< T > &imIn, Point< UINT > &pt, bool onlyNonZero=false) |
maxVal() - Max value of an image | |
template<class T > | |
vector< T > | rangeVal (const Image< T > &imIn, bool onlyNonZero=false) |
rangeVal() - Min and Max values of an image | |
template<class T > | |
vector< T > | valueList (const Image< T > &imIn, bool onlyNonZero=true) |
valueList() - Get the list of the pixel values present in the image | |
template<class T > | |
T | modeVal (const Image< T > &imIn, bool onlyNonZero=true) |
modeVal() - Get the mode of the histogram present in the image, i.e. | |
template<class T > | |
T | medianVal (const Image< T > &imIn, bool onlyNonZero=true) |
medianVal() - Get the median of the image histogram. | |
template<class T > | |
vector< T > | profile (const Image< T > &im, size_t x0, size_t y0, size_t x1, size_t y1, size_t z=0) |
profile() - Get image values along a line defined by the points and in the slice . | |
template<class T > | |
Vector_double | measBarycenter (Image< T > &im) |
measBarycenter() - Gets the barycenter coordinates of an image | |
template<class T > | |
vector< size_t > | measBoundBox (Image< T > &im) |
measBoundBox() - Bounding Box measure - gets the coordinates of the bounding box | |
template<class T > | |
Vector_double | measMoments (Image< T > &im, const bool onlyNonZero=true, const bool centered=false) |
measMoments() - Measure image moments | |
template<class T > | |
vector< double > | measCovariance (const Image< T > &imIn1, const Image< T > &imIn2, size_t dx, size_t dy, size_t dz, size_t maxSteps=0, bool centered=false, bool normalize=false) |
measCovariance() - Centered covariance of two images in the direction defined by dx, dy and dz. | |
template<class T > | |
vector< double > | measAutoCovariance (const Image< T > &imIn, size_t dx, size_t dy, size_t dz, size_t maxSteps=0, bool centered=false, bool normalize=false) |
measAutoCovariance() - Auto-covariance | |
template<class T > | |
double | measEntropy (const Image< T > &imIn) |
measEntropy() - Image entropy | |
template<class T > | |
double | measEntropy (const Image< T > &imIn, const Image< T > &imMask) |
measEntropy() - Image entropy | |
template<class T > | |
Vector_size_t | nonZeroOffsets (Image< T > &imIn) |
nonZeroOffsets() - Returns the offsets of pixels having non nul values. | |
template<class T > | |
bool | isBinary (const Image< T > &imIn) |
isBinary() - Test if an image is binary. | |
size_t area | ( | const Image< T > & | imIn | ) |
area() - Area of an image
The area of an image is defined as the number of non-zero pixels
[in] | imIn | : Input image. |
double vol | ( | const Image< T > & | imIn | ) |
vol() - Volume of an image
[in] | imIn | : Input image. |
This is the same than the volume function call. Better use the unabridged name. The abridged name remains for back compatibility.
double volume | ( | const Image< T > & | imIn | ) |
colume() - Volume of an image
The volume of an image is defined as the sum of the pixel values.
[in] | imIn | : Input image. |
Vector_double meanVal | ( | const Image< T > & | imIn, |
bool | onlyNonZero = false |
||
) |
meanVal() - Mean value and standard deviation
[in] | imIn | : Input image. |
[in] | onlyNonZero | : If true, only non-zero pixels are considered. |
T minVal | ( | const Image< T > & | imIn, |
bool | onlyNonZero = false |
||
) |
minVal() - Min value of an image
[in] | imIn | : Input image. |
[in] | onlyNonZero | : If true, only non-zero pixels are considered. |
T minVal | ( | const Image< T > & | imIn, |
Point< UINT > & | pt, | ||
bool | onlyNonZero = false |
||
) |
minVal() - Min value of an image
[in] | imIn | : Input image. |
[out] | pt | : point coordinates of the minimum value in the image. |
[in] | onlyNonZero | : If true, only non-zero pixels are considered. |
T maxVal | ( | const Image< T > & | imIn, |
bool | onlyNonZero = false |
||
) |
maxVal() - Max value of an image
[in] | imIn | : Input image. |
[in] | onlyNonZero | : If true, only non-zero pixels are considered. |
T maxVal | ( | const Image< T > & | imIn, |
Point< UINT > & | pt, | ||
bool | onlyNonZero = false |
||
) |
maxVal() - Max value of an image
[in] | imIn | : Input image. |
[out] | pt | : point coordinates of the maximum value in the image. |
[in] | onlyNonZero | : If true, only non-zero pixels are considered. |
vector< T > rangeVal | ( | const Image< T > & | imIn, |
bool | onlyNonZero = false |
||
) |
rangeVal() - Min and Max values of an image
[in] | imIn | : Input image. |
[in] | onlyNonZero | : If true, only non-zero pixels are considered. |
vector< T > valueList | ( | const Image< T > & | imIn, |
bool | onlyNonZero = true |
||
) |
valueList() - Get the list of the pixel values present in the image
[in] | imIn | : Input image. |
[in] | onlyNonZero | : If true, only non-zero pixels are considered. |
T modeVal | ( | const Image< T > & | imIn, |
bool | onlyNonZero = true |
||
) |
modeVal() - Get the mode of the histogram present in the image, i.e.
the value that appears most often.
[in] | imIn | : input image |
[in] | onlyNonZero | : consider only non zero values |
T medianVal | ( | const Image< T > & | imIn, |
bool | onlyNonZero = true |
||
) |
medianVal() - Get the median of the image histogram.
[in] | imIn | : Input image. |
[in] | onlyNonZero | : If true, only non-zero pixels are considered. |
vector< T > profile | ( | const Image< T > & | im, |
size_t | x0, | ||
size_t | y0, | ||
size_t | x1, | ||
size_t | y1, | ||
size_t | z = 0 |
||
) |
profile() - Get image values along a line defined by the points and in the slice .
[in] | im | : input image |
[in] | x0,y0 | : start point |
[in] | x1,y1 | : end point |
[in] | z | : slice |
Vector_double measBarycenter | ( | Image< T > & | im | ) |
measBarycenter() - Gets the barycenter coordinates of an image
[in] | im | : input image |
vector< size_t > measBoundBox | ( | Image< T > & | im | ) |
measBoundBox() - Bounding Box measure - gets the coordinates of the bounding box
[in] | im | : input image |
Vector_double measMoments | ( | Image< T > & | im, |
const bool | onlyNonZero = true , |
||
const bool | centered = false |
||
) |
measMoments() - Measure image moments
[in] | im | : input image |
[in] | onlyNonZero | : use only non zero values |
[in] | centered | : returns centered moments |
vector< double > measCovariance | ( | const Image< T > & | imIn1, |
const Image< T > & | imIn2, | ||
size_t | dx, | ||
size_t | dy, | ||
size_t | dz, | ||
size_t | maxSteps = 0 , |
||
bool | centered = false , |
||
bool | normalize = false |
||
) |
measCovariance() - Centered covariance of two images in the direction defined by dx, dy and dz.
The direction is given by dx, dy and dz.
The lenght corresponds to the max number of steps maxSteps. When 0, the length is limited by the dimensions of the image.
where h are displacements in the direction defined by dx, dy and dz.
is the number of pixels used in each term of the sum, which may different for each term in the sum.
[in] | imIn1,imIn2 | : Input Images |
[in] | dx,dy,dz | : direction |
[in] | maxSteps | : number maximum of displacements to evaluate |
[in] | centered | : if this parameter is set to true, the mean value (meanVal()) will be subtracted from each input image |
[in] | normalize | : normalize result with respect to vec[0] |
vector< double > measAutoCovariance | ( | const Image< T > & | imIn, |
size_t | dx, | ||
size_t | dy, | ||
size_t | dz, | ||
size_t | maxSteps = 0 , |
||
bool | centered = false , |
||
bool | normalize = false |
||
) |
measAutoCovariance() - Auto-covariance
The direction is given by dx, dy and dz. The lenght corresponds to the max number of steps maxSteps
[in] | imIn | : Input Image |
[in] | dx,dy,dz | : direction |
[in] | maxSteps | : number maximum of displacements to evaluate |
[in] | centered | : if this parameter is set to true, the mean value (meanVal()) will be subtracted from the input image |
[in] | normalize | : normalize result with respect to vec[0] |
double measEntropy | ( | const Image< T > & | imIn | ) |
measEntropy() - Image entropy
Evaluate Shannon entropy of the image (in bits)
[in] | imIn | : input image |
measEntropy() - Image entropy
Evaluate Shannon entropy of the image in a region defined by a mask.
[in] | imIn | : input image |
[in] | imMask | : mask defining where the entropy shall be evaluated |
Vector_size_t nonZeroOffsets | ( | Image< T > & | imIn | ) |
nonZeroOffsets() - Returns the offsets of pixels having non nul values.
[in] | imIn | : input image |
bool isBinary | ( | const Image< T > & | imIn | ) |
isBinary() - Test if an image is binary.
[in] | imIn | : image |