| Package | Description |
|---|---|
| org.opencv.core | |
| org.opencv.features2d | |
| org.opencv.imgproc |
| Modifier and Type | Method and Description |
|---|---|
static Scalar |
Scalar.all(double v) |
Scalar |
Scalar.clone() |
Scalar |
Scalar.conj() |
static Scalar |
Core.mean(Mat src)
Calculates an average (mean) of array elements.
|
static Scalar |
Core.mean(Mat src,
Mat mask)
Calculates an average (mean) of array elements.
|
Scalar |
Scalar.mul(Scalar it) |
Scalar |
Scalar.mul(Scalar it,
double scale) |
static Scalar |
Core.sumElems(Mat src)
Calculates the sum of array elements.
|
static Scalar |
Core.trace(Mat mtx)
Returns the trace of a matrix.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Core.absdiff(Mat src1,
Scalar src2,
Mat dst)
Calculates the per-element absolute difference between two arrays or between
an array and a scalar.
|
static void |
Core.add(Mat src1,
Scalar src2,
Mat dst)
Calculates the per-element sum of two arrays or an array and a scalar.
|
static void |
Core.add(Mat src1,
Scalar src2,
Mat dst,
Mat mask)
Calculates the per-element sum of two arrays or an array and a scalar.
|
static void |
Core.add(Mat src1,
Scalar src2,
Mat dst,
Mat mask,
int dtype)
Calculates the per-element sum of two arrays or an array and a scalar.
|
static void |
Core.circle(Mat img,
Point center,
int radius,
Scalar color)
Draws a circle.
|
static void |
Core.circle(Mat img,
Point center,
int radius,
Scalar color,
int thickness)
Draws a circle.
|
static void |
Core.circle(Mat img,
Point center,
int radius,
Scalar color,
int thickness,
int lineType,
int shift)
Draws a circle.
|
static void |
Core.compare(Mat src1,
Scalar src2,
Mat dst,
int cmpop)
Performs the per-element comparison of two arrays or an array and scalar
value.
|
static void |
Core.divide(Mat src1,
Scalar src2,
Mat dst)
Performs per-element division of two arrays or a scalar by an array.
|
static void |
Core.divide(Mat src1,
Scalar src2,
Mat dst,
double scale)
Performs per-element division of two arrays or a scalar by an array.
|
static void |
Core.divide(Mat src1,
Scalar src2,
Mat dst,
double scale,
int dtype)
Performs per-element division of two arrays or a scalar by an array.
|
static void |
Core.ellipse(Mat img,
Point center,
Size axes,
double angle,
double startAngle,
double endAngle,
Scalar color)
Draws a simple or thick elliptic arc or fills an ellipse sector.
|
static void |
Core.ellipse(Mat img,
Point center,
Size axes,
double angle,
double startAngle,
double endAngle,
Scalar color,
int thickness)
Draws a simple or thick elliptic arc or fills an ellipse sector.
|
static void |
Core.ellipse(Mat img,
Point center,
Size axes,
double angle,
double startAngle,
double endAngle,
Scalar color,
int thickness,
int lineType,
int shift)
Draws a simple or thick elliptic arc or fills an ellipse sector.
|
static void |
Core.ellipse(Mat img,
RotatedRect box,
Scalar color)
Draws a simple or thick elliptic arc or fills an ellipse sector.
|
static void |
Core.ellipse(Mat img,
RotatedRect box,
Scalar color,
int thickness)
Draws a simple or thick elliptic arc or fills an ellipse sector.
|
static void |
Core.ellipse(Mat img,
RotatedRect box,
Scalar color,
int thickness,
int lineType)
Draws a simple or thick elliptic arc or fills an ellipse sector.
|
static void |
Core.fillConvexPoly(Mat img,
MatOfPoint points,
Scalar color)
Fills a convex polygon.
|
static void |
Core.fillConvexPoly(Mat img,
MatOfPoint points,
Scalar color,
int lineType,
int shift)
Fills a convex polygon.
|
static void |
Core.fillPoly(Mat img,
List<MatOfPoint> pts,
Scalar color)
Fills the area bounded by one or more polygons.
|
static void |
Core.fillPoly(Mat img,
List<MatOfPoint> pts,
Scalar color,
int lineType,
int shift,
Point offset)
Fills the area bounded by one or more polygons.
|
static void |
Core.inRange(Mat src,
Scalar lowerb,
Scalar upperb,
Mat dst)
Checks if array elements lie between the elements of two other arrays.
|
static void |
Core.line(Mat img,
Point pt1,
Point pt2,
Scalar color)
Draws a line segment connecting two points.
|
static void |
Core.line(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness)
Draws a line segment connecting two points.
|
static void |
Core.line(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType,
int shift)
Draws a line segment connecting two points.
|
static void |
Core.max(Mat src1,
Scalar src2,
Mat dst)
Calculates per-element maximum of two arrays or an array and a scalar.
|
static void |
Core.min(Mat src1,
Scalar src2,
Mat dst)
Calculates per-element minimum of two arrays or an array and a scalar.
|
Scalar |
Scalar.mul(Scalar it) |
Scalar |
Scalar.mul(Scalar it,
double scale) |
static void |
Core.multiply(Mat src1,
Scalar src2,
Mat dst)
Calculates the per-element scaled product of two arrays.
|
static void |
Core.multiply(Mat src1,
Scalar src2,
Mat dst,
double scale)
Calculates the per-element scaled product of two arrays.
|
static void |
Core.multiply(Mat src1,
Scalar src2,
Mat dst,
double scale,
int dtype)
Calculates the per-element scaled product of two arrays.
|
static void |
Core.polylines(Mat img,
List<MatOfPoint> pts,
boolean isClosed,
Scalar color)
Draws several polygonal curves.
|
static void |
Core.polylines(Mat img,
List<MatOfPoint> pts,
boolean isClosed,
Scalar color,
int thickness)
Draws several polygonal curves.
|
static void |
Core.polylines(Mat img,
List<MatOfPoint> pts,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift)
Draws several polygonal curves.
|
static void |
Core.putText(Mat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color)
Draws a text string.
|
static void |
Core.putText(Mat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness)
Draws a text string.
|
static void |
Core.putText(Mat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness,
int lineType,
boolean bottomLeftOrigin)
Draws a text string.
|
static void |
Core.rectangle(Mat img,
Point pt1,
Point pt2,
Scalar color)
Draws a simple, thick, or filled up-right rectangle.
|
static void |
Core.rectangle(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness)
Draws a simple, thick, or filled up-right rectangle.
|
static void |
Core.rectangle(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType,
int shift)
Draws a simple, thick, or filled up-right rectangle.
|
static void |
Core.setIdentity(Mat mtx,
Scalar s)
Initializes a scaled identity matrix.
|
Mat |
Mat.setTo(Scalar s) |
Mat |
Mat.setTo(Scalar value,
Mat mask)
Sets all or some of the array elements to the specified value.
|
static void |
Core.subtract(Mat src1,
Scalar src2,
Mat dst)
Calculates the per-element difference between two arrays or array and a
scalar.
|
static void |
Core.subtract(Mat src1,
Scalar src2,
Mat dst,
Mat mask)
Calculates the per-element difference between two arrays or array and a
scalar.
|
static void |
Core.subtract(Mat src1,
Scalar src2,
Mat dst,
Mat mask,
int dtype)
Calculates the per-element difference between two arrays or array and a
scalar.
|
| Constructor and Description |
|---|
Mat(int rows,
int cols,
int type,
Scalar s)
Various Mat constructors
|
Mat(Size size,
int type,
Scalar s)
Various Mat constructors
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Features2d.drawKeypoints(Mat image,
MatOfKeyPoint keypoints,
Mat outImage,
Scalar color,
int flags)
Draws keypoints.
|
static void |
Features2d.drawMatches(Mat img1,
MatOfKeyPoint keypoints1,
Mat img2,
MatOfKeyPoint keypoints2,
MatOfDMatch matches1to2,
Mat outImg,
Scalar matchColor,
Scalar singlePointColor,
MatOfByte matchesMask,
int flags)
Draws the found matches of keypoints from two images.
|
static void |
Features2d.drawMatches2(Mat img1,
MatOfKeyPoint keypoints1,
Mat img2,
MatOfKeyPoint keypoints2,
List<MatOfDMatch> matches1to2,
Mat outImg,
Scalar matchColor,
Scalar singlePointColor,
List<MatOfByte> matchesMask,
int flags)
Draws the found matches of keypoints from two images.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Imgproc.copyMakeBorder(Mat src,
Mat dst,
int top,
int bottom,
int left,
int right,
int borderType,
Scalar value)
Forms a border around an image.
|
static void |
Imgproc.dilate(Mat src,
Mat dst,
Mat kernel,
Point anchor,
int iterations,
int borderType,
Scalar borderValue)
Dilates an image by using a specific structuring element.
|
static void |
Imgproc.drawContours(Mat image,
List<MatOfPoint> contours,
int contourIdx,
Scalar color)
Draws contours outlines or filled contours.
|
static void |
Imgproc.drawContours(Mat image,
List<MatOfPoint> contours,
int contourIdx,
Scalar color,
int thickness)
Draws contours outlines or filled contours.
|
static void |
Imgproc.drawContours(Mat image,
List<MatOfPoint> contours,
int contourIdx,
Scalar color,
int thickness,
int lineType,
Mat hierarchy,
int maxLevel,
Point offset)
Draws contours outlines or filled contours.
|
static void |
Imgproc.erode(Mat src,
Mat dst,
Mat kernel,
Point anchor,
int iterations,
int borderType,
Scalar borderValue)
Erodes an image by using a specific structuring element.
|
static int |
Imgproc.floodFill(Mat image,
Mat mask,
Point seedPoint,
Scalar newVal)
Fills a connected component with the given color.
|
static int |
Imgproc.floodFill(Mat image,
Mat mask,
Point seedPoint,
Scalar newVal,
Rect rect,
Scalar loDiff,
Scalar upDiff,
int flags)
Fills a connected component with the given color.
|
static void |
Imgproc.morphologyEx(Mat src,
Mat dst,
int op,
Mat kernel,
Point anchor,
int iterations,
int borderType,
Scalar borderValue)
Performs advanced morphological transformations.
|
static void |
Imgproc.remap(Mat src,
Mat dst,
Mat map1,
Mat map2,
int interpolation,
int borderMode,
Scalar borderValue)
Applies a generic geometrical transformation to an image.
|
static void |
Imgproc.warpAffine(Mat src,
Mat dst,
Mat M,
Size dsize,
int flags,
int borderMode,
Scalar borderValue)
Applies an affine transformation to an image.
|
static void |
Imgproc.warpPerspective(Mat src,
Mat dst,
Mat M,
Size dsize,
int flags,
int borderMode,
Scalar borderValue)
Applies a perspective transformation to an image.
|
Copyright © 2014. All rights reserved.