ImageTColor, TDepth Methods 
The ImageTColor, TDepth generic type exposes the following members.
Name  Description  

_And 
Inplace And operation with otherArray (Inherited from CvArrayTDepth.)  
_Dilate 
Dilates this image inplace using a 3x3 rectangular structuring element.
Dilation are applied several (iterations) times
 
_EqualizeHist 
The algorithm inplace normalizes brightness and increases contrast of the image.
For color images, a HSV representation of the image is first obtained and the V (value) channel is histogram normalized
 
_Erode 
Erodes this image inplace using a 3x3 rectangular structuring element.
Erosion are applied several (iterations) times
 
_Flip  Inplace flip the image  
_GammaCorrect 
Gamma corrects this image inplace. The image must have a depth type of Byte.
 
_Max(Double) 
Inplace compute the elementwise maximum value with value (Inherited from CvArrayTDepth.)  
_Max(CvArrayTDepth) 
Inplace elementwise maximize the current Array with other (Inherited from CvArrayTDepth.)  
_Min(Double) 
Inplace compute the elementwise minimum value
(Inherited from CvArrayTDepth.)  
_Min(CvArrayTDepth) 
Inplace elementwise minimize the current Array with other (Inherited from CvArrayTDepth.)  
_MorphologyEx 
Perform inplace advanced morphological transformations using erosion and dilation as basic operations.
 
_Mul(Double) 
Inplace multiply elements of the Array by scale (Inherited from CvArrayTDepth.)  
_Mul(CvArrayTDepth) 
Inplace elementwise multiply the current Array with src2 (Inherited from CvArrayTDepth.)  
_Not 
Inplace compute the complement for all array elements
(Inherited from CvArrayTDepth.)  
_Or 
Inplace Or operation with otherArray (Inherited from CvArrayTDepth.)  
_SmoothGaussian(Int32)  Perform Gaussian Smoothing inplace for the current image  
_SmoothGaussian(Int32, Int32, Double, Double)  Perform Gaussian Smoothing inplace for the current image  
_ThresholdBinary  Threshold the image inplace such that: dst(x,y) = max_value, if src(x,y)>threshold; 0, otherwise  
_ThresholdBinaryInv  Threshold the image inplace such that: dst(x,y) = 0, if src(x,y)>threshold; max_value, otherwise  
_ThresholdToZero  Threshold the image inplace such that: dst(x,y) = src(x,y), if src(x,y)>threshold; 0, otherwise  
_ThresholdToZeroInv  Threshold the image inplace such that: dst(x,y) = 0, if src(x,y)>threshold; src(x,y), otherwise  
_ThresholdTrunc  Threshold the image inplace such that: dst(x,y) = threshold, if src(x,y)>threshold; src(x,y), otherwise  
AbsDiff(TColor) 
Computes absolute different between this image and the specific color
 
AbsDiff(ImageTColor, TDepth) 
Computes absolute different between this image and the other image
 
Accumulate(ImageTColor, TDepth) 
Accumulate img2 to the current image using the specific mask
 
Accumulate(ImageTColor, TDepth, ImageGray, Byte) 
Accumulate img2 to the current image using the specific mask
 
AccumulateWeighted(ImageTColor, TDepth, Double) 
Update Running Average. this = (1alpha)*this + alpha*img
 
AccumulateWeighted(ImageTColor, TDepth, Double, ImageGray, Byte) 
Update Running Average. this = (1alpha)*this + alpha*img, using the mask
 
Action(ActionTDepth) 
perform an generic action based on each element of the image
 
ActionTOtherDepth(ImageTColor, TOtherDepth, ActionTDepth, TOtherDepth) 
Perform an generic operation based on the elements of the two images
 
Add(TColor)  Elementwise add a color val to the current image  
Add(ImageTColor, TDepth)  Elementwise add another image with the current image  
Add(ImageTColor, TDepth, ImageGray, Byte)  Elementwise add img2 with the current image, using a mask  
AddWeighted 
Return the weighted sum such that: res = this * alpha + img2 * beta + gamma
 
AllocateData 
Allocate data for the array
(Overrides CvArrayTDepthAllocateData(Int32, Int32, Int32).)  
And(TColor)  Perform an binary AND operation with some color  
And(ImageTColor, TDepth)  Perform an elementwise AND operation with another image and return the result  
And(TColor, ImageGray, Byte)  Perform an binary AND operation with some color using a mask  
And(ImageTColor, TDepth, ImageGray, Byte) 
Perform an elementwise AND operation with another image, using a mask, and return the result
 
