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.
|
void |
IntelligentScissorsMB.buildMap(Point sourcePt) |
Prepares a map of optimal paths for the given source point on the image
Note: applyImage() / applyImageFeatures() must be called before this call
|
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.
|
void |
IntelligentScissorsMB.getContour(Point targetPt,
Mat contour) |
Extracts optimal contour for the given target point on the image
Note: buildMap() must be called before this call
|
void |
IntelligentScissorsMB.getContour(Point targetPt,
Mat contour,
boolean backward) |
Extracts optimal contour for the given target point on the image
Note: buildMap() must be called before this call
|
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.
|
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.
|
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.
|