Click or drag to resize

Mat Class

OpenCV C++ n-dimensional dense array class (cv::Mat)
Inheritance Hierarchy

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public class Mat : DisposableCvObject

The Mat type exposes the following members.

Constructors
  NameDescription
Public methodMat
Creates empty Mat
Public methodMat(IntPtr)
Creates from native cv::Mat* pointer
Protected methodMat(Mat)
Initializes a new instance of the Mat class
Public methodMat(IEnumerableInt32, MatType)
constructs n-dimensional matrix
Public methodMat(String, ImreadModes)
Loads an image from a file. (cv::imread)
Public methodMat(Mat, Range)
creates a matrix header for a part of the bigger matrix
Public methodMat(Mat, Rect)
creates a matrix header for a part of the bigger matrix
Public methodMat(Size, MatType)
constructs 2D matrix of the specified size and type
Public methodMat(IEnumerableInt32, MatType, Scalar)
constructs n-dimensional matrix
Public methodMat(Int32, Int32, MatType)
constructs 2D matrix of the specified size and type
Public methodMat(Mat, Range, NullableRange)
creates a matrix header for a part of the bigger matrix
Public methodMat(Size, MatType, Scalar)
constructs 2D matrix and fills it with the specified Scalar value.
Public methodMat(IEnumerableInt32, MatType, Array, IEnumerableInt64)
constructor for matrix headers pointing to user-allocated data
Public methodMat(IEnumerableInt32, MatType, IntPtr, IEnumerableInt64)
constructor for matrix headers pointing to user-allocated data
Public methodMat(Int32, Int32, MatType, Scalar)
constructs 2D matrix and fills it with the specified Scalar value.
Public methodMat(Int32, Int32, MatType, Array, Int64)
constructor for matrix headers pointing to user-allocated data
Public methodMat(Int32, Int32, MatType, IntPtr, Int64)
constructor for matrix headers pointing to user-allocated data
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 propertyCols
the number of columns or -1 when the array has more than 2 dimensions
Public propertyCvPtr
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.)
Public propertyData
pointer to the data
Public propertyDataEnd
The pointer that is possible to compute a relative sub-array position in the main container array using locateROI()
Protected propertyDataHandle
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.)
Public propertyDataLimit
The pointer that is possible to compute a relative sub-array position in the main container array using locateROI()
Public propertyDataPointer
unsafe pointer to the data
Public propertyDataStart
The pointer that is possible to compute a relative sub-array position in the main container array using locateROI()
Public propertyDims
the array dimensionality, >= 2
Public propertyFlags
includes several bit-fields: - the magic signature - continuity flag - depth - number of channels
Public propertyHeight
the number of rows or -1 when the array has more than 2 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 propertyItemRange
Extracts a rectangular submatrix.
Public propertyItemRect
Extracts a rectangular submatrix.
Public propertyItemRange, Range
Extracts a rectangular submatrix.
Public propertyItemInt32, Int32, Int32, Int32
Extracts a rectangular submatrix.
Public propertyRows
the number of rows or -1 when the array has more than 2 dimensions
Public propertyWidth
the number of columns or -1 when the array has more than 2 dimensions
Top
Methods
  NameDescription