AvgSdv(TColor, MCvScalar) 
Calculates the average value and standard deviation of array elements, independently for each channel
 
AvgSdv(TColor, MCvScalar, ImageGray, Byte) 
Calculates the average value and standard deviation of array elements, independently for each channel
 
BuildPyramid 
Compute the image pyramid
 
Canny(Double, Double)  Find the edges on this image and marked them in the returned image.  
Canny(Double, Double, Int32, Boolean)  Find the edges on this image and marked them in the returned image.  
CheckRange 
Check that every array element is neither NaN nor + inf. The functions also check that each value
is between min and max. in the case of multichannel arrays each channel is processed
independently. If some values are out of range, position of the first outlier is stored in pos,
and then the functions return false.
(Inherited from CvArrayTDepth.)  
Clone 
Make a clone of the current image. All image data as well as the COI and ROI are cloned
 
Cmp(Double, CmpType) 
Compare the current image with value and returns the comparison mask
 
Cmp(ImageTColor, TDepth, CmpType) 
Compare the current image with img2 and returns the comparison mask
 
ConcateHorizontal 
Concate the current image with another image horizontally.
 
ConcateVertical 
Concate the current image with another image vertically.
 
ConvertTOtherDepth(ConverterTDepth, TOtherDepth)  Compute the element of the new image based on element of this image  
ConvertTOtherDepth(FuncTDepth, Int32, Int32, TOtherDepth) 
Compute the element of a new image based on the value as well as the x and y positions of each pixel on the image
 
ConvertTOtherColor, TOtherDepth  Convert the current image to the specific color and depth  
ConvertTDepth2, TDepth3(ImageTColor, TDepth2, FuncTDepth, TDepth2, TDepth3)  Compute the element of the new image based on the elements of the two image  
ConvertTDepth2, TDepth3, TDepth4(ImageTColor, TDepth2, ImageTColor, TDepth3, FuncTDepth, TDepth2, TDepth3, TDepth4)  Compute the element of the new image based on the elements of the three image  
ConvertTDepth2, TDepth3, TDepth4, TDepth5(ImageTColor, TDepth2, ImageTColor, TDepth3, ImageTColor, TDepth4, FuncTDepth, TDepth2, TDepth3, TDepth4, TDepth5)  Compute the element of the new image based on the elements of the four image  
ConvertFrom(IInputArray) 
Convert the source image to the current image, if the size are different, the current image will be a resized version of the srcImage.
 
ConvertFromTSrcColor, TSrcDepth(ImageTSrcColor, TSrcDepth) 
Convert the source image to the current image, if the size are different, the current image will be a resized version of the srcImage.
 
ConvertScaleTOtherDepth  Convert the current image to the specific depth, at the same time scale and shift the values of the pixel  
Convolution 
Performs a convolution using the specific kernel  
Copy  Make a copy of the image, if ROI is set, only copy the ROI  
Copy(Rectangle) 
Make a copy of the specific ROI (Region of Interest) from the image
 
Copy(ImageGray, Byte) 
Make a copy of the image using a mask, if ROI is set, only copy the ROI
 
Copy(RotatedRect) 
Get a copy of the boxed region of the image
 
Copy(ImageTColor, TDepth, ImageGray, Byte) 
Copy the masked area of this image to destination
 
CopyBlank 
Create an image of the same size
 
CopyTo 
Copy the current array to destination (Inherited from CvArrayTDepth.)  
CountNonzero 
Count the non Zero elements for each channel
 
DeserializeObjectData 
A function used for runtime deserailization of the object
(Inherited from CvArrayTDepth.)  
Dilate 
Dilates this image using a 3x3 rectangular structuring element.
Dilation are applied several (iterations) times
 
Dispose 
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.)  
DisposeObject 
Release all unmanaged memory associate with the image
(Overrides CvArrayTDepthDisposeObject.)  
DotProduct 
Calculates and returns the Euclidean dot product of two arrays.
src1 dot src2 = sumI(src1(I)*src2(I))
(Inherited from CvArrayTDepth.)  
Draw(Cross2DF, TColor, Int32)  Draw a 2D Cross using the specific color and thickness  
Draw(IConvexPolygonF, TColor, Int32)  Draw a convex polygon using the specific color and thickness  
Draw(Point, TColor, Int32, LineType, Point) 
Draws contour outlines in the image if thickness>=0 or fills area bounded by the contours if thickness<0
 
