8.4.2.36. statistics
|
(packages/opencv/cv-statistics.lsh) |
dummy function that adds OpenCV C header files in C file
8.4.2.36.0. (cvSum array s)
|
(packages/opencv/cv-statistics.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvSum
// Purpose:
// Sums all the elements in the image ROI or in the matrix
// Context:
// Parameters:
// array - image or matrix.
// Returns:
// sum of every channel.
// Note:
// In case of COI is set the sum over the selected channel is saved
// if the 0-th element of the returned CvScalar structure.
//F*/
OPENCVAPI CvScalar cvSum( const CvArr* array );
8.4.2.36.1. (cvCountNonZero array)
|
(packages/opencv/cv-statistics.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvCountNonZero
// Purpose:
// Counts all the non-zero elements in the image ROI or in the matrix
// Context:
// Parameters:
// array - image or matrix.
// Returns:
// count of non-zero pixels
// Note:
// For multi-channel images COI must be set.
//F*/
OPENCVAPI int cvCountNonZero( const CvArr* array );
8.4.2.36.2. (cvAvg array mask s)
|
(packages/opencv/cv-statistics.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvAvg
// Purpose:
// Calculates average value of the image region or the matrix.
// Context:
// Parameters:
// array - input image or matrix.
// mask - optional parameter: 8uC1 or 8sC1 array that specifies
// the processed region of the input array
// Returns:
// average value for every channel. In case of COI is set, average value
// of the selected COI is stored into 0-th element
// of the returned CvScalar structure
//F*/
OPENCVAPI CvScalar cvAvg( const CvArr* array, const CvArr* mask CV_DEFAULT(0) );
8.4.2.36.3. (cvAvgSdv array mean std_dev mask)
|
(packages/opencv/cv-statistics.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvAvgSdv
// Purpose:
// Calculates mean and standard deviation of pixels in the image region
// Context:
// Parameters:
// img - input image.
// mean - mean value
// std_dev - standard deviation
// mask - mask(byte-depth, single channel)
// Returns:
//
//F*/
OPENCVAPI void cvAvgSdv( const CvArr* array, CvScalar* mean, CvScalar* std_dev,
const CvArr* mask CV_DEFAULT(0) );
8.4.2.36.4. (cvMinMaxLoc array min_val max_val min_loc max_loc mask)
|
(packages/opencv/cv-statistics.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvMinMaxLoc
// Purpose:
// Finds minimum and maximum pixel values in the image region
// and determines their locations.
// Context:
// Parameters:
// img - input image.
// minVal - minimum value
// maxVal - maximum value
// minLoc - location of the minimum
// maxLoc - location of the maximum
// mask - mask(byte-depth, single channel)
// Returns:
// Note:
// If there are several global minimums and/or maximums,
// function returns the most top-left extremums.
//F*/
OPENCVAPI void cvMinMaxLoc( const CvArr* array, double* min_val, double* max_val,
CvPoint* min_loc CV_DEFAULT(0),
CvPoint* max_loc CV_DEFAULT(0),
const CvArr* mask CV_DEFAULT(0) );