Public methodAbs
Computes absolute value of each matrix element
Public methodAccumulate
Adds an image to the accumulator.
Public methodAccumulateSquare
Adds the square of a source image to the accumulator.
Public methodAdaptiveThreshold
Applies an adaptive threshold to an array. Source matrix must be 8-bit single-channel image.
Public methodAdd(Byte)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Double)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Int16)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Int32)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(SByte)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Single)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(UInt16)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Mat)
Adds elements to the bottom of the matrix. (Mat.push_back)
Public methodAdd(Point)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Point2d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Point2f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Point3d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Point3f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Point3i)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Rect)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Rect2d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Rect2f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Size)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Size2d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Size2f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec2b)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec2d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec2f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec2i)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec2s)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec2w)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec3b)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec3d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec3f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec3i)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec3s)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec3w)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec4b)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec4d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec4f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec4i)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec4s)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec4w)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec6b)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec6d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec6f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec6i)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec6s)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdd(Vec6w)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodAdjustROI
Adjusts a submatrix size and position within the parent matrix.
Public methodAlignment
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 methodApproxPolyDP
Approximates contour or a curve using Douglas-Peucker algorithm. The input is the polygon or curve to approximate and it must be 1 x N or N x 1 matrix of type CV_32SC2 or CV_32FC2.
Public methodArcLength
Calculates a contour perimeter or a curve length. The input is 2D point set, represented by CV_32SC2 or CV_32FC2 matrix.
Public methodAssignTo
Provides a functional form of convertTo.
Public methodAtT(Int32)
Returns a value to the specified array element.
Public methodAtT(Int32)
Returns a value to the specified array element.
Public methodAtT(Int32, Int32)
Returns a value to the specified array element.
Public methodAtT(Int32, Int32, Int32)
Returns a value to the specified array element.
Public methodBilateralFilter
Applies bilateral filter to the image The source image must be a 8-bit or floating-point, 1-channel or 3-channel image.
Public methodBlur
Smoothes image using normalized box filter
Public methodBoundingRect
Calculates the up-right bounding rectangle of a point set. The input is 2D point set, represented by CV_32SC2 or CV_32FC2 matrix.
Public methodBoxFilter
Smoothes image using box filter
Public methodCanny
Finds edges in an image using Canny algorithm.
Public methodCastTMat
Creates type-specific Mat instance from this.
Public methodChannels
Returns the number of matrix channels.
Public methodCheckRange(Boolean)
checks that each matrix element is within the specified range.
Public methodCheckRange(Boolean, Point, Double, Double)
checks that each matrix element is within the specified range.
Public methodCheckVector
Public methodCircle(Point, Int32, Scalar, Int32, LineTypes, Int32)
Draws a circle
Public methodCircle(Int32, Int32, Int32, Scalar, Int32, LineTypes, Int32)
Draws a circle
Public methodClone
Creates a full copy of the matrix.
Public methodClone(Rect)
Returns the partial Mat of the specified Mat
Public methodCol
Creates a matrix header for the specified matrix column.
Public methodColRange(Range)
Creates a matrix header for the specified column span.
Public methodColRange(Int32, Int32)
Creates a matrix header for the specified column span.
Public methodCompleteSymm
extends the symmetrical matrix from the lower half or from the upper half
Public methodConnectedComponents(Int32, PixelConnectivity)
computes the connected components labeled image of boolean image. image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0 represents the background label. ltype specifies the output label image type, an important consideration based on the total number of labels or alternatively the total number of pixels in the source image.
Public methodConnectedComponents(OutputArray, PixelConnectivity)
computes the connected components labeled image of boolean image. image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0 represents the background label. ltype specifies the output label image type, an important consideration based on the total number of labels or alternatively the total number of pixels in the source image.
Public methodConnectedComponents(OutputArray, PixelConnectivity, MatType)
computes the connected components labeled image of boolean image. image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0 represents the background label. ltype specifies the output label image type, an important consideration based on the total number of labels or alternatively the total number of pixels in the source image.
Public methodConnectedComponentsEx
computes the connected components labeled image of boolean image. image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0 represents the background label. ltype specifies the output label image type, an important consideration based on the total number of labels or alternatively the total number of pixels in the source image.
Public methodConnectedComponentsWithStats(OutputArray, OutputArray, OutputArray, PixelConnectivity)
computes the connected components labeled image of boolean image. image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0 represents the background label. ltype specifies the output label image type, an important consideration based on the total number of labels or alternatively the total number of pixels in the source image.
Public methodConnectedComponentsWithStats(OutputArray, OutputArray, OutputArray, PixelConnectivity, MatType)
computes the connected components labeled image of boolean image. image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0 represents the background label. ltype specifies the output label image type, an important consideration based on the total number of labels or alternatively the total number of pixels in the source image.
Public methodContourArea
Calculates the contour area. The input is 2D point set, represented by CV_32SC2 or CV_32FC2 matrix.
Public methodConvertScaleAbs
Scales, computes absolute values and converts the result to 8-bit.
Public methodConvertTo
Converts an array to another data type with optional scaling.
Public methodConvexHull
Computes convex hull for a set of 2D points.
Public methodConvexHullFloatPoints
Computes convex hull for a set of 2D points.
Public methodConvexHullIndices
Computes convex hull for a set of 2D points.
Public methodConvexHullPoints
Computes convex hull for a set of 2D points.
Public methodConvexityDefects
Computes the contour convexity defects
Public methodConvexityDefectsAsVec
Computes the contour convexity defects
Public methodCopyMakeBorder
Forms a border around the image
Public methodCopyTo(Mat, InputArray)
Copies the matrix to another one.
Public methodCopyTo(OutputArray, InputArray)
Copies the matrix to another one.
Public methodCornerEigenValsAndVecs
computes both eigenvalues and the eigenvectors of 2x2 derivative covariation matrix at each pixel. The output is stored as 6-channel matrix.
Public methodCornerSubPix
adjusts the corner locations with sub-pixel accuracy to maximize the certain cornerness criteria
Public methodCountNonZero
computes the number of nonzero array elements
Public methodCreate(MatType, Int32)
Allocates new array data if needed.
Public methodCreate(Size, MatType)
Allocates new array data if needed.
Public methodCreate(Int32, Int32, MatType)
Allocates new array data if needed.
Public methodCreateHanningWindow
Computes a Hanning window coefficients in two dimensions.
Public methodCross
Computes a cross-product of two 3-element vectors.
Public methodCvtColor
Converts image from one color space to another
Public methodDct
performs forward or inverse 1D or 2D Discrete Cosine Transformation
Public methodDepth
Returns the depth of a matrix element.
Public methodDeterminant
computes determinant of a square matrix. The input matrix must have CV_32FC1 or CV_64FC1 type and square size.
Public methodDft
Performs a forward Discrete Fourier transform of 1D or 2D floating-point array.
Public methodStatic memberDiag(Mat)
Extracts a diagonal from a matrix, or creates a diagonal matrix.
Public methodDiag(MatDiagType)
Single-column matrix that forms a diagonal matrix or index of the diagonal, with the following values:
Public methodDilate
Dilates an image by using a specific structuring element.
Public methodDispose
Releases the resources
(Inherited from DisposableObject.)
Protected methodDispose(Boolean)
Releases the resources
(Inherited from DisposableObject.)
Protected methodDisposeManaged
Releases managed resources
(Inherited from DisposableObject.)
Protected methodDisposeUnmanaged
Releases unmanaged resources
(Overrides DisposableCvObjectDisposeUnmanaged.)
Public methodDistanceTransform
Computes the distance transform map
Public methodDot
Computes a dot-product of two vectors.
Public methodDrawContours(IEnumerableMat, Int32, Scalar, Int32, LineTypes, Mat, Int32, NullablePoint)
Draws contours in the image
Public methodDrawContours(IEnumerableIEnumerablePoint, Int32, Scalar, Int32, LineTypes, IEnumerableHierarchyIndex, Int32, NullablePoint)
Draws contours in the image
Public methodDrawMarker
Draws a marker on a predefined position in an image. The function cv::drawMarker draws a marker on a given position in the image.For the moment several marker types are supported, see #MarkerTypes for more information.
Public methodDump
Returns a string that represents each element value of Mat. This method corresponds to std::ostream << Mat
Public methodElemSize
Returns the matrix element size in bytes.
Public methodElemSize1
Returns the size of each matrix element channel in bytes.
Public methodEllipse(RotatedRect, Scalar, Int32, LineTypes)
Draws simple or thick elliptic arc or fills ellipse sector
Public methodEllipse(Point, Size, Double, Double, Double, Scalar, Int32, LineTypes, Int32)
Draws simple or thick elliptic arc or fills ellipse sector
Public methodEmpty
Returns true if the array has no elements.
Public methodEmptyClone
Makes a Mat that have the same size, depth and channels as this image
Public methodEqualizeHist
Normalizes the grayscale image brightness and contrast by normalizing its histogram. The source matrix is 8-bit single channel image.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEquals(Double)
operator ==
Public methodEquals(Mat)
operator ==
Public methodErode
Erodes an image by using a specific structuring element.
Public methodExp
computes exponent of each matrix element (dst = e**src)
Public methodExtractChannel
extracts a single channel from src (coi is 0-based index)
Public methodStatic memberEye(Size, MatType)
Returns an identity matrix of the specified size and type.
Public methodStatic memberEye(Int32, Int32, MatType)
Returns an identity matrix of the specified size and type.
Public methodFillConvexPoly
Fills a convex polygon.
Public methodFillPoly
Fills the area bounded by one or more polygons
Public methodFilter2D
Convolves an image with the kernel
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodFindContours(Mat, OutputArray, RetrievalModes, ContourApproximationModes, NullablePoint)
Finds contours in a binary image. The source is an 8-bit single-channel image. Non-zero pixels are treated as 1’s. Zero pixels remain 0’s, so the image is treated as binary. The function modifies this image while extracting the contours.
Public methodFindContours(Point, HierarchyIndex, RetrievalModes, ContourApproximationModes, NullablePoint)
Finds contours in a binary image. The source is an 8-bit single-channel image. Non-zero pixels are treated as 1’s. Zero pixels remain 0’s, so the image is treated as binary. The function modifies this image while extracting the contours.
Public methodFindContoursAsArray
Finds contours in a binary image. The source is an 8-bit single-channel image. Non-zero pixels are treated as 1’s. Zero pixels remain 0’s, so the image is treated as binary. The function modifies this image while extracting the contours.
Public methodFindContoursAsMat
Finds contours in a binary image. The source is an 8-bit single-channel image. Non-zero pixels are treated as 1’s. Zero pixels remain 0’s, so the image is treated as binary. The function modifies this image while extracting the contours.
Public methodFindNonZero
returns the list of locations of non-zero pixels
Public methodFitEllipse
Fits ellipse to the set of 2D points.
Public methodFitLine2D
Fits line to the set of 2D points using M-estimator algorithm. The input is vector of 2D points.
Public methodFitLine3D
Fits line to the set of 3D points using M-estimator algorithm. The input is vector of 3D points.
Public methodFlip
reverses the order of the rows, columns or both in a matrix
Public methodFloodFill(Point, Scalar)
Fills a connected component with the given color. Input/output 1- or 3-channel, 8-bit, or floating-point image. It is modified by the function unless the FLOODFILL_MASK_ONLY flag is set in the second variant of the function. See the details below.
Public methodFloodFill(InputOutputArray, Point, Scalar)
Fills a connected component with the given color. Input/output 1- or 3-channel, 8-bit, or floating-point image. It is modified by the function unless the FLOODFILL_MASK_ONLY flag is set in the second variant of the function. See the details below.
Public methodFloodFill(Point, Scalar, Rect, NullableScalar, NullableScalar, FloodFillFlags)
Fills a connected component with the given color. Input/output 1- or 3-channel, 8-bit, or floating-point image. It is modified by the function unless the FLOODFILL_MASK_ONLY flag is set in the second variant of the function. See the details below.
Public methodFloodFill(InputOutputArray, Point, Scalar, Rect, NullableScalar, NullableScalar, FloodFillFlags)
Fills a connected component with the given color. Input/output 1- or 3-channel, 8-bit, or floating-point image. It is modified by the function unless the FLOODFILL_MASK_ONLY flag is set in the second variant of the function. See the details below.
Public methodForEachAsByte
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsDouble
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsFloat
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsInt16
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsInt32
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec2b
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec2d
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec2f
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec2i
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec2s
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec3b
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec3d
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec3f
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec3i
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec3s
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec4b
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec4d
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec4f
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec4i
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec4s
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec6b
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec6d
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec6f
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec6i
Runs the given functor over all matrix elements in parallel.
Public methodForEachAsVec6s
Runs the given functor over all matrix elements in parallel.
Public methodStatic memberFromArrayTElem(IEnumerableTElem)
Initializes as N x 1 matrix and copies array data to this
Public methodStatic memberFromArrayTElem(TElem)
Initializes as M x N matrix and copies array data to this
Public methodStatic memberFromArrayTElem(TElem)
Initializes as N x 1 matrix and copies array data to this
Public methodStatic memberFromImageData
Creates the Mat instance from image data (using cv::decode)
Public methodStatic memberFromStream
Creates the Mat instance from System.IO.Stream
Public methodGaussianBlur
Blurs an image using a Gaussian filter. The input image can have any number of channels, which are processed independently, but the depth should be CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.
Public methodGetT(Int32)
Returns a value to the specified array element.
Public methodGetT(Int32)
Returns a value to the specified array element.
Public methodGetT(Int32, Int32)
Returns a value to the specified array element.
Public methodGetT(Int32, Int32, Int32)
Returns a value to the specified array element.
Public methodGetArrayT
Get the data of this matrix as array
Public methodGetDefaultNewCameraMatrix
returns the default new camera matrix (by default it is the same as cameraMatrix unless centerPricipalPoint=true)
Public methodGetGenericIndexerT
Gets a type-specific indexer. The indexer has getters/setters to access each matrix element.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRectangularArrayT
Get the data of this matrix as array
Public methodGetRectSubPix
Retrieves a pixel rectangle from an image with sub-pixel accuracy.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUnsafeGenericIndexerT
Gets a type-specific unsafe indexer. The indexer has getters/setters to access each matrix element.
Public methodGoodFeaturesToTrack
Finds the strong enough corners where the cornerMinEigenVal() or cornerHarris() report the local maxima. Input matrix must be 8-bit or floating-point 32-bit, single-channel image.
Public methodGrabCut
Segments the image using GrabCut algorithm. The input is 8-bit 3-channel image.
Public methodGreaterThan(Double)
operator >
Public methodGreaterThan(Mat)
operator >
Public methodGreaterThanOrEqual(Double)
operator >=
Public methodGreaterThanOrEqual(Mat)
operator >=
Public methodHoughCircles
Finds circles in a grayscale image using a Hough transform. The input matrix must be 8-bit, single-channel and grayscale.
Public methodHoughLines
Finds lines in a binary image using standard Hough transform. The input matrix must be 8-bit, single-channel, binary source image. This image may be modified by the function.
Public methodHoughLinesP
Finds lines segments in a binary image using probabilistic Hough transform.
Public methodIdct
performs inverse 1D or 2D Discrete Cosine Transformation
Public methodIdft
Performs an inverse Discrete Fourier transform of 1D or 2D floating-point array.
Public methodStatic memberImDecode
Creates the Mat instance from image data (using cv::decode)
Public methodImEncode(String, ImageEncodingParam)
Encodes an image into a memory buffer.
Public methodImEncode(String, Int32)
Encodes an image into a memory buffer.
Public methodImWrite(String, ImageEncodingParam)
Saves an image to a specified file.
Public methodImWrite(String, Int32)
Saves an image to a specified file.
Public methodInRange(InputArray, InputArray)
set mask elements for those array elements which are within the element-specific bounding box (dst = lowerb <= src && src < upperb)
Public methodInRange(Scalar, Scalar)
set mask elements for those array elements which are within the element-specific bounding box (dst = lowerb <= src && src < upperb)
Public methodInsertChannel
inserts a single channel to dst (coi is 0-based index)
Public methodInv
Inverses a matrix.
Public methodInvertAffineTransform
Inverts an affine transformation.
Public methodIsContinuous
Reports whether the matrix is continuous or not.
Public methodIsContourConvex
Returns true if the contour is convex. Does not support contours with self-intersection
Public methodIsSubmatrix
Returns whether this matrix is a part of other matrix or not.
Public methodLaplacian
Calculates the Laplacian of an image
Public methodLessThan(Double)
operator <
Public methodLessThan(Mat)
operator <
Public methodLessThanOrEqual(Double)
operator <=
Public methodLessThanOrEqual(Mat)
operator <=
Public methodLine(Point, Point, Scalar, Int32, LineTypes, Int32)
Draws a line segment connecting two points
Public methodLine(Int32, Int32, Int32, Int32, Scalar, Int32, LineTypes, Int32)
Draws a line segment connecting two points
Public methodLocateROI
Locates the matrix header within a parent matrix.
Public methodLog
computes natural logarithm of absolute value of each matrix element: dst = log(abs(src))
Public methodLUT(Byte)
transforms array of numbers using a lookup table: dst(i)=lut(src(i))
Public methodLUT(InputArray)
transforms array of numbers using a lookup table: dst(i)=lut(src(i))
Public methodMatchTemplate
Computes the proximity map for the raster template and the image where the template is searched for The input is Image where the search is running; should be 8-bit or 32-bit floating-point.
Public methodMean
computes mean value of selected array elements
Public methodMeanStdDev
computes mean value and standard deviation of all or selected array elements
Public methodMedianBlur
Smoothes image using median filter. The source image must have 1-, 3- or 4-channel and its depth should be CV_8U , CV_16U or CV_32F.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMinAreaRect
Finds the minimum area rotated rectangle enclosing a 2D point set. The input is 2D point set, represented by CV_32SC2 or CV_32FC2 matrix.
Public methodMinEnclosingCircle
Finds the minimum area circle enclosing a 2D point set. The input is 2D point set, represented by CV_32SC2 or CV_32FC2 matrix.
Public methodMinMaxIdx(Double, Double)
finds global minimum and maximum array elements and returns their values and their locations
Public methodMinMaxIdx(Int32, Int32)
finds global minimum and maximum array elements and returns their values and their locations
Public methodMinMaxIdx(Double, Double, Int32, Int32, InputArray)
finds global minimum and maximum array elements and returns their values and their locations
Public methodMinMaxLoc(Double, Double)
finds global minimum and maximum array elements and returns their values and their locations
Public methodMinMaxLoc(Point, Point)
finds global minimum and maximum array elements and returns their values and their locations
Public methodMinMaxLoc(Double, Double, Point, Point, InputArray)
finds global minimum and maximum array elements and returns their values and their locations
Public methodMoments
Calculates all of the moments up to the third order of a polygon or rasterized shape. The input is a raster image (single-channel, 8-bit or floating-point 2D array).
Public methodMorphologyEx
Performs advanced morphological transformations
Public methodMul
Performs an element-wise multiplication or division of the two matrices.
Public methodMulTransposed
multiplies matrix by its transposition from the left or from the right
Public methodNorm
computes norm of the selected array part
Public methodNormalize
scales and shifts array elements so that either the specified norm (alpha) or the minimum (alpha) and maximum (beta) array values get the specified values
Public methodNotEquals(Double)
operator !=
Public methodNotEquals(Mat)
operator !=
Protected methodNotifyMemoryPressure
Notifies the allocated size of memory.
(Inherited from DisposableObject.)
Public methodStatic memberOnes(MatType, Int32)
Returns an array of all 1’s of the specified size and type.
Public methodStatic memberOnes(Size, MatType)
Returns an array of all 1’s of the specified size and type.
Public methodStatic memberOnes(Int32, Int32, MatType)
Returns an array of all 1’s of the specified size and type.
Public methodPatchNaNs
converts NaN's to the given number
Public methodPerspectiveTransform
performs perspective transformation of each element of multi-channel input matrix
Public methodPointPolygonTest
Checks if the point is inside the contour. Optionally computes the signed distance from the point to the contour boundary.
Public methodPolylines
draws one or more polygonal curves
Public methodPopBack
removes several hyper-planes from bottom of the matrix (Mat.pop_back)
Public methodPow
raises the input matrix elements to the specified power (b = a**power)
Public methodPreCornerDetect
computes another complex cornerness criteria at each pixel
Public methodPtr(Int32)
Returns a pointer to the specified matrix row.
Public methodPtr(Int32)
Returns a pointer to the specified matrix element.
Public methodPtr(Int32, Int32)
Returns a pointer to the specified matrix element.
Public methodPtr(Int32, Int32, Int32)
Returns a pointer to the specified matrix element.
Public methodPushBack(Byte)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Double)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Int16)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Int32)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(SByte)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Single)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(UInt16)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Mat)
Adds elements to the bottom of the matrix. (Mat.push_back)
Public methodPushBack(Point)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Point2d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Point2f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Point3d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Point3f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Point3i)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Rect)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Rect2d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Rect2f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Size)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Size2d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Size2f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec2b)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec2d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec2f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec2i)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec2s)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec2w)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec3b)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec3d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec3f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec3i)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec3s)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec3w)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec4b)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec4d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec4f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec4i)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec4s)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec4w)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec6b)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec6d)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec6f)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec6i)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec6s)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPushBack(Vec6w)
Adds elements to the bottom of the matrix. (Mat::push_back)
Public methodPutText
renders text string in the image
Public methodPyrDown
Blurs an image and downsamples it.
Public methodPyrMeanShiftFiltering
Performs initial step of meanshift segmentation of an image. The source matrix is 8-bit, 3-channel image.
Public methodPyrUp
Upsamples an image and then blurs it.
Public methodRandn(InputArray, InputArray)
fills array with normally-distributed random numbers with the specified mean and the standard deviation
Public methodRandn(Scalar, Scalar)
fills array with normally-distributed random numbers with the specified mean and the standard deviation
Public methodRandShuffle(Double)
shuffles the input array elements
Public methodRandShuffle(Double, RNG)
shuffles the input array elements
Public methodRandu(InputArray, InputArray)
fills array with uniformly-distributed random numbers from the range [low, high)
Public methodRandu(Scalar, Scalar)
fills array with uniformly-distributed random numbers from the range [low, high)
Public methodRectangle(Rect, Scalar, Int32, LineTypes, Int32)
Draws simple, thick or filled rectangle
Public methodRectangle(Point, Point, Scalar, Int32, LineTypes, Int32)
Draws simple, thick or filled rectangle
Public methodReduce
transforms 2D matrix to 1D row or column vector by taking sum, minimum, maximum or mean value over all the rows
Public methodRelease
Releases the resources
Public methodRemap
Applies a generic geometrical transformation to an image.
Public methodRepeat
replicates the input matrix the specified number of times in the horizontal and/or vertical direction
Public methodReserve
Reserves space for the certain number of rows. The method reserves space for sz rows. If the matrix already has enough space to store sz rows, nothing happens. If the matrix is reallocated, the first Mat::rows rows are preserved. The method emulates the corresponding method of the STL vector class.
Public methodReserveBuffer
Reserves space for the certain number of bytes. The method reserves space for sz bytes. If the matrix already has enough space to store sz bytes, nothing happens. If matrix has to be reallocated its previous content could be lost.
Public methodReshape(Int32, Int32)
Changes the shape and/or the number of channels of a 2D matrix without copying the data.
Public methodReshape(Int32, Int32)
Changes the shape and/or the number of channels of a 2D matrix without copying the data.
Public methodResize(Int32)
Changes the number of matrix rows.
Public methodResize(Int32, Scalar)
Changes the number of matrix rows.
Public methodResize(Size, Double, Double, InterpolationFlags)
Resizes an image.
Public methodRow
Creates a matrix header for the specified matrix row.
Public methodRowRange(Range)
Public methodRowRange(Int32, Int32)
Public methodSaveImage(String, ImageEncodingParam)
Saves an image to a specified file.
Public methodSaveImage(String, Int32)
Saves an image to a specified file.
Public methodScharr
Calculates the first x- or y- image derivative using Scharr operator
Public methodSepFilter2D
Applies separable linear filter to an image
Public methodSetT(Int32, T)
Set a value to the specified array element.
Public methodSetT(Int32, T)
Set a value to the specified array element.
Public methodSetT(Int32, Int32, T)
Set a value to the specified array element.
Public methodSetT(Int32, Int32, Int32, T)
Set a value to the specified array element.
Public methodSetArrayT
Set the specified array data to this matrix
Public methodSetIdentity
initializes scaled identity matrix (not necessarily square).
Public methodSetRectangularArrayT
Set the specified array data to this matrix
Public methodSetTo(InputArray, Mat)
Sets all or some of the array elements to the specified value.
Public methodSetTo(Scalar, Mat)
Sets all or some of the array elements to the specified value.
Public methodSize
Returns a matrix size.
Public methodSize(Int32)
Returns a matrix size.
Public methodSobel
Calculates the first, second, third or mixed image derivatives using an extended Sobel operator
Public methodSort
sorts independently each matrix row or each matrix column
Public methodSortIdx
sorts independently each matrix row or each matrix column
Public methodSplit
Copies each plane of a multi-channel array to a dedicated array
Public methodSqrt
computes square root of each matrix element (dst = src**0.5)
Public methodStep
Returns number of bytes each matrix row occupies.
Public methodStep(Int32)
Returns number of bytes each matrix row occupies.
Public methodStep1
Returns a normalized step.
Public methodSubMat(Range)
Extracts a rectangular submatrix.
Public methodSubMat(Rect)
Extracts a rectangular submatrix.
Public methodSubMat(Range, Range)
Extracts a rectangular submatrix.
Public methodSubMat(Int32, Int32, Int32, Int32)
Extracts a rectangular submatrix.
Public methodSum
computes sum of array elements
Public methodT
Transposes a matrix.
Public methodThreshold
Applies a fixed-level threshold to each array element. The input matrix must be single-channel, 8-bit or 32-bit floating point.
Public methodThrowIfDisposed
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.)
Public methodToBytes(String, ImageEncodingParam)
Encodes an image into a memory buffer.
Public methodToBytes(String, Int32)
Encodes an image into a memory buffer.
Public methodToMemoryStream
Converts Mat to System.IO.MemoryStream
Public methodToString
Returns a string that represents this Mat.
(Overrides ObjectToString.)
Public methodTotal
Returns the total number of array elements.
Public methodTotal(Int32, Int32)
Returns the total number of array elements. The method returns the number of elements within a certain sub-array slice with startDim <= dim < endDim
Public methodTrace
computes trace of a matrix
Public methodTransform
performs affine transformation of each element of multi-channel input matrix
Public methodTranspose
transposes the matrix
Public methodType
Returns the type of a matrix element.
Public methodUndistort
corrects lens distortion for the given camera matrix and distortion coefficients
Public methodUndistortPoints
Computes the ideal point coordinates from the observed point coordinates. Input matrix is an observed point coordinates, 1xN or Nx1 2-channel (CV_32FC2 or CV_64FC2).
Public methodWarpAffine
Applies an affine transformation to an image.
Public methodWarpPerspective
Applies a perspective transformation to an image.
Public methodWatershed
Performs a marker-based image segmentation using the watershed algorithm. Input matrix is 8-bit 3-channel image.
Public methodWriteToStream
Writes image data encoded from this Mat to System.IO.Stream
Public methodStatic memberZeros(MatType, Int32)
Returns a zero array of the specified size and type.
Public methodStatic memberZeros(Size, MatType)
Returns a zero array of the specified size and type.
Public methodStatic memberZeros(Int32, Int32, MatType)
Returns a zero array of the specified size and type.
Top
Operators
Fields
  NameDescription
