EasyImage::PixelVariance

For a gray-level image, computes the mean and variance of the pixel values.

Namespace: Euresys::Open_eVision

[C++]

void PixelVariance(
   const EROIBW8* sourceImage,
   float& variance,
   float& mean
)

void PixelVariance(
   const EROIBW16* sourceImage,
   float& variance,
   float& mean
)

void PixelVariance(
   const EROIC24* sourceImage,
   float& variance0,
   float& variance1,
   float& variance2,
   float& covariance01,
   float& covariance12,
   float& covariance20,
   float& mean0,
   float& mean1,
   float& mean2
)

void PixelVariance(
   const EROIBW8* sourceImage,
   const ERegion& region,
   float& variance,
   float& mean
)

void PixelVariance(
   const EROIBW16* sourceImage,
   const ERegion& region,
   float& variance,
   float& mean
)

void PixelVariance(
   const EROIC24* sourceImage,
   const ERegion& region,
   float& variance0,
   float& variance1,
   float& variance2,
   float& covariance01,
   float& covariance12,
   float& covariance20,
   float& mean0,
   float& mean1,
   float& mean2
)

void PixelVariance(
   const EROIBW8* sourceImage,
   const EROIBW8* mask,
   float& variance,
   float& mean
)

void PixelVariance(
   const EROIBW16* sourceImage,
   const EROIBW8* mask,
   float& variance,
   float& mean
)

void PixelVariance(
   const EROIC24* sourceImage,
   const EROIBW8* mask,
   float& variance0,
   float& variance1,
   float& variance2,
   float& covariance01,
   float& covariance12,
   float& covariance20,
   float& mean0,
   float& mean1,
   float& mean2
)

Parameters

sourceImage

Pointer to the source image/ROI.

variance

Reference to the covariances of the pairs of pixel component values.

mean

Reference to the mean pixel component values.

variance0

Reference to the covariances of the pairs of pixel component values.

variance1

Reference to the covariances of the pairs of pixel component values.

variance2

Reference to the covariances of the pairs of pixel component values.

covariance01

Reference to the covariances of the pairs of pixel component values.

covariance12

Reference to the covariances of the pairs of pixel component values.

covariance20

Reference to the covariances of the pairs of pixel component values.

mean0

Reference to the mean pixel component values.

mean1

Reference to the mean pixel component values.

mean2

Reference to the mean pixel component values.

region

Pointer to a region to apply the function only on a particular region in the image.

mask

Pointer to a mask to apply the function only on a particular region in the image. Note: the mask must have the same size as the source image.

Remarks

For a color image, computes the means of the three pixel color components, the variances of the components and the covariances between pairs of components.

EasyImage.PixelVariance

For a gray-level image, computes the mean and variance of the pixel values.

Namespace: Euresys.Open_eVision

[C#]

void PixelVariance(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   out float variance,
   out float mean
)

void PixelVariance(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   out float variance,
   out float mean
)

void PixelVariance(
   Euresys.Open_eVision.EROIC24 sourceImage,
   out float variance0,
   out float variance1,
   out float variance2,
   out float covariance01,
   out float covariance12,
   out float covariance20,
   out float mean0,
   out float mean1,
   out float mean2
)

void PixelVariance(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.ERegion region,
   out float variance,
   out float mean
)

void PixelVariance(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.ERegion region,
   out float variance,
   out float mean
)

void PixelVariance(
   Euresys.Open_eVision.EROIC24 sourceImage,
   Euresys.Open_eVision.ERegion region,
   out float variance0,
   out float variance1,
   out float variance2,
   out float covariance01,
   out float covariance12,
   out float covariance20,
   out float mean0,
   out float mean1,
   out float mean2
)

void PixelVariance(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW8 mask,
   out float variance,
   out float mean
)

void PixelVariance(
   Euresys.Open_eVision.EROIBW16 sourceImage,
   Euresys.Open_eVision.EROIBW8 mask,
   out float variance,
   out float mean
)

void PixelVariance(
   Euresys.Open_eVision.EROIC24 sourceImage,
   Euresys.Open_eVision.EROIBW8 mask,
   out float variance0,
   out float variance1,
   out float variance2,
   out float covariance01,
   out float covariance12,
   out float covariance20,
   out float mean0,
   out float mean1,
   out float mean2
)

Parameters

sourceImage

Pointer to the source image/ROI.

variance

Reference to the covariances of the pairs of pixel component values.

mean

Reference to the mean pixel component values.

variance0

Reference to the covariances of the pairs of pixel component values.

variance1

Reference to the covariances of the pairs of pixel component values.

variance2

Reference to the covariances of the pairs of pixel component values.

covariance01

Reference to the covariances of the pairs of pixel component values.

covariance12

Reference to the covariances of the pairs of pixel component values.

covariance20

Reference to the covariances of the pairs of pixel component values.

mean0

Reference to the mean pixel component values.

mean1

Reference to the mean pixel component values.

mean2

Reference to the mean pixel component values.

region

Pointer to a region to apply the function only on a particular region in the image.

mask

Pointer to a mask to apply the function only on a particular region in the image. Note: the mask must have the same size as the source image.

Remarks

For a color image, computes the means of the three pixel color components, the variances of the components and the covariances between pairs of components.