Computes the image histogram.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public bool GetHistogram(
	FREE_IMAGE_COLOR_CHANNEL channel,
	out int[] histogram
)
Visual Basic (Declaration)
Public Function GetHistogram ( _
	channel As FREE_IMAGE_COLOR_CHANNEL, _
	<OutAttribute> ByRef histogram As Integer() _
) As Boolean
Visual C++
public:
bool GetHistogram(
	FREE_IMAGE_COLOR_CHANNEL channel, 
	[OutAttribute] array<int>^% histogram
)

Parameters

channel
Type: FreeImageAPI..::.FREE_IMAGE_COLOR_CHANNEL
Channel to compute from.
histogram
Type: array< System..::.Int32 >[]()[] %
Array of integers containing the histogram.

Return Value

Returns true on success, false on failure.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also