OpenCV C++ n-dimensional dense array class (cv::Mat)
Inheritance Hierarchy
OpenCvSharpDisposableObject
OpenCvSharpDisposableCvObject
OpenCvSharp.CPlusPlusMat
OpenCvSharp.CPlusPlusMatTElem, TInherit
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The Mat type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Mat |
Creates empty Mat
| |
Mat(IntPtr) |
Creates from native cv::Mat* pointer
| |
Mat(IEnumerableInt32, MatType) |
constructs n-dimensional matrix
| |
Mat(String, LoadMode) |
Loads an image from a file. (cv::imread)
| |
Mat(CvMat, Boolean) |
converts old-style CvMat to the new matrix; the data is not copied by default
| |
Mat(IplImage, Boolean) |
converts old-style IplImage to the new matrix; the data is not copied by default
| |
Mat(Mat, Range) |
creates a matrix header for a part of the bigger matrix
| |
Mat(Mat, Rect) |
creates a matrix header for a part of the bigger matrix
| |
Mat(Size, MatType) |
constructs 2D matrix of the specified size and type
| |
Mat(IEnumerableInt32, MatType, Scalar) |
constructs n-dimensional matrix
| |
Mat(Int32, Int32, MatType) |
constructs 2D matrix of the specified size and type
| |
Mat(Mat, Range, NullableRange) |
creates a matrix header for a part of the bigger matrix
| |
Mat(Size, MatType, Scalar) |
constucts 2D matrix and fills it with the specified Scalar value.
| |
Mat(IEnumerableInt32, MatType, Array, IEnumerableInt64) |
constructor for matrix headers pointing to user-allocated data
| |
Mat(IEnumerableInt32, MatType, IntPtr, IEnumerableInt64) |
constructor for matrix headers pointing to user-allocated data
| |
Mat(Int32, Int32, MatType, Scalar) |
constucts 2D matrix and fills it with the specified Scalar value.
| |
Mat(Int32, Int32, MatType, Array, Int64) |
constructor for matrix headers pointing to user-allocated data
| |
Mat(Int32, Int32, MatType, IntPtr, Int64) |
constructor for matrix headers pointing to user-allocated data
|
Properties
Name | Description | |
---|---|---|
AllocatedMemory |
Gets or sets a memory address allocated by AllocMemory.
(Inherited from DisposableObject.) | |
AllocatedMemorySize |
Gets or sets the byte length of the allocated memory
(Inherited from DisposableObject.) | |
Col |
Indexer to access Mat column as Mat
| |
ColExpr |
Indexer to access Mat column as MatExpr
| |
Cols |
the number of columns or -1 when the array has more than 2 dimensions
| |
CvPtr |
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.) | |
Data |
pointer to the data
| |
DataEnd |
The pointer that is possible to compute a relative sub-array position in the main container array using locateROI()
| |
DataLimit |
The pointer that is possible to compute a relative sub-array position in the main container array using locateROI()
| |
DataPointer |
unsafe pointer to the data
| |
DataStart |
The pointer that is possible to compute a relative sub-array position in the main container array using locateROI()
| |
Expr |
Indexer to access partial Mat as MatExpr
| |
Height |
the number of rows or -1 when the array has more than 2 dimensions
| |
IsDisposed |
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.) | |
IsEnabledDispose |
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.) | |
ItemRange |
Extracts a rectangular submatrix.
| |
ItemRect |
Extracts a rectangular submatrix.
| |
ItemRange, Range |
Extracts a rectangular submatrix.
| |
ItemInt32, Int32, Int32, Int32 |
Extracts a rectangular submatrix.
| |
Refcount |
pointer to the reference counter;
when matrix points to user-allocated data, the pointer is NULL
| |
Row |
Indexer to access Mat row as Mat
| |
RowExpr |
Indexer to access Mat row as MatExpr
| |
Rows |
the number of rows or -1 when the array has more than 2 dimensions
| |
Width |
the number of columns or -1 when the array has more than 2 dimensions
|
Methods
Name | Description | |
---|---|---|
Abs |
Computes absolute value of each matrix element
| |
Accumulate |
Adds an image to the accumulator.
| |
AccumulateSquare |
Adds the square of a source image to the accumulator.
| |
AdaptiveBilateralFilter |
Applies the adaptive bilateral filter to an image.
| |
AdaptiveThreshold |
Applies an adaptive threshold to an array.
Source matrix must be 8-bit single-channel image.
| |
Add |
Adds elements to the bottom of the matrix. (Mat.push_back)
| |
AdjustROI |
Adjusts a submatrix size and position within the parent matrix.
| |
Alignment | ||
AllocGCHandle |
Pins the object to be allocated by cvSetData.
(Inherited from DisposableObject.) | |
AllocMemory |
Allocates the specified size of memory.
(Inherited from DisposableObject.) | |
ApproxPolyDP |
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.
| |
ArcLength |
Calculates a contour perimeter or a curve length.
The input is 2D point set, represented by CV_32SC2 or CV_32FC2 matrix.
| |
AssignTo(Mat) |
Provides a functional form of convertTo.
| |
AssignTo(Mat, MatType) |
Provides a functional form of convertTo.
| |
AtT(Int32) |
Returns a value to the specified array element.
| |
AtT(Int32) |
Returns a value to the specified array element.
| |
AtT(Int32, Int32) |
Returns a value to the specified array element.
| |
AtT(Int32, Int32, Int32) |
Returns a value to the specified array element.
| |
BilateralFilter |
Applies bilateral filter to the image
The source image must be a 8-bit or floating-point, 1-channel or 3-channel image.
| |
Blur |
Smoothes image using normalized box filter
| |
BoundingRect |
Calculates the up-right bounding rectangle of a point set.
The input is 2D point set, represented by CV_32SC2 or CV_32FC2 matrix.
| |
BoxFilter |
Smoothes image using box filter
| |
Canny |
Finds edges in an image using Canny algorithm.
| |
CastTMat |
Creates type-specific Mat instance from this.
| |
Channels |
Returns the number of matrix channels.
| |
CheckRange(Boolean) |
checks that each matrix element is within the specified range.
| |
CheckRange(Boolean, Point, Double, Double) |
checks that each matrix element is within the specified range.
| |
CheckVector(Int32) | ||
CheckVector(Int32, Int32) | ||
CheckVector(Int32, Int32, Boolean) | ||
Circle(Point, Int32, Scalar, Int32, LineType, Int32) |
Draws a circle
| |
Circle(Int32, Int32, Int32, Scalar, Int32, LineType, Int32) |
Draws a circle
| |
Clone |
Creates a full copy of the matrix.
| |
Clone(Rect) |
Returns the partial Mat of the specified Mat
| |
ColRange(Range) | ||
ColRange(Int32, Int32) | ||
CompleteSymm |
extends the symmetrical matrix from the lower half or from the upper half
| |
ContourArea |
Calculates the contour area.
The input is 2D point set, represented by CV_32SC2 or CV_32FC2 matrix.
| |
ConvertScaleAbs |
Scales, computes absolute values and converts the result to 8-bit.
| |
ConvertTo |
Converts an array to another data type with optional scaling.
| |
ConvexHull |
Computes convex hull for a set of 2D points.
| |
ConvexHullFloatPoints |
Computes convex hull for a set of 2D points.
| |
ConvexHullIndices |
Computes convex hull for a set of 2D points.
| |
ConvexHullPoints |
Computes convex hull for a set of 2D points.
| |
ConvexityDefects |
Computes the contour convexity defects
| |
ConvexityDefectsAsVec |
Computes the contour convexity defects
| |
CopyMakeBorder |
Forms a border around the image
| |
CopyTo(Mat) |
Copies the matrix to another one.
| |
CopyTo(Mat, Mat) |
Copies the matrix to another one.
| |
CornerEigenValsAndVecs |
computes both eigenvalues and the eigenvectors of 2x2 derivative covariation matrix at each pixel. The output is stored as 6-channel matrix.
| |
CornerSubPix |
adjusts the corner locations with sub-pixel accuracy to maximize the certain cornerness criteria
| |
CountNonZero |
computes the number of nonzero array elements
| |
Create(MatType, Int32) |
Allocates new array data if needed.
| |
Create(Size, MatType) |
Allocates new array data if needed.
| |
Create(Int32, Int32, MatType) |
Allocates new array data if needed.
| |
CreateHanningWindow |
Computes a Hanning window coefficients in two dimensions.
| |
Cross |
Computes a cross-product of two 3-element vectors.
| |
CvtColor |
Converts image from one color space to another
| |
Dct |
performs forward or inverse 1D or 2D Discrete Cosine Transformation
| |
Depth |
Returns the depth of a matrix element.
| |
Determinant |
computes determinant of a square matrix.
The input matrix must have CV_32FC1 or CV_64FC1 type and square size.
| |
Dft |
Performs a forward Discrete Fourier transform of 1D or 2D floating-point array.
| |
Diag(Mat) |
Extracts a diagonal from a matrix, or creates a diagonal matrix.
| |
Diag(MatDiagType) |
Single-column matrix that forms a diagonal matrix or index of the diagonal, with the following values:
| |
Dilate |
Dilates an image by using a specific structuring element.
| |
Dims |
the array dimensionality, >= 2
| |
Dispose |
Releases the resources
(Inherited from DisposableObject.) | |
Dispose(Boolean) |
Releases the resources
(Overrides DisposableCvObjectDispose(Boolean).) | |
DistanceTransform |
computes the distance transform map
| |
Dot |
Computes a dot-product of two vectors.
| |
DrawContours(IEnumerableIEnumerablePoint, Int32, Scalar, Int32, LineType, IEnumerableHierarchyIndex, Int32, NullablePoint) |
Draws contours in the image
| |
DrawContours(InputOutputArray, IEnumerableMat, Int32, Scalar, Int32, LineType, Mat, Int32, NullablePoint) |
Draws contours in the image
| |
Dump |
Returns a string that represents each element value of Mat.
This method corresponds to std::ostream << Mat
| |
ElemSize |
Returns the matrix element size in bytes.
| |
ElemSize1 |
Returns the size of each matrix element channel in bytes.
| |
Ellipse(RotatedRect, Scalar, Int32, LineType) |
Draws simple or thick elliptic arc or fills ellipse sector
| |
Ellipse(Point, Size, Double, Double, Double, Scalar, Int32, LineType, Int32) |
Draws simple or thick elliptic arc or fills ellipse sector
| |
Empty |
Returns true if the array has no elements.
| |
EmptyClone |
Makes a Mat that have the same size, depth and channels as this image
| |
EqualizeHist |
Normalizes the grayscale image brightness and contrast by normalizing its histogram.
The source matrix is 8-bit single channel image.
| |
Equals(Object) | (Inherited from Object.) | |
Equals(Double) |
operator ==
| |
Equals(Mat) |
operator ==
| |
Erode |
Erodes an image by using a specific structuring element.
| |
Exp |
computes exponent of each matrix element (dst = e**src)
| |
ExtractChannel |
extracts a single channel from src (coi is 0-based index)
| |
Eye(Size, MatType) |
Returns an identity matrix of the specified size and type.
| |
Eye(Int32, Int32, MatType) |
Returns an identity matrix of the specified size and type.
| |
FillConvexPoly |
Fills a convex polygon.
| |
FillPoly |
Fills the area bounded by one or more polygons
| |
Filter2D |
Convolves an image with the kernel
| |
Finalize |
Destructor
(Inherited from DisposableObject.) | |
FindContours(Mat, OutputArray, ContourRetrieval, ContourChain, 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.
| |
FindContours(Point, HierarchyIndex, ContourRetrieval, ContourChain, 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.
| |
FindContoursAsArray |
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.
| |
FindContoursAsMat |
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.
| |
FindNonZero |
returns the list of locations of non-zero pixels
| |
FitEllipse |
Fits ellipse to the set of 2D points.
| |
FitLine2D |
Fits line to the set of 2D points using M-estimator algorithm.
The input is vector of 2D points.
| |
FitLine3D |
Fits line to the set of 3D points using M-estimator algorithm.
The input is vector of 3D points.
| |
Flip |
reverses the order of the rows, columns or both in a matrix
| |
FloodFill(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.
| |
FloodFill(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.
| |
FloodFill(Point, Scalar, Rect, NullableScalar, NullableScalar, FloodFillFlag) |
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.
| |
FloodFill(InputOutputArray, Point, Scalar, Rect, NullableScalar, NullableScalar, FloodFillFlag) |
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.
| |
FromImageData |
Creates the Mat instance from image data (using cv::imdecode)
| |
FromStream |
Creates the Mat instance from System.IO.Stream
| |
GaussianBlur |
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.
| |
GetT(Int32) |
Returns a value to the specified array element.
| |
GetT(Int32) |
Returns a value to the specified array element.
| |
GetT(Int32, Int32) |
Returns a value to the specified array element.
| |
GetT(Int32, Int32, Int32) |
Returns a value to the specified array element.
| |
GetArray(Int32, Int32) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, DMatch) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, DMatch) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Point) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Point) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Point2d) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Point2d) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Point2f) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Point2f) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Point3d) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Point3d) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Point3f) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Point3f) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Point3i) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Point3i) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Rect) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Rect) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Vec3b) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Vec3b) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Vec3d) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Vec3d) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Vec4f) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Vec4f) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Vec4i) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Vec4i) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Vec6f) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Vec6f) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Byte) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Byte) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Double) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Double) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Int16) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Int16) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Int32) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Int32) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Single) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, Single) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, UInt16) |
Get the data of this matrix as array
| |
GetArray(Int32, Int32, UInt16) |
Get the data of this matrix as array
| |
GetDefaultNewCameraMatrix |
returns the default new camera matrix (by default it is the same as cameraMatrix unless centerPricipalPoint=true)
| |
GetGenericIndexerT |
Gets a type-specific indexer. The indexer has getters/setters to access each matrix element.
| |
GetHashCode | (Inherited from Object.) | |
GetRectSubPix |
Retrieves a pixel rectangle from an image with sub-pixel accuracy.
| |
GetType | (Inherited from Object.) | |
GoodFeaturesToTrack |
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.
| |
GrabCut |
Segments the image using GrabCut algorithm.
The input is 8-bit 3-channel image.
| |
GreaterThan(Double) |
operator >
| |
GreaterThan(Mat) |
operator >
| |
GreaterThanOrEqual(Double) |
operator >=
| |
GreaterThanOrEqual(Mat) |
operator >=
| |
HoughCircles |
Finds circles in a grayscale image using a Hough transform.
The input matrix must be 8-bit, single-channel and grayscale.
| |
HoughLines |
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.
| |
HoughLinesP |
Finds lines segments in a binary image using probabilistic Hough transform.
| |
Idct |
performs inverse 1D or 2D Discrete Cosine Transformation
| |
Idft |
Performs an inverse Discrete Fourier transform of 1D or 2D floating-point array.
| |
ImDecode |
Creates the Mat instance from image data (using cv::imdecode)
| |
ImEncode(String, ImageEncodingParam) |
Encodes an image into a memory buffer.
| |
ImEncode(String, Int32) |
Encodes an image into a memory buffer.
| |
ImWrite(String, ImageEncodingParam) |
Saves an image to a specified file.
| |
ImWrite(String, Int32) |
Saves an image to a specified file.
| |
InRange(InputArray, InputArray) |
set mask elements for those array elements which are within the element-specific bounding box (dst = lowerb <= src && src < upperb)
| |
InRange(Scalar, Scalar) |
set mask elements for those array elements which are within the element-specific bounding box (dst = lowerb <= src && src < upperb)
| |
InsertChannel |
inserts a single channel to dst (coi is 0-based index)
| |
Inv |
Inverses a matrix.
| |
InvertAffineTransform |
Inverts an affine transformation.
| |
IsContinuous |
Reports whether the matrix is continuous or not.
| |
IsContourConvex |
Returns true if the contour is convex.
Does not support contours with self-intersection
| |
IsSubmatrix |
Returns whether this matrix is a part of other matrix or not.
| |
Laplacian |
Calculates the Laplacian of an image
| |
LessThan(Double) |
operator <
| |
LessThan(Mat) |
operator <
| |
LessThanOrEqual(Double) |
operator <=
| |
LessThanOrEqual(Mat) |
operator <=
| |
Line(Point, Point, Scalar, Int32, LineType, Int32) |
Draws a line segment connecting two points
| |
Line(Int32, Int32, Int32, Int32, CvScalar, Int32, LineType, Int32) |
Draws a line segment connecting two points
| |
LocateROI |
Locates the matrix header within a parent matrix.
| |
Log |
computes natural logarithm of absolute value of each matrix element: dst = log(abs(src))
| |
LUT(Byte, Int32) |
transforms array of numbers using a lookup table: dst(i)=lut(src(i))
| |
LUT(InputArray, Int32) |
transforms array of numbers using a lookup table: dst(i)=lut(src(i))
| |
MatchTemplate |
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.
| |
Mean |
computes mean value of selected array elements
| |
MeanStdDev |
computes mean value and standard deviation of all or selected array elements
| |
MedianBlur |
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.
| |
MemberwiseClone | (Inherited from Object.) | |
MinAreaRect |
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.
| |
MinEnclosingCircle |
Finds the minimum area circle enclosing a 2D point set.
The input is 2D point set, represented by CV_32SC2 or CV_32FC2 matrix.
| |
MinMaxIdx(Double, Double) |
finds global minimum and maximum array elements and returns their values and their locations
| |
MinMaxIdx(Int32, Int32) |
finds global minimum and maximum array elements and returns their values and their locations
| |
MinMaxIdx(Double, Double, Int32, Int32, InputArray) |
finds global minimum and maximum array elements and returns their values and their locations
| |
MinMaxLoc(Double, Double) |
finds global minimum and maximum array elements and returns their values and their locations
| |
MinMaxLoc(Point, Point) |
finds global minimum and maximum array elements and returns their values and their locations
| |
MinMaxLoc(Double, Double, Point, Point, InputArray) |
finds global minimum and maximum array elements and returns their values and their locations
| |
Moments |
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).
| |
MorphologyEx |
Performs advanced morphological transformations
| |
Mul |
Performs an element-wise multiplication or division of the two matrices.
| |
MulTransposed |
multiplies matrix by its transposition from the left or from the right
| |
Norm |
computes norm of the selected array part
| |
Normalize |
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
| |
NotEquals(Double) |
operator !=
| |
NotEquals(Mat) |
operator !=
| |
NotifyMemoryPressure |
Notifies the allocated size of memory.
(Inherited from DisposableObject.) | |
Ones(MatType, Int32) |
Returns an array of all 1’s of the specified size and type.
| |
Ones(Size, MatType) |
Returns an array of all 1’s of the specified size and type.
| |
Ones(Int32, Int32, MatType) |
Returns an array of all 1’s of the specified size and type.
| |
PatchNaNs |
converts NaN's to the given number
| |
PerspectiveTransform |
performs perspective transformation of each element of multi-channel input matrix
| |
PointPolygonTest |
Checks if the point is inside the contour.
Optionally computes the signed distance from the point to the contour boundary.
| |
Polylines |
draws one or more polygonal curves
| |
PopBack |
removes several hyper-planes from bottom of the matrix (Mat.pop_back)
| |
Pow |
raises the input matrix elements to the specified power (b = a**power)
| |
PreCornerDetect |
computes another complex cornerness criteria at each pixel
| |
Ptr(Int32) |
Returns a pointer to the specified matrix row.
| |
Ptr(Int32) |
Returns a pointer to the specified matrix element.
| |
Ptr(Int32, Int32) |
Returns a pointer to the specified matrix element.
| |
Ptr(Int32, Int32, Int32) |
Returns a pointer to the specified matrix element.
| |
PushBack |
Adds elements to the bottom of the matrix. (Mat.push_back)
| |
PutText |
renders text string in the image
| |
PyrDown |
Blurs an image and downsamples it.
| |
PyrMeanShiftFiltering |
Performs initial step of meanshift segmentation of an image.
The source matrix is 8-bit, 3-channel image.
| |
PyrUp |
Upsamples an image and then blurs it.
| |
Randn(InputArray, InputArray) |
fills array with normally-distributed random numbers with the specified mean and the standard deviation
| |
Randn(Scalar, Scalar) |
fills array with normally-distributed random numbers with the specified mean and the standard deviation
| |
RandShuffle |
shuffles the input array elements
| |
Randu(InputArray, InputArray) |
fills array with uniformly-distributed random numbers from the range [low, high)
| |
Randu(Scalar, Scalar) |
fills array with uniformly-distributed random numbers from the range [low, high)
| |
Rectangle(Rect, Scalar, Int32, LineType, Int32) |
Draws simple, thick or filled rectangle
| |
Rectangle(Point, Point, Scalar, Int32, LineType, Int32) |
Draws simple, thick or filled rectangle
| |
Reduce |
transforms 2D matrix to 1D row or column vector by taking sum, minimum, maximum or mean value over all the rows
| |
Release |
Releases the resources
| |
Remap |
Applies a generic geometrical transformation to an image.
| |
Repeat |
replicates the input matrix the specified number of times in the horizontal and/or vertical direction
| |
Reserve |
reserves enough space to fit sz hyper-planes
| |
Reshape(Int32, Int32) |
Changes the shape and/or the number of channels of a 2D matrix without copying the data.
| |
Reshape(Int32, Int32) |
Changes the shape and/or the number of channels of a 2D matrix without copying the data.
| |
Resize(Int64) |
resizes matrix to the specified number of hyper-planes
| |
Resize(Int64, Scalar) |
resizes matrix to the specified number of hyper-planes; initializes the newly added elements
| |
Resize(Size, Double, Double, Interpolation) |
Resizes an image.
| |
RowRange(Range) | ||
RowRange(Int32, Int32) | ||
SaveImage(String, ImageEncodingParam) |
Saves an image to a specified file.
| |
SaveImage(String, Int32) |
Saves an image to a specified file.
| |
Scharr |
Calculates the first x- or y- image derivative using Scharr operator
| |
SepFilter2D |
Applies separable linear filter to an image
| |
SetT(Int32, T) |
Set a value to the specified array element.
| |
SetT(Int32, T) |
Set a value to the specified array element.
| |
SetT(Int32, Int32, T) |
Set a value to the specified array element.
| |
SetT(Int32, Int32, Int32, T) |
Set a value to the specified array element.
| |
SetArray(Int32, Int32, DMatch) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, DMatch) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Point) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Point) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Point2d) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Point2d) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Point2f) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Point2f) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Point3d) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Point3d) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Point3f) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Point3f) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Point3i) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Point3i) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Rect) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Rect) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Vec3b) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Vec3b) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Vec3d) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Vec3d) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Vec4f) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Vec4f) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Vec4i) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Vec4i) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Vec6f) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Vec6f) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Byte) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Byte) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Double) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Double) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Int16) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Int16) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Int32) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Int32) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Single) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, Single) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, UInt16) |
Set the specified array data to this matrix
| |
SetArray(Int32, Int32, UInt16) |
Set the specified array data to this matrix
| |
SetIdentity |
initializes scaled identity matrix (not necessarily square).
| |
SetTo(InputArray, InputArray) |
Sets all or some of the array elements to the specified value.
| |
SetTo(Scalar, InputArray) |
Sets all or some of the array elements to the specified value.
| |
Size |
Returns a matrix size.
| |
Size(Int32) |
Returns a matrix size.
| |
Sobel |
Calculates the first, second, third or mixed image derivatives using an extended Sobel operator
| |
Sort |
sorts independently each matrix row or each matrix column
| |
SortIdx |
sorts independently each matrix row or each matrix column
| |
Split |
Copies each plane of a multi-channel array to a dedicated array
| |
Sqrt |
computes square root of each matrix element (dst = src**0.5)
| |
Step | ||
Step(Int32) | ||
Step1 |
Returns a normalized step.
| |
Step1(Int32) |
Returns a normalized step.
| |
SubMat(Range) | ||
SubMat(Rect) | ||
SubMat(Range, Range) | ||
SubMat(Int32, Int32, Int32, Int32) | ||
Sum |
computes sum of array elements
| |
T |
Transposes a matrix.
| |
Threshold |
Applies a fixed-level threshold to each array element.
The input matrix must be single-channel, 8-bit or 32-bit floating point.
| |
ThrowIfDisposed |
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.) | |
ToBytes(String, ImageEncodingParam) |
Encodes an image into a memory buffer.
| |
ToBytes(String, Int32) |
Encodes an image into a memory buffer.
| |
ToCvMat |
Creates the CvMat header or clone instance for the matrix.
| |
ToIplImage |
Creates the IplImage clone instance or header for the matrix.
| |
ToMemoryStream |
Converts Mat to System.IO.MemoryStream
| |
ToString |
Returns a string that represents this Mat.
(Overrides ObjectToString.) | |
Total |
Returns the total number of array elements.
| |
Trace |
computes trace of a matrix
| |
Transform |
performs affine transformation of each element of multi-channel input matrix
| |
Transpose |
transposes the matrix
| |
Type |
Returns the type of a matrix element.
| |
Undistort |
corrects lens distortion for the given camera matrix and distortion coefficients
| |
UndistortPoints |
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).
| |
WarpAffine |
Applies an affine transformation to an image.
| |
WarpPerspective |
Applies a perspective transformation to an image.
| |
Watershed |
Performs a marker-based image segmentation using the watershed algorithm.
Input matrix is 8-bit 3-channel image.
| |
WriteToStream |
Writes image data encoded from this Mat to System.IO.Stream
| |
Zeros(MatType, Int32) |
Returns a zero array of the specified size and type.
| |
Zeros(Size, MatType) |
Returns a zero array of the specified size and type.
| |
Zeros(Int32, Int32, MatType) |
Returns a zero array of the specified size and type.
|
Operators
Fields
Name | Description | |
---|---|---|
dataHandle |
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.) | |
ptr |
Data pointer
(Inherited from DisposableCvObject.) | |
SizeOf |
sizeof(cv::Mat)
|
Extension Methods
Name | Description | |
---|---|---|
CopyFrom |
Copies pixel data from System.Windows.Media.Imaging.BitmapSource to IplImage instance
(Defined by BitmapSourceConverter.) | |
ToBitmap | Overloaded.
Converts Mat to System.Drawing.Bitmap
(Defined by BitmapConverter.) | |
ToBitmap(PixelFormat) | Overloaded.
Converts Mat to System.Drawing.Bitmap
(Defined by BitmapConverter.) | |
ToBitmap(Bitmap) | Overloaded.
Converts Mat to System.Drawing.Bitmap
(Defined by BitmapConverter.) | |
ToBitmapSource | Overloaded.
Converts Mat to BitmapSource.
(Defined by BitmapSourceConverter.) | |
ToBitmapSource(Int32, Int32, PixelFormat, BitmapPalette) | Overloaded.
Converts Mat to BitmapSource.
(Defined by BitmapSourceConverter.) | |
ToWriteableBitmap | Overloaded.
Converts Mat to WriteableBitmap (dpi=96, BitmapPalette=null)
(Defined by WriteableBitmapConverter.) | |
ToWriteableBitmap(PixelFormat) | Overloaded.
Converts Mat to WriteableBitmap (dpi=96, BitmapPalette=null)
(Defined by WriteableBitmapConverter.) | |
ToWriteableBitmap(Double, Double, PixelFormat, BitmapPalette) | Overloaded.
Converts Mat to WriteableBitmap.
The arguments of this method corresponds the consructor of WriteableBitmap.
(Defined by WriteableBitmapConverter.) |
See Also