Cv2CalcHist Method (Mat, Int32, InputArray, OutputArray, Int32, Int32, Rangef, Boolean, Boolean) OpenCvSharp Class Library
computes the joint dense histogram for a set of images.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void CalcHist(
	Mat[] images,
	int[] channels,
	InputArray mask,
	OutputArray hist,
	int dims,
	int[] histSize,
	Rangef[] ranges,
	bool uniform = true,
	bool accumulate = false
)

Parameters

images
Type: OpenCvSharp.CPlusPlusMat

[Missing <param name="images"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.CalcHist(OpenCvSharp.CPlusPlus.Mat[],System.Int32[],OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.OutputArray,System.Int32,System.Int32[],OpenCvSharp.CPlusPlus.Rangef[],System.Boolean,System.Boolean)"]

channels
Type: SystemInt32

[Missing <param name="channels"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.CalcHist(OpenCvSharp.CPlusPlus.Mat[],System.Int32[],OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.OutputArray,System.Int32,System.Int32[],OpenCvSharp.CPlusPlus.Rangef[],System.Boolean,System.Boolean)"]

mask
Type: OpenCvSharp.CPlusPlusInputArray

[Missing <param name="mask"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.CalcHist(OpenCvSharp.CPlusPlus.Mat[],System.Int32[],OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.OutputArray,System.Int32,System.Int32[],OpenCvSharp.CPlusPlus.Rangef[],System.Boolean,System.Boolean)"]

hist
Type: OpenCvSharp.CPlusPlusOutputArray

[Missing <param name="hist"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.CalcHist(OpenCvSharp.CPlusPlus.Mat[],System.Int32[],OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.OutputArray,System.Int32,System.Int32[],OpenCvSharp.CPlusPlus.Rangef[],System.Boolean,System.Boolean)"]

dims
Type: SystemInt32

[Missing <param name="dims"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.CalcHist(OpenCvSharp.CPlusPlus.Mat[],System.Int32[],OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.OutputArray,System.Int32,System.Int32[],OpenCvSharp.CPlusPlus.Rangef[],System.Boolean,System.Boolean)"]

histSize
Type: SystemInt32

[Missing <param name="histSize"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.CalcHist(OpenCvSharp.CPlusPlus.Mat[],System.Int32[],OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.OutputArray,System.Int32,System.Int32[],OpenCvSharp.CPlusPlus.Rangef[],System.Boolean,System.Boolean)"]

ranges
Type: OpenCvSharp.CPlusPlusRangef

[Missing <param name="ranges"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.CalcHist(OpenCvSharp.CPlusPlus.Mat[],System.Int32[],OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.OutputArray,System.Int32,System.Int32[],OpenCvSharp.CPlusPlus.Rangef[],System.Boolean,System.Boolean)"]

uniform (Optional)
Type: SystemBoolean

[Missing <param name="uniform"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.CalcHist(OpenCvSharp.CPlusPlus.Mat[],System.Int32[],OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.OutputArray,System.Int32,System.Int32[],OpenCvSharp.CPlusPlus.Rangef[],System.Boolean,System.Boolean)"]

accumulate (Optional)
Type: SystemBoolean

[Missing <param name="accumulate"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.CalcHist(OpenCvSharp.CPlusPlus.Mat[],System.Int32[],OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.OutputArray,System.Int32,System.Int32[],OpenCvSharp.CPlusPlus.Rangef[],System.Boolean,System.Boolean)"]

See Also

Reference