Draw(Rectangle, TColor, Int32, LineType, Int32)  Draw an Rectangle of the specific color and thickness  
Draw(CircleF, TColor, Int32, LineType, Int32)  Draw a Circle of the specific color and thickness  
Draw(Ellipse, TColor, Int32, LineType, Int32)  Draw a Ellipse of the specific color and thickness  
Draw(LineSegment2D, TColor, Int32, LineType, Int32)  Draw a line segment using the specific color and thickness  
Draw(LineSegment2DF, TColor, Int32, LineType, Int32)  Draw a line segment using the specific color and thickness  
Draw(String, Point, FontFace, Double, TColor, Int32, LineType, Boolean) 
Draw the text using the specific font on the image
 
Draw(IInputArrayOfArrays, Int32, TColor, Int32, LineType, IInputArray, Int32, Point) 
Draws contour outlines in the image if thickness>=0 or fills area bounded by the contours if thickness<0
 
DrawPolyline(Point, Boolean, TColor, Int32, LineType, Int32) 
Draw the polyline defined by the array of 2D points
 
DrawPolyline(Point, Boolean, TColor, Int32, LineType, Int32) 
Draw the polylines defined by the array of array of 2D points
 
Equals(Object)  (Inherited from Object.)  
Equals(ImageTColor, TDepth) 
Compare two images, returns true if the each of the pixels are equal, false otherwise
 
Erode 
Erodes this image using a 3x3 rectangular structuring element.
Erosion are applied several (iterations) times
 
Exp 
Calculates exponent of every element of input array:
dst(I)=exp(src(I))
 
FillConvexPoly 
Fill the convex polygon with the specific color
 
Finalize 
Destructor
(Inherited from DisposableObject.)  
FindCornerSubPix 
Iterates to find the subpixel accurate location of corners, or radial saddle points
 
Flip  Return a flipped copy of the current image  
FromIplImagePtr 
Get the managed image from an unmanaged IplImagePointer
 
GetAverage 
Get the average value on this image
 
GetAverage(ImageGray, Byte) 
Get the average value on this image, using the specific mask
 
GetHashCode  (Inherited from Object.)  
GetInputArray 
The unmanaged pointer to the input array.
(Inherited from CvArrayTDepth.)  
GetInputOutputArray 
The unmanaged pointer to the input output array.
(Inherited from CvArrayTDepth.)  
GetMoments 
Calculates spatial and central moments up to the third order and writes them to moments. The moments may be used then to calculate gravity center of the shape, its area, main axises and various shape characteristics including 7 Hu invariants.
 
GetObjectData 
A function used for runtime serialization of the object
(Overrides CvArrayTDepthGetObjectData(SerializationInfo, StreamingContext).)  
GetOutputArray 
The unmanaged pointer to the output array.
(Inherited from CvArrayTDepth.)  
GetSchema 
Get the xml schema
(Inherited from CvArrayTDepth.)  
GetSubRect 
Get a subimage which image data is shared with the current image.
 
GetSum  Get the sum for each color channel  
GetType  (Inherited from Object.)  
GrabCut 
Use grabcut to perform background foreground segmentation.
 
HoughCircles 
First apply Canny Edge Detector on the current image,
then apply Hough transform to find circles
 
HoughLines 
Apply Canny Edge Detector follows by Probabilistic Hough transform to find line segments in the image
 
HoughLinesBinary 
Apply Probabilistic Hough transform to find line segments.
The current image must be a binary image (eg. the edges as a result of the Canny edge detector)
 
InPaint  Use inpaint to recover the intensity of the pixels which location defined by on this image  
InRange(TColor, TColor)  Checks that image elements lie between two scalars  
InRange(ImageTColor, TDepth, ImageTColor, TDepth)  Checks that image elements lie between values defined by two images of same size and type  
Integral 
Calculates integral images for the source image
 
Integral(ImageTColor, Double, ImageTColor, Double) 
Calculates integral images for the source image
 
Integral(ImageTColor, Double, ImageTColor, Double, ImageTColor, Double) 
Calculates one or more integral images for the source image
 
