| Modifier and Type | Method | Description |
|---|
static void | accumulate(Mat src,
Mat dst) |
Adds an image to the accumulator image.
|
|---|
static void | accumulate(Mat src,
Mat dst,
Mat mask) |
Adds an image to the accumulator image.
|
|---|
static void | accumulateProduct(Mat src1,
Mat src2,
Mat dst) |
Adds the per-element product of two input images to the accumulator image.
|
|---|
static void | accumulateProduct(Mat src1,
Mat src2,
Mat dst,
Mat mask) |
Adds the per-element product of two input images to the accumulator image.
|
|---|
static void | accumulateSquare(Mat src,
Mat dst) |
Adds the square of a source image to the accumulator image.
|
|---|
static void | accumulateSquare(Mat src,
Mat dst,
Mat mask) |
Adds the square of a source image to the accumulator image.
|
|---|
static void | accumulateWeighted(Mat src,
Mat dst,
double alpha) |
Updates a running average.
|
|---|
static void | accumulateWeighted(Mat src,
Mat dst,
double alpha,
Mat mask) |
Updates a running average.
|
|---|
static void | adaptiveThreshold(Mat src,
Mat dst,
double maxValue,
int adaptiveMethod,
int thresholdType,
int blockSize,
double C) |
Applies an adaptive threshold to an array.
|
|---|
static void | applyColorMap(Mat src,
Mat dst,
int colormap) |
Applies a GNU Octave/MATLAB equivalent colormap on a given image.
|
|---|
static void | applyColorMap(Mat src,
Mat dst,
Mat userColor) |
Applies a user colormap on a given image.
|
|---|
static void | approxPolyDP(MatOfPoint2f curve,
MatOfPoint2f approxCurve,
double epsilon,
boolean closed) |
Approximates a polygonal curve(s) with the specified precision.
|
|---|
static void | approxPolyN(Mat curve,
Mat approxCurve,
int nsides) |
Approximates a polygon with a convex hull with a specified accuracy and number of sides.
|
|---|
static void | approxPolyN(Mat curve,
Mat approxCurve,
int nsides,
float epsilon_percentage) |
Approximates a polygon with a convex hull with a specified accuracy and number of sides.
|
|---|
static void | approxPolyN(Mat curve,
Mat approxCurve,
int nsides,
float epsilon_percentage,
boolean ensure_convex) |
Approximates a polygon with a convex hull with a specified accuracy and number of sides.
|
|---|
static double | arcLength(MatOfPoint2f curve,
boolean closed) |
Calculates a contour perimeter or a curve length.
|
|---|
static void | arrowedLine(Mat img,
Point pt1,
Point pt2,
Scalar color) |
Draws an arrow segment pointing from the first point to the second one.
|
|---|
static void | arrowedLine(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness) |
Draws an arrow segment pointing from the first point to the second one.
|
|---|
static void | arrowedLine(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int line_type) |
Draws an arrow segment pointing from the first point to the second one.
|
|---|
static void | arrowedLine(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int line_type,
int shift) |
Draws an arrow segment pointing from the first point to the second one.
|
|---|
static void | arrowedLine(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int line_type,
int shift,
double tipLength) |
Draws an arrow segment pointing from the first point to the second one.
|
|---|
static void | bilateralFilter(Mat src,
Mat dst,
int d,
double sigmaColor,
double sigmaSpace) |
Applies the bilateral filter to an image.
|
|---|
static void | bilateralFilter(Mat src,
Mat dst,
int d,
double sigmaColor,
double sigmaSpace,
int borderType) |
Applies the bilateral filter to an image.
|
|---|
static void | blendLinear(Mat src1,
Mat src2,
Mat weights1,
Mat weights2,
Mat dst) |
variant without mask parameter
|
|---|
static void | blur(Mat src,
Mat dst,
Size ksize) |
Blurs an image using the normalized box filter.
|
|---|
static void | blur(Mat src,
Mat dst,
Size ksize,
Point anchor) |
Blurs an image using the normalized box filter.
|
|---|
static void | blur(Mat src,
Mat dst,
Size ksize,
Point anchor,
int borderType) |
Blurs an image using the normalized box filter.
|
|---|
static Rect | boundingRect(Mat array) |
Calculates the up-right bounding rectangle of a point set or non-zero pixels of gray-scale image.
|
|---|
static void | boxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize) |
Blurs an image using the box filter.
|
|---|
static void | boxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize,
Point anchor) |
Blurs an image using the box filter.
|
|---|
static void | boxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize,
Point anchor,
boolean normalize) |
Blurs an image using the box filter.
|
|---|
static void | boxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize,
Point anchor,
boolean normalize,
int borderType) |
Blurs an image using the box filter.
|
|---|
static void | boxPoints(RotatedRect box,
Mat points) |
Finds the four vertices of a rotated rect.
|
|---|
static void | calcBackProject(java.util.List<Mat> images,
MatOfInt channels,
Mat hist,
Mat dst,
MatOfFloat ranges,
double scale) | |
|---|
static void | calcHist(java.util.List<Mat> images,
MatOfInt channels,
Mat mask,
Mat hist,
MatOfInt histSize,
MatOfFloat ranges) |
this variant supports only uniform histograms.
|
|---|
static void | calcHist(java.util.List<Mat> images,
MatOfInt channels,
Mat mask,
Mat hist,
MatOfInt histSize,
MatOfFloat ranges,
boolean accumulate) |
this variant supports only uniform histograms.
|
|---|
static void | Canny(Mat image,
Mat edges,
double threshold1,
double threshold2) |
Finds edges in an image using the Canny algorithm CITE: Canny86 .
|
|---|
static void | Canny(Mat image,
Mat edges,
double threshold1,
double threshold2,
int apertureSize) |
Finds edges in an image using the Canny algorithm CITE: Canny86 .
|
|---|
static void | Canny(Mat image,
Mat edges,
double threshold1,
double threshold2,
int apertureSize,
boolean L2gradient) |
Finds edges in an image using the Canny algorithm CITE: Canny86 .
|
|---|
static void | Canny(Mat dx,
Mat dy,
Mat edges,
double threshold1,
double threshold2) |
\overload
Finds edges in an image using the Canny algorithm with custom image gradient.
|
|---|
static void | Canny(Mat dx,
Mat dy,
Mat edges,
double threshold1,
double threshold2,
boolean L2gradient) |
\overload
Finds edges in an image using the Canny algorithm with custom image gradient.
|
|---|
static void | circle(Mat img,
Point center,
int radius,
Scalar color) |
Draws a circle.
|
|---|
static void | circle(Mat img,
Point center,
int radius,
Scalar color,
int thickness) |
Draws a circle.
|
|---|
static void | circle(Mat img,
Point center,
int radius,
Scalar color,
int thickness,
int lineType) |
Draws a circle.
|
|---|
static void | circle(Mat img,
Point center,
int radius,
Scalar color,
int thickness,
int lineType,
int shift) |
Draws a circle.
|
|---|
static boolean | clipLine(Rect imgRect,
Point pt1,
Point pt2) | |
|---|
static double | compareHist(Mat H1,
Mat H2,
int method) |
Compares two histograms.
|
|---|
static int | connectedComponents(Mat image,
Mat labels) | |
|---|
static int | connectedComponents(Mat image,
Mat labels,
int connectivity) | |
|---|
static int | connectedComponents(Mat image,
Mat labels,
int connectivity,
int ltype) | |
|---|
static int | connectedComponentsWithAlgorithm(Mat image,
Mat labels,
int connectivity,
int ltype,
int ccltype) |
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.
|
|---|
static int | connectedComponentsWithStats(Mat image,
Mat labels,
Mat stats,
Mat centroids) | |
|---|
static int | connectedComponentsWithStats(Mat image,
Mat labels,
Mat stats,
Mat centroids,
int connectivity) | |
|---|
static int | connectedComponentsWithStats(Mat image,
Mat labels,
Mat stats,
Mat centroids,
int connectivity,
int ltype) | |
|---|
static int | connectedComponentsWithStatsWithAlgorithm(Mat image,
Mat labels,
Mat stats,
Mat centroids,
int connectivity,
int ltype,
int ccltype) |
computes the connected components labeled image of boolean image and also produces a statistics output for each label
image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0
represents the background label.
|
|---|
static double | contourArea(Mat contour) |
Calculates a contour area.
|
|---|
static double | contourArea(Mat contour,
boolean oriented) |
Calculates a contour area.
|
|---|
static void | convertMaps(Mat map1,
Mat map2,
Mat dstmap1,
Mat dstmap2,
int dstmap1type) |
Converts image transformation maps from one representation to another.
|
|---|
static void | convertMaps(Mat map1,
Mat map2,
Mat dstmap1,
Mat dstmap2,
int dstmap1type,
boolean nninterpolation) |
Converts image transformation maps from one representation to another.
|
|---|
static void | convexHull(MatOfPoint points,
MatOfInt hull) |
Finds the convex hull of a point set.
|
|---|
static void | convexHull(MatOfPoint points,
MatOfInt hull,
boolean clockwise) |
Finds the convex hull of a point set.
|
|---|
static void | convexityDefects(MatOfPoint contour,
MatOfInt convexhull,
MatOfInt4 convexityDefects) |
Finds the convexity defects of a contour.
|
|---|
static void | cornerEigenValsAndVecs(Mat src,
Mat dst,
int blockSize,
int ksize) |
Calculates eigenvalues and eigenvectors of image blocks for corner detection.
|
|---|
static void | cornerEigenValsAndVecs(Mat src,
Mat dst,
int blockSize,
int ksize,
int borderType) |
Calculates eigenvalues and eigenvectors of image blocks for corner detection.
|
|---|
static void | cornerHarris(Mat src,
Mat dst,
int blockSize,
int ksize,
double k) |
Harris corner detector.
|
|---|
static void | cornerHarris(Mat src,
Mat dst,
int blockSize,
int ksize,
double k,
int borderType) |
Harris corner detector.
|
|---|
static void | cornerMinEigenVal(Mat src,
Mat dst,
int blockSize) |
Calculates the minimal eigenvalue of gradient matrices for corner detection.
|
|---|
static void | cornerMinEigenVal(Mat src,
Mat dst,
int blockSize,
int ksize) |
Calculates the minimal eigenvalue of gradient matrices for corner detection.
|
|---|
static void | cornerMinEigenVal(Mat src,
Mat dst,
int blockSize,
int ksize,
int borderType) |
Calculates the minimal eigenvalue of gradient matrices for corner detection.
|
|---|
static void | cornerSubPix(Mat image,
Mat corners,
Size winSize,
Size zeroZone,
TermCriteria criteria) |
Refines the corner locations.
|
|---|
static CLAHE | createCLAHE() |
Creates a smart pointer to a cv::CLAHE class and initializes it.
|
|---|
static CLAHE | createCLAHE(double clipLimit) |
Creates a smart pointer to a cv::CLAHE class and initializes it.
|
|---|
static CLAHE | createCLAHE(double clipLimit,
Size tileGridSize) |
Creates a smart pointer to a cv::CLAHE class and initializes it.
|
|---|
static GeneralizedHoughBallard | createGeneralizedHoughBallard() |
Creates a smart pointer to a cv::GeneralizedHoughBallard class and initializes it.
|
|---|
static GeneralizedHoughGuil | createGeneralizedHoughGuil() |
Creates a smart pointer to a cv::GeneralizedHoughGuil class and initializes it.
|
|---|
static void | createHanningWindow(Mat dst,
Size winSize,
int type) |
This function computes a Hanning window coefficients in two dimensions.
|
|---|
static LineSegmentDetector | createLineSegmentDetector() |
Creates a smart pointer to a LineSegmentDetector object and initializes it.
|
|---|
static LineSegmentDetector | createLineSegmentDetector(int refine) |
Creates a smart pointer to a LineSegmentDetector object and initializes it.
|
|---|
static LineSegmentDetector | createLineSegmentDetector(int refine,
double scale) |
Creates a smart pointer to a LineSegmentDetector object and initializes it.
|
|---|
static LineSegmentDetector | createLineSegmentDetector(int refine,
double scale,
double sigma_scale) |
Creates a smart pointer to a LineSegmentDetector object and initializes it.
|
|---|
static LineSegmentDetector | createLineSegmentDetector(int refine,
double scale,
double sigma_scale,
double quant) |
Creates a smart pointer to a LineSegmentDetector object and initializes it.
|
|---|
static LineSegmentDetector | createLineSegmentDetector(int refine,
double scale,
double sigma_scale,
double quant,
double ang_th) |
Creates a smart pointer to a LineSegmentDetector object and initializes it.
|
|---|
static LineSegmentDetector | createLineSegmentDetector(int refine,
double scale,
double sigma_scale,
double quant,
double ang_th,
double log_eps) |
Creates a smart pointer to a LineSegmentDetector object and initializes it.
|
|---|
static LineSegmentDetector | createLineSegmentDetector(int refine,
double scale,
double sigma_scale,
double quant,
double ang_th,
double log_eps,
double density_th) |
Creates a smart pointer to a LineSegmentDetector object and initializes it.
|
|---|
static LineSegmentDetector | createLineSegmentDetector(int refine,
double scale,
double sigma_scale,
double quant,
double ang_th,
double log_eps,
double density_th,
int n_bins) |
Creates a smart pointer to a LineSegmentDetector object and initializes it.
|
|---|
static void | cvtColor(Mat src,
Mat dst,
int code) |
Converts an image from one color space to another.
|
|---|
static void | cvtColor(Mat src,
Mat dst,
int code,
int dstCn) |
Converts an image from one color space to another.
|
|---|
static void | cvtColor(Mat src,
Mat dst,
int code,
int dstCn,
int hint) |
Converts an image from one color space to another.
|
|---|
static void | cvtColorTwoPlane(Mat src1,
Mat src2,
Mat dst,
int code) |
Converts an image from one color space to another where the source image is
stored in two planes.
|
|---|
static void | cvtColorTwoPlane(Mat src1,
Mat src2,
Mat dst,
int code,
int hint) |
Converts an image from one color space to another where the source image is
stored in two planes.
|
|---|
static void | demosaicing(Mat src,
Mat dst,
int code) |
main function for all demosaicing processes
|
|---|
static void | demosaicing(Mat src,
Mat dst,
int code,
int dstCn) |
main function for all demosaicing processes
|
|---|
static void | dilate(Mat src,
Mat dst,
Mat kernel) |
Dilates an image by using a specific structuring element.
|
|---|
static void | dilate(Mat src,
Mat dst,
Mat kernel,
Point anchor) |
Dilates an image by using a specific structuring element.
|
|---|
static void | dilate(Mat src,
Mat dst,
Mat kernel,
Point anchor,
int iterations) |
Dilates an image by using a specific structuring element.
|
|---|
static void | dilate(Mat src,
Mat dst,
Mat kernel,
Point anchor,
int iterations,
int borderType) |
Dilates an image by using a specific structuring element.
|
|---|
static void | 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 | distanceTransform(Mat src,
Mat dst,
int distanceType,
int maskSize) | |
|---|
static void | distanceTransform(Mat src,
Mat dst,
int distanceType,
int maskSize,
int dstType) | |
|---|
static void | distanceTransformWithLabels(Mat src,
Mat dst,
Mat labels,
int distanceType,
int maskSize) |
Calculates the distance to the closest zero pixel for each pixel of the source image.
|
|---|
static void | distanceTransformWithLabels(Mat src,
Mat dst,
Mat labels,
int distanceType,
int maskSize,
int labelType) |
Calculates the distance to the closest zero pixel for each pixel of the source image.
|
|---|
static void | divSpectrums(Mat a,
Mat b,
Mat c,
int flags) |
Performs the per-element division of the first Fourier spectrum by the second Fourier spectrum.
|
|---|
static void | divSpectrums(Mat a,
Mat b,
Mat c,
int flags,
boolean conjB) |
Performs the per-element division of the first Fourier spectrum by the second Fourier spectrum.
|
|---|
static void | drawContours(Mat image,
java.util.List<MatOfPoint> contours,
int contourIdx,
Scalar color) |
Draws contours outlines or filled contours.
|
|---|
static void | drawContours(Mat image,
java.util.List<MatOfPoint> contours,
int contourIdx,
Scalar color,
int thickness) |
Draws contours outlines or filled contours.
|
|---|
static void | drawContours(Mat image,
java.util.List<MatOfPoint> contours,
int contourIdx,
Scalar color,
int thickness,
int lineType) |
Draws contours outlines or filled contours.
|
|---|
static void | drawContours(Mat image,
java.util.List<MatOfPoint> contours,
int contourIdx,
Scalar color,
int thickness,
int lineType,
Mat hierarchy) |
Draws contours outlines or filled contours.
|
|---|
static void | drawContours(Mat image,
java.util.List<MatOfPoint> contours,
int contourIdx,
Scalar color,
int thickness,
int lineType,
Mat hierarchy,
int maxLevel) |
Draws contours outlines or filled contours.
|
|---|
static void | drawContours(Mat image,
java.util.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 | drawMarker(Mat img,
Point position,
Scalar color) |
Draws a marker on a predefined position in an image.
|
|---|
static void | drawMarker(Mat img,
Point position,
Scalar color,
int markerType) |
Draws a marker on a predefined position in an image.
|
|---|
static void | drawMarker(Mat img,
Point position,
Scalar color,
int markerType,
int markerSize) |
Draws a marker on a predefined position in an image.
|
|---|
static void | 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 | 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.
|
|---|
static void | 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 | 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 | 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 | 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 | ellipse(Mat img,
RotatedRect box,
Scalar color) | |
|---|
static void | ellipse(Mat img,
RotatedRect box,
Scalar color,
int thickness) | |
|---|
static void | ellipse(Mat img,
RotatedRect box,
Scalar color,
int thickness,
int lineType) | |
|---|
static void | ellipse2Poly(Point center,
Size axes,
int angle,
int arcStart,
int arcEnd,
int delta,
MatOfPoint pts) |
Approximates an elliptic arc with a polyline.
|
|---|
static float | EMD(Mat signature1,
Mat signature2,
int distType) |
Computes the "minimal work" distance between two weighted point configurations.
|
|---|
static float | EMD(Mat signature1,
Mat signature2,
int distType,
Mat cost) |
Computes the "minimal work" distance between two weighted point configurations.
|
|---|
static float | EMD(Mat signature1,
Mat signature2,
int distType,
Mat cost,
Mat flow) |
Computes the "minimal work" distance between two weighted point configurations.
|
|---|
static void | equalizeHist(Mat src,
Mat dst) |
Equalizes the histogram of a grayscale image.
|
|---|
static void | erode(Mat src,
Mat dst,
Mat kernel) |
Erodes an image by using a specific structuring element.
|
|---|
static void | erode(Mat src,
Mat dst,
Mat kernel,
Point anchor) |
Erodes an image by using a specific structuring element.
|
|---|
static void | erode(Mat src,
Mat dst,
Mat kernel,
Point anchor,
int iterations) |
Erodes an image by using a specific structuring element.
|
|---|
static void | erode(Mat src,
Mat dst,
Mat kernel,
Point anchor,
int iterations,
int borderType) |
Erodes an image by using a specific structuring element.
|
|---|
static void | 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 | fillConvexPoly(Mat img,
MatOfPoint points,
Scalar color) |
Fills a convex polygon.
|
|---|
static void | fillConvexPoly(Mat img,
MatOfPoint points,
Scalar color,
int lineType) |
Fills a convex polygon.
|
|---|
static void | fillConvexPoly(Mat img,
MatOfPoint points,
Scalar color,
int lineType,
int shift) |
Fills a convex polygon.
|
|---|
static void | fillPoly(Mat img,
java.util.List<MatOfPoint> pts,
Scalar color) |
Fills the area bounded by one or more polygons.
|
|---|
static void | fillPoly(Mat img,
java.util.List<MatOfPoint> pts,
Scalar color,
int lineType) |
Fills the area bounded by one or more polygons.
|
|---|
static void | fillPoly(Mat img,
java.util.List<MatOfPoint> pts,
Scalar color,
int lineType,
int shift) |
Fills the area bounded by one or more polygons.
|
|---|
static void | fillPoly(Mat img,
java.util.List<MatOfPoint> pts,
Scalar color,
int lineType,
int shift,
Point offset) |
Fills the area bounded by one or more polygons.
|
|---|
static void | filter2D(Mat src,
Mat dst,
int ddepth,
Mat kernel) |
Convolves an image with the kernel.
|
|---|
static void | filter2D(Mat src,
Mat dst,
int ddepth,
Mat kernel,
Point anchor) |
Convolves an image with the kernel.
|
|---|
static void | filter2D(Mat src,
Mat dst,
int ddepth,
Mat kernel,
Point anchor,
double delta) |
Convolves an image with the kernel.
|
|---|
static void | filter2D(Mat src,
Mat dst,
int ddepth,
Mat kernel,
Point anchor,
double delta,
int borderType) |
Convolves an image with the kernel.
|
|---|
static void | findContours(Mat image,
java.util.List<MatOfPoint> contours,
Mat hierarchy,
int mode,
int method) |
Finds contours in a binary image.
|
|---|
static void | findContours(Mat image,
java.util.List<MatOfPoint> contours,
Mat hierarchy,
int mode,
int method,
Point offset) |
Finds contours in a binary image.
|
|---|
static void | findContoursLinkRuns(Mat image,
java.util.List<Mat> contours) | |
|---|
static void | findContoursLinkRuns(Mat image,
java.util.List<Mat> contours,
Mat hierarchy) | |
|---|
static RotatedRect | fitEllipse(MatOfPoint2f points) |
Fits an ellipse around a set of 2D points.
|
|---|
static RotatedRect | fitEllipseAMS(Mat points) |
Fits an ellipse around a set of 2D points.
|
|---|
static RotatedRect | fitEllipseDirect(Mat points) |
Fits an ellipse around a set of 2D points.
|
|---|
static void | fitLine(Mat points,
Mat line,
int distType,
double param,
double reps,
double aeps) |
Fits a line to a 2D or 3D point set.
|
|---|
static int | floodFill(Mat image,
Mat mask,
Point seedPoint,
Scalar newVal) |
Fills a connected component with the given color.
|
|---|
static int | floodFill(Mat image,
Mat mask,
Point seedPoint,
Scalar newVal,
Rect rect) |
Fills a connected component with the given color.
|
|---|
static int | floodFill(Mat image,
Mat mask,
Point seedPoint,
Scalar newVal,
Rect rect,
Scalar loDiff) |
Fills a connected component with the given color.
|
|---|
static int | floodFill(Mat image,
Mat mask,
Point seedPoint,
Scalar newVal,
Rect rect,
Scalar loDiff,
Scalar upDiff) |
|
|---|
static int | floodFill(Mat image,
Mat mask,
Point seedPoint,
Scalar newVal,
Rect rect,
Scalar loDiff,
Scalar upDiff,
int flags) |
|
|---|
static void | GaussianBlur(Mat src,
Mat dst,
Size ksize,
double sigmaX) |
Blurs an image using a Gaussian filter.
|
|---|
static void | GaussianBlur(Mat src,
Mat dst,
Size ksize,
double sigmaX,
double sigmaY) |
Blurs an image using a Gaussian filter.
|
|---|
static void | GaussianBlur(Mat src,
Mat dst,
Size ksize,
double sigmaX,
double sigmaY,
int borderType) |
Blurs an image using a Gaussian filter.
|
|---|
static void | GaussianBlur(Mat src,
Mat dst,
Size ksize,
double sigmaX,
double sigmaY,
int borderType,
int hint) |
Blurs an image using a Gaussian filter.
|
|---|
static Mat | getAffineTransform(MatOfPoint2f src,
MatOfPoint2f dst) | |
|---|
static void | getClosestEllipsePoints(RotatedRect ellipse_params,
Mat points,
Mat closest_pts) |
Compute for each 2d point the nearest 2d point located on a given ellipse.
|
|---|
static void | getDerivKernels(Mat kx,
Mat ky,
int dx,
int dy,
int ksize) |
Returns filter coefficients for computing spatial image derivatives.
|
|---|
static void | getDerivKernels(Mat kx,
Mat ky,
int dx,
int dy,
int ksize,
boolean normalize) |
Returns filter coefficients for computing spatial image derivatives.
|
|---|
static void | getDerivKernels(Mat kx,
Mat ky,
int dx,
int dy,
int ksize,
boolean normalize,
int ktype) |
Returns filter coefficients for computing spatial image derivatives.
|
|---|
static double | getFontScaleFromHeight(int fontFace,
int pixelHeight) |
Calculates the font-specific size to use to achieve a given height in pixels.
|
|---|
static double | getFontScaleFromHeight(int fontFace,
int pixelHeight,
int thickness) |
Calculates the font-specific size to use to achieve a given height in pixels.
|
|---|
static Mat | getGaborKernel(Size ksize,
double sigma,
double theta,
double lambd,
double gamma) |
Returns Gabor filter coefficients.
|
|---|
static Mat | getGaborKernel(Size ksize,
double sigma,
double theta,
double lambd,
double gamma,
double psi) |
Returns Gabor filter coefficients.
|
|---|
static Mat | getGaborKernel(Size ksize,
double sigma,
double theta,
double lambd,
double gamma,
double psi,
int ktype) |
Returns Gabor filter coefficients.
|
|---|
static Mat | getGaussianKernel(int ksize,
double sigma) |
Returns Gaussian filter coefficients.
|
|---|
static Mat | getGaussianKernel(int ksize,
double sigma,
int ktype) |
Returns Gaussian filter coefficients.
|
|---|
static Mat | getPerspectiveTransform(Mat src,
Mat dst) |
Calculates a perspective transform from four pairs of the corresponding points.
|
|---|
static Mat | getPerspectiveTransform(Mat src,
Mat dst,
int solveMethod) |
Calculates a perspective transform from four pairs of the corresponding points.
|
|---|
static void | getRectSubPix(Mat image,
Size patchSize,
Point center,
Mat patch) |
Retrieves a pixel rectangle from an image with sub-pixel accuracy.
|
|---|
static void | getRectSubPix(Mat image,
Size patchSize,
Point center,
Mat patch,
int patchType) |
Retrieves a pixel rectangle from an image with sub-pixel accuracy.
|
|---|
static Mat | getRotationMatrix2D(Point center,
double angle,
double scale) |
Calculates an affine matrix of 2D rotation.
|
|---|
static Mat | getStructuringElement(int shape,
Size ksize) |
Returns a structuring element of the specified size and shape for morphological operations.
|
|---|
static Mat | getStructuringElement(int shape,
Size ksize,
Point anchor) |
Returns a structuring element of the specified size and shape for morphological operations.
|
|---|
static Size | getTextSize(java.lang.String text,
int fontFace,
double fontScale,
int thickness,
int[] baseLine) | |
|---|
static void | goodFeaturesToTrack(Mat image,
MatOfPoint corners,
int maxCorners,
double qualityLevel,
double minDistance) |
Determines strong corners on an image.
|
|---|
static void | goodFeaturesToTrack(Mat image,
MatOfPoint corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask) |
Determines strong corners on an image.
|
|---|
static void | goodFeaturesToTrack(Mat image,
MatOfPoint corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
int blockSize) |
Determines strong corners on an image.
|
|---|
static void | goodFeaturesToTrack(Mat image,
MatOfPoint corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
int blockSize,
boolean useHarrisDetector) |
Determines strong corners on an image.
|
|---|
static void | goodFeaturesToTrack(Mat image,
MatOfPoint corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
int blockSize,
boolean useHarrisDetector,
double k) |
Determines strong corners on an image.
|
|---|
static void | goodFeaturesToTrack(Mat image,
MatOfPoint corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
int blockSize,
int gradientSize) | |
|---|
static void | goodFeaturesToTrack(Mat image,
MatOfPoint corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
int blockSize,
int gradientSize,
boolean useHarrisDetector) | |
|---|
static void | goodFeaturesToTrack(Mat image,
MatOfPoint corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
int blockSize,
int gradientSize,
boolean useHarrisDetector,
double k) | |
|---|
static void | goodFeaturesToTrackWithQuality(Mat image,
Mat corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
Mat cornersQuality) |
Same as above, but returns also quality measure of the detected corners.
|
|---|
static void | goodFeaturesToTrackWithQuality(Mat image,
Mat corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
Mat cornersQuality,
int blockSize) |
Same as above, but returns also quality measure of the detected corners.
|
|---|
static void | goodFeaturesToTrackWithQuality(Mat image,
Mat corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
Mat cornersQuality,
int blockSize,
int gradientSize) |
Same as above, but returns also quality measure of the detected corners.
|
|---|
static void | goodFeaturesToTrackWithQuality(Mat image,
Mat corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
Mat cornersQuality,
int blockSize,
int gradientSize,
boolean useHarrisDetector) |
Same as above, but returns also quality measure of the detected corners.
|
|---|
static void | goodFeaturesToTrackWithQuality(Mat image,
Mat corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
Mat cornersQuality,
int blockSize,
int gradientSize,
boolean useHarrisDetector,
double k) |
Same as above, but returns also quality measure of the detected corners.
|
|---|
static void | grabCut(Mat img,
Mat mask,
Rect rect,
Mat bgdModel,
Mat fgdModel,
int iterCount) |
Runs the GrabCut algorithm.
|
|---|
static void | grabCut(Mat img,
Mat mask,
Rect rect,
Mat bgdModel,
Mat fgdModel,
int iterCount,
int mode) |
Runs the GrabCut algorithm.
|
|---|
static void | HoughCircles(Mat image,
Mat circles,
int method,
double dp,
double minDist) |
Finds circles in a grayscale image using the Hough transform.
|
|---|
static void | HoughCircles(Mat image,
Mat circles,
int method,
double dp,
double minDist,
double param1) |
Finds circles in a grayscale image using the Hough transform.
|
|---|
static void | HoughCircles(Mat image,
Mat circles,
int method,
double dp,
double minDist,
double param1,
double param2) |
Finds circles in a grayscale image using the Hough transform.
|
|---|
static void | HoughCircles(Mat image,
Mat circles,
int method,
double dp,
double minDist,
double param1,
double param2,
int minRadius) |
Finds circles in a grayscale image using the Hough transform.
|
|---|
static void | HoughCircles(Mat image,
Mat circles,
int method,
double dp,
double minDist,
double param1,
double param2,
int minRadius,
int maxRadius) |
Finds circles in a grayscale image using the Hough transform.
|
|---|
static void | HoughCirclesWithAccumulator(Mat image,
Mat circles,
int method,
double dp,
double minDist) |
Finds circles in a grayscale image using the Hough transform and get accumulator.
|
|---|
static void | HoughCirclesWithAccumulator(Mat image,
Mat circles,
int method,
double dp,
double minDist,
double param1) |
Finds circles in a grayscale image using the Hough transform and get accumulator.
|
|---|
static void | HoughCirclesWithAccumulator(Mat image,
Mat circles,
int method,
double dp,
double minDist,
double param1,
double param2) |
Finds circles in a grayscale image using the Hough transform and get accumulator.
|
|---|
static void | HoughCirclesWithAccumulator(Mat image,
Mat circles,
int method,
double dp,
double minDist,
double param1,
double param2,
int minRadius) |
Finds circles in a grayscale image using the Hough transform and get accumulator.
|
|---|
static void | HoughCirclesWithAccumulator(Mat image,
Mat circles,
int method,
double dp,
double minDist,
double param1,
double param2,
int minRadius,
int maxRadius) |
Finds circles in a grayscale image using the Hough transform and get accumulator.
|
|---|
static void | HoughLines(Mat image,
Mat lines,
double rho,
double theta,
int threshold) |
Finds lines in a binary image using the standard Hough transform.
|
|---|
static void | HoughLines(Mat image,
Mat lines,
double rho,
double theta,
int threshold,
double srn) |
Finds lines in a binary image using the standard Hough transform.
|
|---|
static void | HoughLines(Mat image,
Mat lines,
double rho,
double theta,
int threshold,
double srn,
double stn) |
Finds lines in a binary image using the standard Hough transform.
|
|---|
static void | HoughLines(Mat image,
Mat lines,
double rho,
double theta,
int threshold,
double srn,
double stn,
double min_theta) |
Finds lines in a binary image using the standard Hough transform.
|
|---|
static void | HoughLines(Mat image,
Mat lines,
double rho,
double theta,
int threshold,
double srn,
double stn,
double min_theta,
double max_theta) |
Finds lines in a binary image using the standard Hough transform.
|
|---|
static void | HoughLines(Mat image,
Mat lines,
double rho,
double theta,
int threshold,
double srn,
double stn,
double min_theta,
double max_theta,
boolean use_edgeval) |
Finds lines in a binary image using the standard Hough transform.
|
|---|
static void | HoughLinesP(Mat image,
Mat lines,
double rho,
double theta,
int threshold) |
Finds line segments in a binary image using the probabilistic Hough transform.
|
|---|
static void | HoughLinesP(Mat image,
Mat lines,
double rho,
double theta,
int threshold,
double minLineLength) |
Finds line segments in a binary image using the probabilistic Hough transform.
|
|---|
static void | HoughLinesP(Mat image,
Mat lines,
double rho,
double theta,
int threshold,
double minLineLength,
double maxLineGap) |
Finds line segments in a binary image using the probabilistic Hough transform.
|
|---|
static void | HoughLinesPointSet(Mat point,
Mat lines,
int lines_max,
int threshold,
double min_rho,
double max_rho,
double rho_step,
double min_theta,
double max_theta,
double theta_step) |
Finds lines in a set of points using the standard Hough transform.
|
|---|
static void | HoughLinesWithAccumulator(Mat image,
Mat lines,
double rho,
double theta,
int threshold) |
Finds lines in a binary image using the standard Hough transform and get accumulator.
|
|---|
static void | HoughLinesWithAccumulator(Mat image,
Mat lines,
double rho,
double theta,
int threshold,
double srn) |
Finds lines in a binary image using the standard Hough transform and get accumulator.
|
|---|
static void | HoughLinesWithAccumulator(Mat image,
Mat lines,
double rho,
double theta,
int threshold,
double srn,
double stn) |
Finds lines in a binary image using the standard Hough transform and get accumulator.
|
|---|
static void | HoughLinesWithAccumulator(Mat image,
Mat lines,
double rho,
double theta,
int threshold,
double srn,
double stn,
double min_theta) |
Finds lines in a binary image using the standard Hough transform and get accumulator.
|
|---|
static void | HoughLinesWithAccumulator(Mat image,
Mat lines,
double rho,
double theta,
int threshold,
double srn,
double stn,
double min_theta,
double max_theta) |
Finds lines in a binary image using the standard Hough transform and get accumulator.
|
|---|
static void | HoughLinesWithAccumulator(Mat image,
Mat lines,
double rho,
double theta,
int threshold,
double srn,
double stn,
double min_theta,
double max_theta,
boolean use_edgeval) |
Finds lines in a binary image using the standard Hough transform and get accumulator.
|
|---|
static void | HuMoments(Moments m,
Mat hu) | |
|---|
static void | integral(Mat src,
Mat sum) | |
|---|
static void | integral(Mat src,
Mat sum,
int sdepth) | |
|---|
static void | integral2(Mat src,
Mat sum,
Mat sqsum) | |
|---|
static void | integral2(Mat src,
Mat sum,
Mat sqsum,
int sdepth) | |
|---|
static void | integral2(Mat src,
Mat sum,
Mat sqsum,
int sdepth,
int sqdepth) | |
|---|
static void | integral3(Mat src,
Mat sum,
Mat sqsum,
Mat tilted) |
Calculates the integral of an image.
|
|---|
static void | integral3(Mat src,
Mat sum,
Mat sqsum,
Mat tilted,
int sdepth) |
Calculates the integral of an image.
|
|---|
static void | integral3(Mat src,
Mat sum,
Mat sqsum,
Mat tilted,
int sdepth,
int sqdepth) |
Calculates the integral of an image.
|
|---|
static float | intersectConvexConvex(Mat p1,
Mat p2,
Mat p12) |
Finds intersection of two convex polygons
|
|---|
static float | intersectConvexConvex(Mat p1,
Mat p2,
Mat p12,
boolean handleNested) |
Finds intersection of two convex polygons
|
|---|
static void | invertAffineTransform(Mat M,
Mat iM) |
Inverts an affine transformation.
|
|---|
static boolean | isContourConvex(MatOfPoint contour) |
Tests a contour convexity.
|
|---|
static void | Laplacian(Mat src,
Mat dst,
int ddepth) |
Calculates the Laplacian of an image.
|
|---|
static void | Laplacian(Mat src,
Mat dst,
int ddepth,
int ksize) |
Calculates the Laplacian of an image.
|
|---|
static void | Laplacian(Mat src,
Mat dst,
int ddepth,
int ksize,
double scale) |
Calculates the Laplacian of an image.
|
|---|
static void | Laplacian(Mat src,
Mat dst,
int ddepth,
int ksize,
double scale,
double delta) |
Calculates the Laplacian of an image.
|
|---|
static void | Laplacian(Mat src,
Mat dst,
int ddepth,
int ksize,
double scale,
double delta,
int borderType) |
Calculates the Laplacian of an image.
|
|---|
static void | line(Mat img,
Point pt1,
Point pt2,
Scalar color) |
Draws a line segment connecting two points.
|
|---|
static void | line(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness) |
Draws a line segment connecting two points.
|
|---|
static void | line(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType) |
Draws a line segment connecting two points.
|
|---|
static void | line(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType,
int shift) |
Draws a line segment connecting two points.
|
|---|
static void | 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}\)
|
|---|
static void | 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 double | matchShapes(Mat contour1,
Mat contour2,
int method,
double parameter) |
Compares two shapes.
|
|---|
static void | matchTemplate(Mat image,
Mat templ,
Mat result,
int method) |
Compares a template against overlapped image regions.
|
|---|
static void | matchTemplate(Mat image,
Mat templ,
Mat result,
int method,
Mat mask) |
Compares a template against overlapped image regions.
|
|---|
static void | medianBlur(Mat src,
Mat dst,
int ksize) |
Blurs an image using the median filter.
|
|---|
static RotatedRect | minAreaRect(MatOfPoint2f points) |
Finds a rotated rectangle of the minimum area enclosing the input 2D point set.
|
|---|
static void | minEnclosingCircle(MatOfPoint2f points,
Point center,
float[] radius) |
Finds a circle of the minimum area enclosing a 2D point set.
|
|---|
static double | minEnclosingConvexPolygon(Mat points,
Mat polygon,
int k) |
Finds a convex polygon of minimum area enclosing a 2D point set and returns its area.
|
|---|
static double | minEnclosingTriangle(Mat points,
Mat triangle) |
Finds a triangle of minimum area enclosing a 2D point set and returns its area.
|
|---|
static Moments | moments(Mat array) |
Calculates all of the moments up to the third order of a polygon or rasterized shape.
|
|---|
static Moments | moments(Mat array,
boolean binaryImage) |
Calculates all of the moments up to the third order of a polygon or rasterized shape.
|
|---|
static void | morphologyEx(Mat src,
Mat dst,
int op,
Mat kernel) |
Performs advanced morphological transformations.
|
|---|
static void | morphologyEx(Mat src,
Mat dst,
int op,
Mat kernel,
Point anchor) |
Performs advanced morphological transformations.
|
|---|
static void | morphologyEx(Mat src,
Mat dst,
int op,
Mat kernel,
Point anchor,
int iterations) |
Performs advanced morphological transformations.
|
|---|
static void | morphologyEx(Mat src,
Mat dst,
int op,
Mat kernel,
Point anchor,
int iterations,
int borderType) |
Performs advanced morphological transformations.
|
|---|
static void | morphologyEx(Mat src,
Mat dst,
int op,
Mat kernel,
Point anchor,
int iterations,
int borderType,
Scalar borderValue) |
Performs advanced morphological transformations.
|
|---|
static Point | phaseCorrelate(Mat src1,
Mat src2) |
The function is used to detect translational shifts that occur between two images.
|
|---|
static Point | phaseCorrelate(Mat src1,
Mat src2,
Mat window) |
The function is used to detect translational shifts that occur between two images.
|
|---|
static Point | phaseCorrelate(Mat src1,
Mat src2,
Mat window,
double[] response) |
The function is used to detect translational shifts that occur between two images.
|
|---|
static Point | phaseCorrelateIterative(Mat src1,
Mat src2) |
Detects translational shifts between two images.
|
|---|
static Point | phaseCorrelateIterative(Mat src1,
Mat src2,
int L2size) |
Detects translational shifts between two images.
|
|---|
static Point | phaseCorrelateIterative(Mat src1,
Mat src2,
int L2size,
int maxIters) |
Detects translational shifts between two images.
|
|---|
static double | pointPolygonTest(MatOfPoint2f contour,
Point pt,
boolean measureDist) |
Performs a point-in-contour test.
|
|---|
static void | polylines(Mat img,
java.util.List<MatOfPoint> pts,
boolean isClosed,
Scalar color) |
Draws several polygonal curves.
|
|---|
static void | polylines(Mat img,
java.util.List<MatOfPoint> pts,
boolean isClosed,
Scalar color,
int thickness) |
Draws several polygonal curves.
|
|---|
static void | polylines(Mat img,
java.util.List<MatOfPoint> pts,
boolean isClosed,
Scalar color,
int thickness,
int lineType) |
Draws several polygonal curves.
|
|---|
static void | polylines(Mat img,
java.util.List<MatOfPoint> pts,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
Draws several polygonal curves.
|
|---|
static void | preCornerDetect(Mat src,
Mat dst,
int ksize) |
Calculates a feature map for corner detection.
|
|---|
static void | preCornerDetect(Mat src,
Mat dst,
int ksize,
int borderType) |
Calculates a feature map for corner detection.
|
|---|
static void | putText(Mat img,
java.lang.String text,
Point org,
int fontFace,
double fontScale,
Scalar color) |
Draws a text string.
|
|---|
static void | putText(Mat img,
java.lang.String text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness) |
Draws a text string.
|
|---|
static void | putText(Mat img,
java.lang.String text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness,
int lineType) |
Draws a text string.
|
|---|
static void | putText(Mat img,
java.lang.String text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness,
int lineType,
boolean bottomLeftOrigin) |
Draws a text string.
|
|---|
static void | pyrDown(Mat src,
Mat dst) |
Blurs an image and downsamples it.
|
|---|
static void | pyrDown(Mat src,
Mat dst,
Size dstsize) |
Blurs an image and downsamples it.
|
|---|
static void | pyrDown(Mat src,
Mat dst,
Size dstsize,
int borderType) |
Blurs an image and downsamples it.
|
|---|
static void | pyrMeanShiftFiltering(Mat src,
Mat dst,
double sp,
double sr) |
Performs initial step of meanshift segmentation of an image.
|
|---|
static void | pyrMeanShiftFiltering(Mat src,
Mat dst,
double sp,
double sr,
int maxLevel) |
Performs initial step of meanshift segmentation of an image.
|
|---|
static void | pyrMeanShiftFiltering(Mat src,
Mat dst,
double sp,
double sr,
int maxLevel,
TermCriteria termcrit) |
Performs initial step of meanshift segmentation of an image.
|
|---|
static void | pyrUp(Mat src,
Mat dst) |
Upsamples an image and then blurs it.
|
|---|
static void | pyrUp(Mat src,
Mat dst,
Size dstsize) |
Upsamples an image and then blurs it.
|
|---|
static void | pyrUp(Mat src,
Mat dst,
Size dstsize,
int borderType) |
Upsamples an image and then blurs it.
|
|---|
static void | rectangle(Mat img,
Point pt1,
Point pt2,
Scalar color) |
Draws a simple, thick, or filled up-right rectangle.
|
|---|
static void | rectangle(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness) |
Draws a simple, thick, or filled up-right rectangle.
|
|---|
static void | rectangle(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType) |
Draws a simple, thick, or filled up-right rectangle.
|
|---|
static void | 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 | rectangle(Mat img,
Rect rec,
Scalar color) |
use rec parameter as alternative specification of the drawn rectangle: `r.tl() and
r.br()-Point(1,1)` are opposite corners
|
|---|
static void | rectangle(Mat img,
Rect rec,
Scalar color,
int thickness) |
use rec parameter as alternative specification of the drawn rectangle: `r.tl() and
r.br()-Point(1,1)` are opposite corners
|
|---|
static void | rectangle(Mat img,
Rect rec,
Scalar color,
int thickness,
int lineType) |
use rec parameter as alternative specification of the drawn rectangle: `r.tl() and
r.br()-Point(1,1)` are opposite corners
|
|---|
static void | rectangle(Mat img,
Rect rec,
Scalar color,
int thickness,
int lineType,
int shift) |
use rec parameter as alternative specification of the drawn rectangle: `r.tl() and
r.br()-Point(1,1)` are opposite corners
|
|---|
static void | remap(Mat src,
Mat dst,
Mat map1,
Mat map2,
int interpolation) |
Applies a generic geometrical transformation to an image.
|
|---|
static void | remap(Mat src,
Mat dst,
Mat map1,
Mat map2,
int interpolation,
int borderMode) |
Applies a generic geometrical transformation to an image.
|
|---|
static void | 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 | resize(Mat src,
Mat dst,
Size dsize) |
Resizes an image.
|
|---|
static void | resize(Mat src,
Mat dst,
Size dsize,
double fx) |
Resizes an image.
|
|---|
static void | resize(Mat src,
Mat dst,
Size dsize,
double fx,
double fy) |
Resizes an image.
|
|---|
static void | resize(Mat src,
Mat dst,
Size dsize,
double fx,
double fy,
int interpolation) |
Resizes an image.
|
|---|
static int | rotatedRectangleIntersection(RotatedRect rect1,
RotatedRect rect2,
Mat intersectingRegion) |
Finds out if there is any intersection between two rotated rectangles.
|
|---|
static void | Scharr(Mat src,
Mat dst,
int ddepth,
int dx,
int dy) |
Calculates the first x- or y- image derivative using Scharr operator.
|
|---|
static void | Scharr(Mat src,
Mat dst,
int ddepth,
int dx,
int dy,
double scale) |
Calculates the first x- or y- image derivative using Scharr operator.
|
|---|
static void | Scharr(Mat src,
Mat dst,
int ddepth,
int dx,
int dy,
double scale,
double delta) |
Calculates the first x- or y- image derivative using Scharr operator.
|
|---|
static void | Scharr(Mat src,
Mat dst,
int ddepth,
int dx,
int dy,
double scale,
double delta,
int borderType) |
Calculates the first x- or y- image derivative using Scharr operator.
|
|---|
static void | sepFilter2D(Mat src,
Mat dst,
int ddepth,
Mat kernelX,
Mat kernelY) |
Applies a separable linear filter to an image.
|
|---|
static void | sepFilter2D(Mat src,
Mat dst,
int ddepth,
Mat kernelX,
Mat kernelY,
Point anchor) |
Applies a separable linear filter to an image.
|
|---|
static void | 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 | 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.
|
|---|
static void | Sobel(Mat src,
Mat dst,
int ddepth,
int dx,
int dy) |
Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
|
|---|
static void | Sobel(Mat src,
Mat dst,
int ddepth,
int dx,
int dy,
int ksize) |
Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
|
|---|
static void | Sobel(Mat src,
Mat dst,
int ddepth,
int dx,
int dy,
int ksize,
double scale) |
Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
|
|---|
static void | Sobel(Mat src,
Mat dst,
int ddepth,
int dx,
int dy,
int ksize,
double scale,
double delta) |
Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
|
|---|
static void | Sobel(Mat src,
Mat dst,
int ddepth,
int dx,
int dy,
int ksize,
double scale,
double delta,
int borderType) |
Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
|
|---|
static void | spatialGradient(Mat src,
Mat dx,
Mat dy) |
Calculates the first order image derivative in both x and y using a Sobel operator
Equivalent to calling:
Sobel( src, dx, CV_16SC1, 1, 0, 3 );
Sobel( src, dy, CV_16SC1, 0, 1, 3 );
|
|---|
static void | spatialGradient(Mat src,
Mat dx,
Mat dy,
int ksize) |
Calculates the first order image derivative in both x and y using a Sobel operator
Equivalent to calling:
Sobel( src, dx, CV_16SC1, 1, 0, 3 );
Sobel( src, dy, CV_16SC1, 0, 1, 3 );
|
|---|
static void | spatialGradient(Mat src,
Mat dx,
Mat dy,
int ksize,
int borderType) |
Calculates the first order image derivative in both x and y using a Sobel operator
Equivalent to calling:
Sobel( src, dx, CV_16SC1, 1, 0, 3 );
Sobel( src, dy, CV_16SC1, 0, 1, 3 );
|
|---|
static void | sqrBoxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize) |
Calculates the normalized sum of squares of the pixel values overlapping the filter.
|
|---|
static void | 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 | 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 | 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 | stackBlur(Mat src,
Mat dst,
Size ksize) |
Blurs an image using the stackBlur.
|
|---|
static double | threshold(Mat src,
Mat dst,
double thresh,
double maxval,
int type) |
Applies a fixed-level threshold to each array element.
|
|---|
static double | thresholdWithMask(Mat src,
Mat dst,
Mat mask,
double thresh,
double maxval,
int type) |
Same as #threshold, but with an optional mask
Note: If the mask is empty, #thresholdWithMask is equivalent to #threshold.
|
|---|
static void | warpAffine(Mat src,
Mat dst,
Mat M,
Size dsize) |
Applies an affine transformation to an image.
|
|---|
static void | warpAffine(Mat src,
Mat dst,
Mat M,
Size dsize,
int flags) |
Applies an affine transformation to an image.
|
|---|
static void | warpAffine(Mat src,
Mat dst,
Mat M,
Size dsize,
int flags,
int borderMode) |
Applies an affine transformation to an image.
|
|---|
static void | warpAffine(Mat src,
Mat dst,
Mat M,
Size dsize,
int flags,
int borderMode,
Scalar borderValue) |
Applies an affine transformation to an image.
|
|---|
static void | warpPerspective(Mat src,
Mat dst,
Mat M,
Size dsize) |
Applies a perspective transformation to an image.
|
|---|
static void | warpPerspective(Mat src,
Mat dst,
Mat M,
Size dsize,
int flags) |
Applies a perspective transformation to an image.
|
|---|
static void | warpPerspective(Mat src,
Mat dst,
Mat M,
Size dsize,
int flags,
int borderMode) |
Applies a perspective transformation to an image.
|
|---|
static void | warpPerspective(Mat src,
Mat dst,
Mat M,
Size dsize,
int flags,
int borderMode,
Scalar borderValue) |
Applies a perspective transformation to an image.
|
|---|
static void | 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

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.
|
|---|
static void | watershed(Mat image,
Mat markers) |
Performs a marker-based image segmentation using the watershed algorithm.
|
|---|