Package | Description |
---|---|
org.opencv.calib3d | |
org.opencv.core | |
org.opencv.imgproc | |
org.opencv.photo | |
org.opencv.structured_light | |
org.opencv.utils |
Modifier and Type | Method and Description |
---|---|
static void |
Calib3d.calibrationMatrixValues(Mat cameraMatrix,
Size imageSize,
double apertureWidth,
double apertureHeight,
double[] fovx,
double[] fovy,
double[] focalLength,
Point principalPoint,
double[] aspectRatio)
Computes useful camera characteristics from the camera matrix.
|
static Mat |
Calib3d.findEssentialMat(Mat points1,
Mat points2,
double focal,
Point pp) |
static Mat |
Calib3d.findEssentialMat(Mat points1,
Mat points2,
double focal,
Point pp,
int method) |
static Mat |
Calib3d.findEssentialMat(Mat points1,
Mat points2,
double focal,
Point pp,
int method,
double prob) |
static Mat |
Calib3d.findEssentialMat(Mat points1,
Mat points2,
double focal,
Point pp,
int method,
double prob,
double threshold) |
static Mat |
Calib3d.findEssentialMat(Mat points1,
Mat points2,
double focal,
Point pp,
int method,
double prob,
double threshold,
Mat mask) |
static int |
Calib3d.recoverPose(Mat E,
Mat points1,
Mat points2,
Mat R,
Mat t,
double focal,
Point pp) |
static int |
Calib3d.recoverPose(Mat E,
Mat points1,
Mat points2,
Mat R,
Mat t,
double focal,
Point pp,
Mat mask) |
Modifier and Type | Field and Description |
---|---|
Point |
RotatedRect.center |
Point |
Core.MinMaxLocResult.maxLoc |
Point |
Core.MinMaxLocResult.minLoc |
Point |
KeyPoint.pt
Coordinates of the keypoint.
|
Modifier and Type | Method and Description |
---|---|
Point |
Rect2d.br() |
Point |
Rect.br() |
Point |
Point.clone() |
Point |
Rect2d.tl() |
Point |
Rect.tl() |
Point[] |
MatOfPoint.toArray() |
Point[] |
MatOfPoint2f.toArray() |
Modifier and Type | Method and Description |
---|---|
List<Point> |
MatOfPoint.toList() |
List<Point> |
MatOfPoint2f.toList() |
Modifier and Type | Method and Description |
---|---|
boolean |
Rect2d.contains(Point p) |
boolean |
Rect.contains(Point p) |
double |
Point.dot(Point p) |
void |
MatOfPoint.fromArray(Point... a) |
void |
MatOfPoint2f.fromArray(Point... a) |
void |
Mat.locateROI(Size wholeSize,
Point ofs) |
void |
RotatedRect.points(Point[] pt) |
Modifier and Type | Method and Description |
---|---|
void |
MatOfPoint.fromList(List<Point> lp) |
void |
MatOfPoint2f.fromList(List<Point> lp) |
Constructor and Description |
---|
MatOfPoint(Point... a) |
MatOfPoint2f(Point... a) |
Point3(Point p) |
Rect(Point p1,
Point p2) |
Rect(Point p,
Size s) |
Rect2d(Point p1,
Point p2) |
Rect2d(Point p,
Size s) |
RotatedRect(Point c,
Size s,
double a) |
Size(Point p) |
Modifier and Type | Method and Description |
---|---|
Point |
Subdiv2D.getVertex(int vertex)
Returns vertex location from vertex ID.
|
Point |
Subdiv2D.getVertex(int vertex,
int[] firstEdge)
Returns vertex location from vertex ID.
|
static Point |
Imgproc.phaseCorrelate(Mat src1,
Mat src2)
The function is used to detect translational shifts that occur between two images.
|
static Point |
Imgproc.phaseCorrelate(Mat src1,
Mat src2,
Mat window)
The function is used to detect translational shifts that occur between two images.
|
static Point |
Imgproc.phaseCorrelate(Mat src1,
Mat src2,
Mat window,
double[] response)
The function is used to detect translational shifts that occur between two images.
|
Modifier and Type | Method and Description |
---|---|
static void |
Imgproc.arrowedLine(Mat img,
Point pt1,
Point pt2,
Scalar color)
Draws a arrow segment pointing from the first point to the second one.
|
static void |
Imgproc.arrowedLine(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness)
Draws a arrow segment pointing from the first point to the second one.
|
static void |
Imgproc.arrowedLine(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int line_type)
Draws a arrow segment pointing from the first point to the second one.
|
static void |
Imgproc.arrowedLine(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int line_type,
int shift)
Draws a arrow segment pointing from the first point to the second one.
|
static void |
Imgproc.arrowedLine(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int line_type,
int shift,
double tipLength)
Draws a arrow segment pointing from the first point to the second one.
|
static void |
Imgproc.blur(Mat src,
Mat dst,
Size ksize,
Point anchor)
Blurs an image using the normalized box filter.
|
static void |
Imgproc.blur(Mat src,
Mat dst,
Size ksize,
Point anchor,
int borderType)
Blurs an image using the normalized box filter.
|
static void |
Imgproc.boxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize,
Point anchor)
Blurs an image using the box filter.
|
static void |
Imgproc.boxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize,
Point anchor,
boolean normalize)
Blurs an image using the box filter.
|
static void |
Imgproc.boxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize,
Point anchor,
boolean normalize,
int borderType)
Blurs an image using the box filter.
|
static void |
Imgproc.circle(Mat img,
Point center,
int radius,
Scalar color)
Draws a circle.
|
static void |
Imgproc.circle(Mat img,
Point center,
int radius,
Scalar color,
int thickness)
Draws a circle.
|
static void |
Imgproc.circle(Mat img,
Point center,
int radius,
Scalar color,
int thickness,
int lineType)
Draws a circle.
|
static void |
Imgproc.circle(Mat img,
Point center,
int radius,
Scalar color,
int thickness,
int lineType,
int shift)
Draws a circle.
|
static boolean |
Imgproc.clipLine(Rect imgRect,
Point pt1,
Point pt2) |
static void |
Imgproc.dilate(Mat src,
Mat dst,
Mat kernel,
Point anchor)
Dilates an image by using a specific structuring element.
|
static void |
Imgproc.dilate(Mat src,
Mat dst,
Mat kernel,
Point anchor,
int iterations)
Dilates an image by using a specific structuring element.
|
static void |
Imgproc.dilate(Mat src,
Mat dst,
Mat kernel,
Point anchor,
int iterations,
int borderType)
Dilates an image by using a specific structuring element.
|
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,
int thickness,
int lineType,
Mat hierarchy,
int maxLevel,
Point offset)
Draws contours outlines or filled contours.
|
static void |
Imgproc.drawMarker(Mat img,
Point position,
Scalar color)
Draws a marker on a predefined position in an image.
|
static void |
Imgproc.drawMarker(Mat img,
Point position,
Scalar color,
int markerType)
Draws a marker on a predefined position in an image.
|
static void |
Imgproc.drawMarker(Mat img,
Point position,
Scalar color,
int markerType,
int markerSize)
Draws a marker on a predefined position in an image.
|
static void |
Imgproc.drawMarker(Mat img,
Point position,
Scalar color,
int markerType,
int markerSize,
int thickness)
Draws a marker on a predefined position in an image.
|
static void |
Imgproc.drawMarker(Mat img,
Point position,
Scalar color,
int markerType,
int markerSize,
int thickness,
int line_type)
Draws a marker on a predefined position in an image.
|
int |
Subdiv2D.edgeDst(int edge,
Point dstpt)
Returns the edge destination.
|
int |
Subdiv2D.edgeOrg(int edge,
Point orgpt)
Returns the edge origin.
|
static void |
Imgproc.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 |
Imgproc.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 |
Imgproc.ellipse(Mat img,
Point center,
Size axes,
double angle,
double startAngle,
double endAngle,
Scalar color,
int thickness,
int lineType)
Draws a simple or thick elliptic arc or fills an ellipse sector.
|
static void |
Imgproc.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 |
Imgproc.ellipse2Poly(Point center,
Size axes,
int angle,
int arcStart,
int arcEnd,
int delta,
MatOfPoint pts)
Approximates an elliptic arc with a polyline.
|
static void |
Imgproc.erode(Mat src,
Mat dst,
Mat kernel,
Point anchor)
Erodes an image by using a specific structuring element.
|
static void |
Imgproc.erode(Mat src,
Mat dst,
Mat kernel,
Point anchor,
int iterations)
Erodes an image by using a specific structuring element.
|
static void |
Imgproc.erode(Mat src,
Mat dst,
Mat kernel,
Point anchor,
int iterations,
int borderType)
Erodes an image by using a specific structuring element.
|
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 void |
Imgproc.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 |
Imgproc.filter2D(Mat src,
Mat dst,
int ddepth,
Mat kernel,
Point anchor)
Convolves an image with the kernel.
|
static void |
Imgproc.filter2D(Mat src,
Mat dst,
int ddepth,
Mat kernel,
Point anchor,
double delta)
Convolves an image with the kernel.
|
static void |
Imgproc.filter2D(Mat src,
Mat dst,
int ddepth,
Mat kernel,
Point anchor,
double delta,
int borderType)
Convolves an image with the kernel.
|
static void |
Imgproc.findContours(Mat image,
List<MatOfPoint> contours,
Mat hierarchy,
int mode,
int method,
Point offset)
Finds contours in a binary image.
|
int |
Subdiv2D.findNearest(Point pt)
Finds the subdivision vertex closest to the given point.
|
int |
Subdiv2D.findNearest(Point pt,
Point nearestPt)
Finds the subdivision vertex closest to the given point.
|
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)
Fills a connected component with the given color.
|
static int |
Imgproc.floodFill(Mat image,
Mat mask,
Point seedPoint,
Scalar newVal,
Rect rect,
Scalar loDiff)
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)
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.getRectSubPix(Mat image,
Size patchSize,
Point center,
Mat patch)
Retrieves a pixel rectangle from an image with sub-pixel accuracy.
|
static void |
Imgproc.getRectSubPix(Mat image,
Size patchSize,
Point center,
Mat patch,
int patchType)
Retrieves a pixel rectangle from an image with sub-pixel accuracy.
|
static Mat |
Imgproc.getRotationMatrix2D(Point center,
double angle,
double scale)
Calculates an affine matrix of 2D rotation.
|
static Mat |
Imgproc.getStructuringElement(int shape,
Size ksize,
Point anchor)
Returns a structuring element of the specified size and shape for morphological operations.
|
int |
Subdiv2D.insert(Point pt)
Insert a single point into a Delaunay triangulation.
|
static void |
Imgproc.line(Mat img,
Point pt1,
Point pt2,
Scalar color)
Draws a line segment connecting two points.
|
static void |
Imgproc.line(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness)
Draws a line segment connecting two points.
|
static void |
Imgproc.line(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType)
Draws a line segment connecting two points.
|
static void |
Imgproc.line(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType,
int shift)
Draws a line segment connecting two points.
|
static void |
Imgproc.linearPolar(Mat src,
Mat dst,
Point center,
double maxRadius,
int flags)
Deprecated.
This function produces same result as cv::warpPolar(src, dst, src.size(), center, maxRadius, flags)
Transform the source image using the following transformation (See REF: polar_remaps_reference_image "Polar remaps reference image c)"):
\(\begin{array}{l}
dst( \rho , \phi ) = src(x,y) \\
dst.size() \leftarrow src.size()
\end{array}\)
where
\(\begin{array}{l}
I = (dx,dy) = (x - center.x,y - center.y) \\
\rho = Kmag \cdot \texttt{magnitude} (I) ,\\
\phi = angle \cdot \texttt{angle} (I)
\end{array}\)
and
\(\begin{array}{l}
Kx = src.cols / maxRadius \\
Ky = src.rows / 2\Pi
\end{array}\)
|
int |
Subdiv2D.locate(Point pt,
int[] edge,
int[] vertex)
Returns the location of a point within a Delaunay triangulation.
|
static void |
Imgproc.logPolar(Mat src,
Mat dst,
Point center,
double M,
int flags)
Deprecated.
This function produces same result as cv::warpPolar(src, dst, src.size(), center, maxRadius, flags+WARP_POLAR_LOG);
Transform the source image using the following transformation (See REF: polar_remaps_reference_image "Polar remaps reference image d)"):
\(\begin{array}{l}
dst( \rho , \phi ) = src(x,y) \\
dst.size() \leftarrow src.size()
\end{array}\)
where
\(\begin{array}{l}
I = (dx,dy) = (x - center.x,y - center.y) \\
\rho = M \cdot log_e(\texttt{magnitude} (I)) ,\\
\phi = Kangle \cdot \texttt{angle} (I) \\
\end{array}\)
and
\(\begin{array}{l}
M = src.cols / log_e(maxRadius) \\
Kangle = src.rows / 2\Pi \\
\end{array}\)
The function emulates the human "foveal" vision and can be used for fast scale and
rotation-invariant template matching, for object tracking and so forth.
|
static void |
Imgproc.minEnclosingCircle(MatOfPoint2f points,
Point center,
float[] radius)
Finds a circle of the minimum area enclosing a 2D point set.
|
static void |
Imgproc.morphologyEx(Mat src,
Mat dst,
int op,
Mat kernel,
Point anchor)
Performs advanced morphological transformations.
|
static void |
Imgproc.morphologyEx(Mat src,
Mat dst,
int op,
Mat kernel,
Point anchor,
int iterations)
Performs advanced morphological transformations.
|
static void |
Imgproc.morphologyEx(Mat src,
Mat dst,
int op,
Mat kernel,
Point anchor,
int iterations,
int borderType)
Performs advanced morphological transformations.
|
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 double |
Imgproc.pointPolygonTest(MatOfPoint2f contour,
Point pt,
boolean measureDist)
Performs a point-in-contour test.
|
static void |
Imgproc.putText(Mat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color)
Draws a text string.
|
static void |
Imgproc.putText(Mat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness)
Draws a text string.
|
static void |
Imgproc.putText(Mat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness,
int lineType)
Draws a text string.
|
static void |
Imgproc.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 |
Imgproc.rectangle(Mat img,
Point pt1,
Point pt2,
Scalar color)
Draws a simple, thick, or filled up-right rectangle.
|
static void |
Imgproc.rectangle(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness)
Draws a simple, thick, or filled up-right rectangle.
|
static void |
Imgproc.rectangle(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType)
Draws a simple, thick, or filled up-right rectangle.
|
static void |
Imgproc.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 |
Imgproc.sepFilter2D(Mat src,
Mat dst,
int ddepth,
Mat kernelX,
Mat kernelY,
Point anchor)
Applies a separable linear filter to an image.
|
static void |
Imgproc.sepFilter2D(Mat src,
Mat dst,
int ddepth,
Mat kernelX,
Mat kernelY,
Point anchor,
double delta)
Applies a separable linear filter to an image.
|
static void |
Imgproc.sepFilter2D(Mat src,
Mat dst,
int ddepth,
Mat kernelX,
Mat kernelY,
Point anchor,
double delta,
int borderType)
Applies a separable linear filter to an image.
|
void |
GeneralizedHough.setTemplate(Mat edges,
Mat dx,
Mat dy,
Point templCenter) |
void |
GeneralizedHough.setTemplate(Mat templ,
Point templCenter) |
static void |
Imgproc.sqrBoxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize,
Point anchor)
Calculates the normalized sum of squares of the pixel values overlapping the filter.
|
static void |
Imgproc.sqrBoxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize,
Point anchor,
boolean normalize)
Calculates the normalized sum of squares of the pixel values overlapping the filter.
|
static void |
Imgproc.sqrBoxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize,
Point anchor,
boolean normalize,
int borderType)
Calculates the normalized sum of squares of the pixel values overlapping the filter.
|
static void |
Imgproc.warpPolar(Mat src,
Mat dst,
Size dsize,
Point center,
double maxRadius,
int flags)
Remaps an image to polar or semilog-polar coordinates space
polar_remaps_reference_image
![Polar remaps reference](pics/polar_remap_doc.png)
Transform the source image using the following transformation:
\(
dst(\rho , \phi ) = src(x,y)
\)
where
\(
\begin{array}{l}
\vec{I} = (x - center.x, \;y - center.y) \\
\phi = Kangle \cdot \texttt{angle} (\vec{I}) \\
\rho = \left\{\begin{matrix}
Klin \cdot \texttt{magnitude} (\vec{I}) & default \\
Klog \cdot log_e(\texttt{magnitude} (\vec{I})) & if \; semilog \\
\end{matrix}\right.
|
Modifier and Type | Method and Description |
---|---|
Point |
AlignMTB.calculateShift(Mat img0,
Mat img1)
Calculates shift between two images, i.
|
Modifier and Type | Method and Description |
---|---|
static void |
Photo.seamlessClone(Mat src,
Mat dst,
Mat mask,
Point p,
Mat blend,
int flags)
Image editing tasks concern either global changes (color/intensity corrections, filters,
deformations) or local changes concerned to a selection.
|
void |
AlignMTB.shiftMat(Mat src,
Mat dst,
Point shift)
Helper function, that shift Mat filling new regions with zeros.
|
Modifier and Type | Method and Description |
---|---|
boolean |
GrayCodePattern.getProjPixel(List<Mat> patternImages,
int x,
int y,
Point projPix)
For a (x,y) pixel of a camera returns the corresponding projector pixel.
|
Modifier and Type | Method and Description |
---|---|
static void |
Converters.Mat_to_vector_Point(Mat m,
List<Point> pts) |
static void |
Converters.Mat_to_vector_Point2d(Mat m,
List<Point> pts) |
static void |
Converters.Mat_to_vector_Point2f(Mat m,
List<Point> pts) |
static Mat |
Converters.vector_Point_to_Mat(List<Point> pts) |
static Mat |
Converters.vector_Point_to_Mat(List<Point> pts,
int typeDepth) |
static Mat |
Converters.vector_Point2d_to_Mat(List<Point> pts) |
static Mat |
Converters.vector_Point2f_to_Mat(List<Point> pts) |
Copyright © 2020. All rights reserved.