CvHistogram Class OpenCvSharp Class Library
Muti-dimensional histogram
Inheritance Hierarchy

SystemObject
  OpenCvSharpDisposableObject
    OpenCvSharpDisposableCvObject
      OpenCvSharpCvHistogram

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

public class CvHistogram : DisposableCvObject

The CvHistogram type exposes the following members.

Constructors

  NameDescription
Public methodCvHistogram
Creates an empty histogram
Public methodCvHistogram(IntPtr)
Creates a histogram from pointer
Public methodCvHistogram(Int32, HistogramFormat)
Creates a histogram of the specified size and returns the pointer to the created histogram.
Public methodCvHistogram(Int32, HistogramFormat, Single)
Creates a histogram of the specified size and returns the pointer to the created histogram.
Public methodCvHistogram(Int32, HistogramFormat, Single, Boolean)
Creates a histogram of the specified size and returns the pointer to the created histogram.
Top
Properties

  NameDescription
Protected propertyAllocatedMemory
Gets or sets a memory address allocated by AllocMemory.
(Inherited from DisposableObject.)
Protected propertyAllocatedMemorySize
Gets or sets the byte length of the allocated memory
(Inherited from DisposableObject.)
Public propertyBins
Histogram bins. if Type == Array then returns CvMatND, else if Type == Sparse then CvSparseMat
Public propertyBinsPtr
Histogram bins. if Type == Array then returns CvMatND, else if Type == Sparse then CvSparseMat
Public propertyCvPtr
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.)
Public propertyDim
Number of histogram dimensions.
Public propertyIsDisposed
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.)
Public propertyIsEnabledDispose
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.)
Public propertyThresh1
For uniform histograms (thresh).
Public propertyThresh2
For non-uniform histograms.
Public propertyType
Histogram representation format
Top
Methods

  NameDescription
Protected methodAllocGCHandle
Pins the object to be allocated by cvSetData.
(Inherited from DisposableObject.)
Protected methodAllocMemory
Allocates the specified size of memory.
(Inherited from DisposableObject.)
Public methodCalc(IplImage)
Calculates the histogram of one single-channel image. The elements of a tuple that is used to increment a histogram bin are taken at the same location from the corresponding input images.
Public methodCalc(IplImage)
Calculates the histogram of single-channel images. The elements of a tuple that is used to increment a histogram bin are taken at the same location from the corresponding input images.
Public methodCalc(IplImage, Boolean)
Calculates the histogram of one single-channel image. The elements of a tuple that is used to increment a histogram bin are taken at the same location from the corresponding input images.
Public methodCalc(IplImage, Boolean)
Calculates the histogram of single-channel images. The elements of a tuple that is used to increment a histogram bin are taken at the same location from the corresponding input images.
Public methodCalc(IplImage, Boolean, CvArr)
Calculates the histogram of one single-channel image. The elements of a tuple that is used to increment a histogram bin are taken at the same location from the corresponding input images.
Public methodCalc(IplImage, Boolean, CvArr)
Calculates the histogram of single-channel images. The elements of a tuple that is used to increment a histogram bin are taken at the same location from the corresponding input images.
Public methodCalcArr(CvArr)
Calculates the histogram of one single-channel image. The elements of a tuple that is used to increment a histogram bin are taken at the same location from the corresponding input images.
Public methodCalcArr(CvArr)
Calculates the histogram of single-channel images. The elements of a tuple that is used to increment a histogram bin are taken at the same location from the corresponding input images.
Public methodCalcArr(CvArr, Boolean)
Calculates the histogram of one single-channel image. The elements of a tuple that is used to increment a histogram bin are taken at the same location from the corresponding input images.
Public methodCalcArr(CvArr, Boolean)
Calculates the histogram of single-channel images. The elements of a tuple that is used to increment a histogram bin are taken at the same location from the corresponding input images.
Public methodCalcArr(CvArr, Boolean, CvArr)
Calculates the histogram of one single-channel image. The elements of a tuple that is used to increment a histogram bin are taken at the same location from the corresponding input images.
Public methodCalcArr(CvArr, Boolean, CvArr)
Calculates the histogram of single-channel images. The elements of a tuple that is used to increment a histogram bin are taken at the same location from the corresponding input images.
Public methodCalcArrBackProject
Calculates back projection
Public methodCalcArrBackProjectPatch(CvArr, CvArr, CvSize, HistogramComparison)
Locates a template within image by histogram comparison
Public methodCalcArrBackProjectPatch(CvArr, CvArr, CvSize, HistogramComparison, Single)
Locates a template within image by histogram comparison
Public methodCalcBackProject
Calculates back projection
Public methodCalcBackProjectPatch(CvArr, CvArr, CvSize, HistogramComparison)
Locates a template within image by histogram comparison
Public methodCalcBackProjectPatch(CvArr, CvArr, CvSize, HistogramComparison, Single)
Locates a template within image by histogram comparison
Public methodStatic memberCalcBayesianProb
Calculates bayesian probabilistic histograms
Public methodStatic memberCalcProbDensity(CvHistogram, CvHistogram, CvHistogram)
Divides one histogram by another.
Public methodStatic memberCalcProbDensity(CvHistogram, CvHistogram, CvHistogram, Double)
Divides one histogram by another.
Public methodClear
Sets all histogram bins to 0 in case of dense histogram and removes all histogram bins in case of sparse array.
Public methodCompare
Compares two dense histograms.
Public methodCopy
Makes a copy of the histogram. If the second histogram dst is null, a new histogram of the same size as src is created. Otherwise, both histograms must have equal types and sizes. Then the function copies the source histogram bins values to destination histogram and sets the same bin values ranges as in src.
Public methodDispose
Releases the resources
(Inherited from DisposableObject.)
Protected methodDispose(Boolean)
Clean up any resources being used.
(Overrides DisposableCvObjectDispose(Boolean).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetMinMaxValue(Single, Single)
Finds minimum and maximum histogram bins.
Public methodGetMinMaxValue(Single, Single, Int32, Int32)
Finds minimum and maximum histogram bins.
Public methodGetType (Inherited from Object.)
Public methodGetValue1D
Returns pointer to histogram bin.
Public methodGetValue2D
Returns pointer to histogram bin.
Public methodGetValue3D
Returns pointer to histogram bin.
Public methodGetValueND
Returns pointer to histogram bin.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodNormalize
Normalizes the histogram bins by scaling them, such that the sum of the bins becomes equal to factor.
Protected methodNotifyMemoryPressure
Notifies the allocated size of memory.
(Inherited from DisposableObject.)
Public methodQueryValue1D
Queries value of histogram bin.
Public methodQueryValue2D
Queries value of histogram bin.
Public methodQueryValue3D
Queries value of histogram bin.
Public methodQueryValueND
Queries value of histogram bin.
Public methodSetBinRanges(Single)
Sets bounds of histogram bins
Public methodSetBinRanges(Single, Boolean)
Sets bounds of histogram bins
Public methodThresh
Clears histogram bins that are below the specified threshold.
Public methodThrowIfDisposed
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.)
Public methodToString (Inherited from Object.)
Top
Fields

  NameDescription
Protected fielddataHandle
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.)
Protected fieldptr
Data pointer
(Inherited from DisposableCvObject.)
Public fieldStatic memberSizeOf
sizeof(CvHistogram)
Top
See Also

Reference