Protected fieldptr
Data pointer
(Inherited from DisposableCvObject.)
Protected fieldStatic memberTypeMap
typeof(T) -> MatType
Top
Extension Methods
  NameDescription
Public Extension MethodCopyFrom
Copies pixel data from System.Windows.Media.Imaging.BitmapSource to IplImage instance
(Defined by BitmapSourceConverter.)
Public Extension MethodHoughLinesProbabilisticEx
(Defined by CvExtensions.)
Public Extension MethodToBitmapOverloaded.
Converts Mat to System.Drawing.Bitmap
(Defined by BitmapConverter.)
Public Extension MethodToBitmap(PixelFormat)Overloaded.
Converts Mat to System.Drawing.Bitmap
(Defined by BitmapConverter.)
Public Extension MethodToBitmap(Bitmap)Overloaded.
Converts Mat to System.Drawing.Bitmap
(Defined by BitmapConverter.)
Public Extension MethodToBitmapSourceOverloaded.
Converts Mat to BitmapSource.
(Defined by BitmapSourceConverter.)
Public Extension MethodToBitmapSource(Int32, Int32, PixelFormat, BitmapPalette)Overloaded.
Converts Mat to BitmapSource.
(Defined by BitmapSourceConverter.)
Public Extension MethodToWriteableBitmapOverloaded.
Converts Mat to WriteableBitmap (dpi=96, BitmapPalette=null)
(Defined by WriteableBitmapConverter.)
Public Extension MethodToWriteableBitmap(PixelFormat)Overloaded.
Converts Mat to WriteableBitmap (dpi=96, BitmapPalette=null)
(Defined by WriteableBitmapConverter.)
Public Extension MethodToWriteableBitmap(Double, Double, PixelFormat, BitmapPalette)Overloaded.
Converts Mat to WriteableBitmap. The arguments of this method corresponds the consructor of WriteableBitmap.
(Defined by WriteableBitmapConverter.)
Top
See Also