Laplace 
Calculates Laplacian of the source image by summing second x and y derivatives calculated using Sobel operator.
Specifying aperture_size=1 gives the fastest variant that is equal to convolving the image with the following kernel:
0 1 0
1 4 1
0 1 0
 
Log 
Calculates natural logarithm of absolute value of every element of input array
 
LogPolar 
Convert the image to log polar, simulating the human foveal vision
 
MatchTemplate 
The function slids through image, compares overlapped patches of size wxh with templ using the specified method and return the comparison results
 
Max(Double)  Find the elementwise maximum value  
Max(ImageTColor, TDepth)  Find the elementwise maximum value  
MemberwiseClone  (Inherited from Object.)  
Min(Double)  Find the elementwise minimum value  
Min(ImageTColor, TDepth)  Find the elementwise minimum value  
MinMax 
Returns the min / max location and values for the image
 
MorphologyEx 
Perform advanced morphological transformations using erosion and dilation as basic operations.
 
Mul(Double)  Elementwise multiply the current image with scale  
Mul(ImageTColor, TDepth)  Elementwise multiply img2 with the current image  
Mul(ImageTColor, TDepth, Double)  Elementwise multiply another image with the current image and the scale  
Not 
Compute the complement image
 
Or(TColor)  Perform an elementwise OR operation with some color  
Or(ImageTColor, TDepth)  Perform an elementwise OR operation with another image and return the result  
Or(TColor, ImageGray, Byte)  Perform an elementwise OR operation with some color using a mask  
Or(ImageTColor, TDepth, ImageGray, Byte)  Perform an elementwise OR operation with another image, using a mask, and return the result  
Pow 
Raises every element of input array to p
dst(I)=src(I)^p, if p is integer
dst(I)=abs(src(I))^p, otherwise
 
PyrDown 
Performs downsampling step of Gaussian pyramid decomposition.
First it convolves this image with the specified filter and then downsamples the image
by rejecting even rows and columns.
 
PyrUp 
Performs upsampling step of Gaussian pyramid decomposition.
First it upsamples this image by injecting even zero rows and columns and then convolves
result with the specified filter multiplied by 4 for interpolation.
So the resulting image is four times larger than the source image.
 
ReadXml 
Function to call when deserializing this object from XML
(Inherited from CvArrayTDepth.)  
ReduceTOtherDepth 
Reduces matrix to a vector by treating the matrix rows/columns as a set of 1D vectors and performing the specified operation on the vectors until a single row/column is obtained.
(Inherited from CvArrayTDepth.)  
ReleaseManagedResources 
Release the managed resources. This function will be called during the disposal of the current object.
override ride this function if you need to call the Dispose() function on any managed IDisposable object created by the current object
(Inherited from DisposableObject.)  
Resize(Double, Inter) 
Scale the image to the specific size: width *= scale; height *= scale
 
Resize(Int32, Int32, Inter) 
Scale the image to the specific size
 
Resize(Int32, Int32, Inter, Boolean) 
Scale the image to the specific size
 
RoiParam 
Return parameters based on ROI
 
Rotate(Double, TColor) 
Rotate the image the specified angle cropping the result to the original size
 
Rotate(Double, TColor, Boolean) 
Rotate this image the specified angle  
Rotate(Double, PointF, Inter, TColor, Boolean) 
Rotate this image the specified angle  
Sample(LineSegment2D)  Sample the pixel values on the specific line segment  
Sample(LineSegment2D, Connectivity) 
Sample the pixel values on the specific line segment
 
Save 
Save this image to the specific file.
(Overrides CvArrayTDepthSave(String).)  
SetIdentity 
Initialize the identity matrix
(Inherited from CvArrayTDepth.)  
SetIdentity(MCvScalar) 
Initializes scaled identity matrix
(Inherited from CvArrayTDepth.)  
SetRandNormal 
Inplace fills Array with normally distributed random numbers
(Inherited from CvArrayTDepth.)  
SetRandUniform 
Inplace fills Array with uniformly distributed random numbers
(Inherited from CvArrayTDepth.)  
SetValue(TColor) 
Set every pixel of the image to the specific color
 
SetValue(Double, CvArrayByte) 
Set the element of the Array to value, using the specific mask (Inherited from CvArrayTDepth.)  
SetValue(TColor, ImageGray, Byte) 
Set every pixel of the image to the specific color, using a mask
 
