| Package | Description |
|---|---|
| org.opencv.calib3d | |
| org.opencv.core | |
| org.opencv.highgui | |
| org.opencv.imgproc | |
| org.opencv.objdetect | |
| org.opencv.video |
| Modifier and Type | Method and Description |
|---|---|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs,
int flags)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
static double |
Calib3d.calibrateCamera(List<Mat> objectPoints,
List<Mat> imagePoints,
Size imageSize,
Mat cameraMatrix,
Mat distCoeffs,
List<Mat> rvecs,
List<Mat> tvecs,
int flags,
TermCriteria criteria)
Finds the camera intrinsic and extrinsic parameters from several views of a
calibration pattern.
|
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 void |
Calib3d.drawChessboardCorners(Mat image,
Size patternSize,
MatOfPoint2f corners,
boolean patternWasFound)
Renders the detected chessboard corners.
|
static boolean |
Calib3d.findChessboardCorners(Mat image,
Size patternSize,
MatOfPoint2f corners)
Finds the positions of internal corners of the chessboard.
|
static boolean |
Calib3d.findChessboardCorners(Mat image,
Size patternSize,
MatOfPoint2f corners,
int flags)
Finds the positions of internal corners of the chessboard.
|
static boolean |
Calib3d.findCirclesGridDefault(Mat image,
Size patternSize,
Mat centers) |
static boolean |
Calib3d.findCirclesGridDefault(Mat image,
Size patternSize,
Mat centers,
int flags) |
static Mat |
Calib3d.getOptimalNewCameraMatrix(Mat cameraMatrix,
Mat distCoeffs,
Size imageSize,
double alpha)
Returns the new camera matrix based on the free scaling parameter.
|
static Mat |
Calib3d.getOptimalNewCameraMatrix(Mat cameraMatrix,
Mat distCoeffs,
Size imageSize,
double alpha,
Size newImgSize,
Rect validPixROI,
boolean centerPrincipalPoint)
Returns the new camera matrix based on the free scaling parameter.
|
static Mat |
Calib3d.initCameraMatrix2D(List<MatOfPoint3f> objectPoints,
List<MatOfPoint2f> imagePoints,
Size imageSize)
Finds an initial camera matrix from 3D-2D point correspondences.
|
static Mat |
Calib3d.initCameraMatrix2D(List<MatOfPoint3f> objectPoints,
List<MatOfPoint2f> imagePoints,
Size imageSize,
double aspectRatio)
Finds an initial camera matrix from 3D-2D point correspondences.
|
static float |
Calib3d.rectify3Collinear(Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Mat cameraMatrix3,
Mat distCoeffs3,
List<Mat> imgpt1,
List<Mat> imgpt3,
Size imageSize,
Mat R12,
Mat T12,
Mat R13,
Mat T13,
Mat R1,
Mat R2,
Mat R3,
Mat P1,
Mat P2,
Mat P3,
Mat Q,
double alpha,
Size newImgSize,
Rect roi1,
Rect roi2,
int flags) |
static double |
Calib3d.stereoCalibrate(List<Mat> objectPoints,
List<Mat> imagePoints1,
List<Mat> imagePoints2,
Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat E,
Mat F)
Calibrates the stereo camera.
|
static double |
Calib3d.stereoCalibrate(List<Mat> objectPoints,
List<Mat> imagePoints1,
List<Mat> imagePoints2,
Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat E,
Mat F,
TermCriteria criteria,
int flags)
Calibrates the stereo camera.
|
static void |
Calib3d.stereoRectify(Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat R1,
Mat R2,
Mat P1,
Mat P2,
Mat Q)
Computes rectification transforms for each head of a calibrated stereo
camera.
|
static void |
Calib3d.stereoRectify(Mat cameraMatrix1,
Mat distCoeffs1,
Mat cameraMatrix2,
Mat distCoeffs2,
Size imageSize,
Mat R,
Mat T,
Mat R1,
Mat R2,
Mat P1,
Mat P2,
Mat Q,
int flags,
double alpha,
Size newImageSize,
Rect validPixROI1,
Rect validPixROI2)
Computes rectification transforms for each head of a calibrated stereo
camera.
|
static boolean |
Calib3d.stereoRectifyUncalibrated(Mat points1,
Mat points2,
Mat F,
Size imgSize,
Mat H1,
Mat H2)
Computes a rectification transform for an uncalibrated stereo camera.
|
static boolean |
Calib3d.stereoRectifyUncalibrated(Mat points1,
Mat points2,
Mat F,
Size imgSize,
Mat H1,
Mat H2,
double threshold)
Computes a rectification transform for an uncalibrated stereo camera.
|
| Modifier and Type | Field and Description |
|---|---|
Size |
RotatedRect.size |
| Modifier and Type | Method and Description |
|---|---|
Size |
Size.clone() |
static Size |
Core.getTextSize(String text,
int fontFace,
double fontScale,
int thickness,
int[] baseLine)
Calculates the width and height of a text string.
|
Size |
Rect.size() |
Size |
Mat.size()
Returns a matrix size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Mat.create(Size size,
int type)
Allocates new array data if needed.
|
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.ellipse2Poly(Point center,
Size axes,
int angle,
int arcStart,
int arcEnd,
int delta,
MatOfPoint pts)
Approximates an elliptic arc with a polyline.
|
static Mat |
Mat.eye(Size size,
int type)
Returns an identity matrix of the specified size and type.
|
void |
Mat.locateROI(Size wholeSize,
Point ofs)
Locates the matrix header within a parent matrix.
|
static Mat |
Mat.ones(Size size,
int type)
Returns an array of all 1's of the specified size and type.
|
static Mat |
Mat.zeros(Size size,
int type)
Returns a zero array of the specified size and type.
|
| Constructor and Description |
|---|
Mat(Size size,
int type)
Various Mat constructors
|
Mat(Size size,
int type,
Scalar s)
Various Mat constructors
|
Rect(Point p,
Size s) |
RotatedRect(Point c,
Size s,
double a) |
| Modifier and Type | Method and Description |
|---|---|
List<Size> |
VideoCapture.getSupportedPreviewSizes() |
| Modifier and Type | Method and Description |
|---|---|
static void |
Imgproc.adaptiveBilateralFilter(Mat src,
Mat dst,
Size ksize,
double sigmaSpace)
Applies the adaptive bilateral filter to an image.
|
static void |
Imgproc.adaptiveBilateralFilter(Mat src,
Mat dst,
Size ksize,
double sigmaSpace,
double maxSigmaColor,
Point anchor)
Applies the adaptive bilateral filter to an image.
|
static void |
Imgproc.adaptiveBilateralFilter(Mat src,
Mat dst,
Size ksize,
double sigmaSpace,
double maxSigmaColor,
Point anchor,
int borderType)
Applies the adaptive bilateral filter to an image.
|
static void |
Imgproc.blur(Mat src,
Mat dst,
Size ksize)
Blurs an image using the normalized box filter.
|
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)
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.cornerSubPix(Mat image,
MatOfPoint2f corners,
Size winSize,
Size zeroZone,
TermCriteria criteria)
Refines the corner locations.
|
static void |
Imgproc.createHanningWindow(Mat dst,
Size winSize,
int type)
This function computes a Hanning window coefficients in two dimensions.
|
static void |
Imgproc.GaussianBlur(Mat src,
Mat dst,
Size ksize,
double sigmaX)
Blurs an image using a Gaussian filter.
|
static void |
Imgproc.GaussianBlur(Mat src,
Mat dst,
Size ksize,
double sigmaX,
double sigmaY)
Blurs an image using a Gaussian filter.
|
static void |
Imgproc.GaussianBlur(Mat src,
Mat dst,
Size ksize,
double sigmaX,
double sigmaY,
int borderType)
Blurs an image using a Gaussian filter.
|
static Mat |
Imgproc.getDefaultNewCameraMatrix(Mat cameraMatrix,
Size imgsize,
boolean centerPrincipalPoint)
Returns the default new camera matrix.
|
static Mat |
Imgproc.getGaborKernel(Size ksize,
double sigma,
double theta,
double lambd,
double gamma) |
static Mat |
Imgproc.getGaborKernel(Size ksize,
double sigma,
double theta,
double lambd,
double gamma,
double psi,
int ktype) |
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.getStructuringElement(int shape,
Size ksize)
Returns a structuring element of the specified size and shape for
morphological operations.
|
static Mat |
Imgproc.getStructuringElement(int shape,
Size ksize,
Point anchor)
Returns a structuring element of the specified size and shape for
morphological operations.
|
static void |
Imgproc.initUndistortRectifyMap(Mat cameraMatrix,
Mat distCoeffs,
Mat R,
Mat newCameraMatrix,
Size size,
int m1type,
Mat map1,
Mat map2)
Computes the undistortion and rectification transformation map.
|
static float |
Imgproc.initWideAngleProjMap(Mat cameraMatrix,
Mat distCoeffs,
Size imageSize,
int destImageWidth,
int m1type,
Mat map1,
Mat map2) |
static float |
Imgproc.initWideAngleProjMap(Mat cameraMatrix,
Mat distCoeffs,
Size imageSize,
int destImageWidth,
int m1type,
Mat map1,
Mat map2,
int projType,
double alpha) |
static void |
Imgproc.pyrDown(Mat src,
Mat dst,
Size dstsize)
Blurs an image and downsamples it.
|
static void |
Imgproc.pyrDown(Mat src,
Mat dst,
Size dstsize,
int borderType)
Blurs an image and downsamples it.
|
static void |
Imgproc.pyrUp(Mat src,
Mat dst,
Size dstsize)
Upsamples an image and then blurs it.
|
static void |
Imgproc.pyrUp(Mat src,
Mat dst,
Size dstsize,
int borderType)
Upsamples an image and then blurs it.
|
static void |
Imgproc.resize(Mat src,
Mat dst,
Size dsize)
Resizes an image.
|
static void |
Imgproc.resize(Mat src,
Mat dst,
Size dsize,
double fx,
double fy,
int interpolation)
Resizes an image.
|
void |
CLAHE.setTilesGridSize(Size tileGridSize) |
static void |
Imgproc.warpAffine(Mat src,
Mat dst,
Mat M,
Size dsize)
Applies an affine transformation to an image.
|
static void |
Imgproc.warpAffine(Mat src,
Mat dst,
Mat M,
Size dsize,
int flags)
Applies an affine 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)
Applies a perspective transformation to an image.
|
static void |
Imgproc.warpPerspective(Mat src,
Mat dst,
Mat M,
Size dsize,
int flags)
Applies a perspective 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.
|
| Modifier and Type | Method and Description |
|---|---|
Size |
HOGDescriptor.get_blockSize() |
Size |
HOGDescriptor.get_blockStride() |
Size |
HOGDescriptor.get_cellSize() |
Size |
HOGDescriptor.get_winSize() |
| Modifier and Type | Method and Description |
|---|---|
void |
HOGDescriptor.compute(Mat img,
MatOfFloat descriptors,
Size winStride,
Size padding,
MatOfPoint locations) |
void |
HOGDescriptor.computeGradient(Mat img,
Mat grad,
Mat angleOfs,
Size paddingTL,
Size paddingBR) |
void |
HOGDescriptor.detect(Mat img,
MatOfPoint foundLocations,
MatOfDouble weights,
double hitThreshold,
Size winStride,
Size padding,
MatOfPoint searchLocations) |
void |
CascadeClassifier.detectMultiScale(Mat image,
MatOfRect objects,
double scaleFactor,
int minNeighbors,
int flags,
Size minSize,
Size maxSize)
Detects objects of different sizes in the input image.
|
void |
HOGDescriptor.detectMultiScale(Mat img,
MatOfRect foundLocations,
MatOfDouble foundWeights,
double hitThreshold,
Size winStride,
Size padding,
double scale,
double finalThreshold,
boolean useMeanshiftGrouping) |
void |
CascadeClassifier.detectMultiScale(Mat image,
MatOfRect objects,
MatOfInt rejectLevels,
MatOfDouble levelWeights,
double scaleFactor,
int minNeighbors,
int flags,
Size minSize,
Size maxSize,
boolean outputRejectLevels)
Detects objects of different sizes in the input image.
|
| Constructor and Description |
|---|
HOGDescriptor(Size _winSize,
Size _blockSize,
Size _blockStride,
Size _cellSize,
int _nbins) |
HOGDescriptor(Size _winSize,
Size _blockSize,
Size _blockStride,
Size _cellSize,
int _nbins,
int _derivAperture,
double _winSigma,
int _histogramNormType,
double _L2HysThreshold,
boolean _gammaCorrection,
int _nlevels) |
| Modifier and Type | Method and Description |
|---|---|
static int |
Video.buildOpticalFlowPyramid(Mat img,
List<Mat> pyramid,
Size winSize,
int maxLevel)
Constructs the image pyramid which can be passed to "calcOpticalFlowPyrLK".
|
static int |
Video.buildOpticalFlowPyramid(Mat img,
List<Mat> pyramid,
Size winSize,
int maxLevel,
boolean withDerivatives,
int pyrBorder,
int derivBorder,
boolean tryReuseInputImage)
Constructs the image pyramid which can be passed to "calcOpticalFlowPyrLK".
|
static void |
Video.calcOpticalFlowPyrLK(Mat prevImg,
Mat nextImg,
MatOfPoint2f prevPts,
MatOfPoint2f nextPts,
MatOfByte status,
MatOfFloat err,
Size winSize,
int maxLevel)
Calculates an optical flow for a sparse feature set using the iterative
Lucas-Kanade method with pyramids.
|
static void |
Video.calcOpticalFlowPyrLK(Mat prevImg,
Mat nextImg,
MatOfPoint2f prevPts,
MatOfPoint2f nextPts,
MatOfByte status,
MatOfFloat err,
Size winSize,
int maxLevel,
TermCriteria criteria,
int flags,
double minEigThreshold)
Calculates an optical flow for a sparse feature set using the iterative
Lucas-Kanade method with pyramids.
|
Copyright © 2014. All rights reserved.