Click or drag to resize
Accord.NET (logo)

ImageStatisticsHSL Constructor (UnmanagedImage, UnmanagedImage)

Initializes a new instance of the ImageStatisticsHSL class.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public ImageStatisticsHSL(
	UnmanagedImage image,
	UnmanagedImage mask
)
Request Example View Source

Parameters

image
Type: Accord.ImagingUnmanagedImage
Image to gather statistics about.
mask
Type: Accord.ImagingUnmanagedImage
Mask image which specifies areas to collect statistics for.
Exceptions
ExceptionCondition
UnsupportedImageFormatExceptionSource pixel format is not supported.
ArgumentExceptionMask image must be 8 bpp grayscale image.
ArgumentExceptionMask must have the same size as the source image to get statistics for.
Remarks

The mask image must be a grayscale/binary (8bpp) image of the same size as the specified source image, where black pixels (value 0) correspond to areas which should be excluded from processing. So statistics is calculated only for pixels, which are none black in the mask image.

See Also