SetValue(MCvScalar, CvArrayByte) 
Set the element of the Array to value, using the specific mask (Inherited from CvArrayTDepth.)  
SetZero 
Set the values to zero
(Inherited from CvArrayTDepth.)  
SmoothBilatral 
Applying bilateral 3x3 filtering
 
SmoothBlur(Int32, Int32) 
Summation over a pixel param1 x param2 neighborhood with subsequent scaling by 1/(param1 x param2)
 
SmoothBlur(Int32, Int32, Boolean) 
Summation over a pixel param1 x param2 neighborhood. If scale is true, the result is subsequent scaled by 1/(param1 x param2)
 
SmoothGaussian(Int32)  Perform Gaussian Smoothing in the current image and return the result  
SmoothGaussian(Int32, Int32, Double, Double)  Perform Gaussian Smoothing in the current image and return the result  
SmoothMedian 
Finding median of sizexsize neighborhood
 
Sobel 
Calculates the image derivative by convolving the image with the appropriate kernel
The Sobel operators combine Gaussian smoothing and differentiation so the result is more or less robust to the noise. Most often, the function is called with (xorder=1, yorder=0, aperture_size=3) or (xorder=0, yorder=1, aperture_size=3) to calculate first x or y image derivative.
 
Split 
Split current Image into an array of gray scale images where each element
in the array represent a single color channel of the original image
 
Sub(TColor)  Elementwise subtract a color from the current image  
Sub(ImageTColor, TDepth)  Elementwise subtract another image from the current image  
Sub(ImageTColor, TDepth, ImageGray, Byte)  Elementwise subtract another image from the current image, using a mask  
SubR(TColor) 
result = val  this
 
SubR(TColor, ImageGray, Byte) 
result = val  this, using a mask
 
ThresholdAdaptive 
Transforms grayscale image to binary image.
Threshold calculated individually for each pixel.
For the method CV_ADAPTIVE_THRESH_MEAN_C it is a mean of blockSize x blockSize pixel
neighborhood, subtracted by param1.
For the method CV_ADAPTIVE_THRESH_GAUSSIAN_C it is a weighted sum (gaussian) of blockSize x blockSize pixel neighborhood, subtracted by param1.
 
ThresholdBinary 
Threshold the image such that: dst(x,y) = max_value, if src(x,y)>threshold; 0, otherwise
 
ThresholdBinaryInv  Threshold the image such that: dst(x,y) = 0, if src(x,y)>threshold; max_value, otherwise  
ThresholdToZero  Threshold the image such that: dst(x,y) = src(x,y), if src(x,y)>threshold; 0, otherwise  
ThresholdToZeroInv 
Threshold the image such that: dst(x,y) = 0, if src(x,y)>threshold; src(x,y), otherwise
 
ThresholdTrunc 
Threshold the image such that: dst(x,y) = threshold, if src(x,y)>threshold; src(x,y), otherwise
 
ToBitmap 
Convert this image into Bitmap, the pixel values are copied over to the Bitmap
 
ToBitmap(Int32, Int32)  Create a Bitmap image of certain size  
ToJpegData 
Get the jpeg representation of the image
 
ToString  (Inherited from Object.)  
ToUMat 
Get the umat representation of this mat
(Inherited from CvArrayTDepth.)  
WarpAffine(Mat, Inter, Warp, BorderType, TColor) 
Transforms source image using the specified matrix
 
WarpAffine(Mat, Int32, Int32, Inter, Warp, BorderType, TColor) 
Transforms source image using the specified matrix
 
WarpPerspectiveTMapDepth(MatrixTMapDepth, Inter, Warp, BorderType, TColor) 
Transforms source image using the specified matrix
 
WarpPerspectiveTMapDepth(MatrixTMapDepth, Int32, Int32, Inter, Warp, BorderType, TColor) 
Transforms source image using the specified matrix
 
WriteXml 
Function to call when serializing this object to XML
(Inherited from CvArrayTDepth.)  
Xor(TColor) 
Perform an binary XOR operation with some color
 
Xor(ImageTColor, TDepth)  Perform an elementwise XOR operation with another image and return the result  
Xor(TColor, ImageGray, Byte) 
Perform an binary XOR operation with some color using a mask
 
Xor(ImageTColor, TDepth, ImageGray, Byte) 
Perform an elementwise XOR operation with another image, using a mask, and return the result

Name  Description  

IsUmat 
Determines whether the specified input array is umat.
(Defined by IInputArrayExtensions.) 