public class JavaCV extends Object
Modifier and Type | Field and Description |
---|---|
static double |
DBL_EPSILON |
static double |
FLT_EPSILON |
static double |
SQRT2 |
Constructor and Description |
---|
JavaCV() |
Modifier and Type | Method and Description |
---|---|
static void |
adaptiveThreshold(IplImage srcImage,
IplImage sumImage,
IplImage sqSumImage,
IplImage dstImage,
boolean invert,
int windowMax,
int windowMin,
double varMultiplier,
double k)
more sophisticated than cvAdaptiveThreshold()
|
static CvBox2D |
boundedRect(CvMat contour,
CvBox2D box) |
static CvRect |
boundingRect(double[] contour,
CvRect rect,
int padX,
int padY,
int alignX,
int alignY)
Similar to cvBoundingRect(), but can also pad the output with some extra
pixels, useful to use as ROI for operations with interpolation.
|
static void |
clamp(IplImage src,
IplImage dst,
double min,
double max)
Clamps image intensities between min and max.
|
static double |
cond(CvMat A) |
static double |
cond(CvMat A,
double p) |
static double |
cond(CvMat A,
double p,
CvMat W) |
static double |
distanceToLine(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
returns the distance^2 between the line (x1, y1) (x2, y2) and the point (x3, y3)
|
static void |
fractalTriangleWave(double[] line,
int i,
int j,
double a) |
static void |
fractalTriangleWave(double[] line,
int i,
int j,
double a,
int roughness) |
static void |
fractalTriangleWave(IplImage image,
CvMat H) |
static void |
fractalTriangleWave(IplImage image,
CvMat H,
int roughness) |
static CvMat |
getPerspectiveTransform(double[] src,
double[] dst,
CvMat map_matrix)
this is basically cvGetPerspectiveTransform() using CV_LU instead of
CV_SVD, because the latter gives inaccurate results...
|
static CvMat |
getPerspectiveTransform(double[] src,
double[] dst,
CvMat invSrcK,
CvMat dstK,
CvMat R,
CvMat t,
CvMat H) |
static CvMat |
getPlaneParameters(double[] src,
double[] dst,
CvMat invSrcK,
CvMat dstK,
CvMat R,
CvMat t,
CvMat n) |
static double |
HnToRt(CvMat H,
CvMat n,
CvMat R,
CvMat t) |
static double |
homogToRt(CvMat H,
CvMat R1,
CvMat t1,
CvMat n1,
CvMat R2,
CvMat t2,
CvMat n2)
Ported to Java/OpenCV from
Bill Triggs.
|
static double |
homogToRt(CvMat S,
CvMat U,
CvMat V,
CvMat R1,
CvMat t1,
CvMat n1,
CvMat R2,
CvMat t2,
CvMat n2) |
static void |
HtoRt(CvMat H,
CvMat R,
CvMat t)
Algorithms for Plane-Based Pose Estimation, Peter Sturm
This assumes plane parameters n == z axis.
|
static void |
hysteresisThreshold(IplImage srcImage,
IplImage dstImage,
double highThresh,
double lowThresh,
double maxValue)
similar to hysteresis thresholding as used by the Canny edge detector
|
static void |
main(String[] args) |
static double |
median(double[] doubles) |
static <T> T |
median(T[] objects) |
static double |
norm(CvMat A)
induced norm 2
|
static double |
norm(CvMat A,
double p)
induced norm p
|
static double |
norm(CvMat A,
double p,
CvMat W)
induced norm p
|
static double |
norm(double[] v)
vector norm 2
|
static double |
norm(double[] v,
double p)
vector norm p
|
static void |
perspectiveTransform(double[] src,
double[] dst,
CvMat map_matrix)
|
static void |
perspectiveTransform(double[] src,
double[] dst,
CvMat invSrcK,
CvMat dstK,
CvMat R,
CvMat t,
CvMat n,
boolean invert) |
static double[] |
unitize(double a,
double b) |
public static final double SQRT2
public static final double FLT_EPSILON
public static final double DBL_EPSILON
public static double distanceToLine(double x1, double y1, double x2, double y2, double x3, double y3)
public static CvRect boundingRect(double[] contour, CvRect rect, int padX, int padY, int alignX, int alignY)
public static CvMat getPerspectiveTransform(double[] src, double[] dst, CvMat map_matrix)
opencv_imgproc.getPerspectiveTransform(org.bytedeco.opencv.opencv_core.Mat, org.bytedeco.opencv.opencv_core.Mat, int)
instead.public static void perspectiveTransform(double[] src, double[] dst, CvMat map_matrix)
public static CvMat getPlaneParameters(double[] src, double[] dst, CvMat invSrcK, CvMat dstK, CvMat R, CvMat t, CvMat n)
public static CvMat getPerspectiveTransform(double[] src, double[] dst, CvMat invSrcK, CvMat dstK, CvMat R, CvMat t, CvMat H)
public static void perspectiveTransform(double[] src, double[] dst, CvMat invSrcK, CvMat dstK, CvMat R, CvMat t, CvMat n, boolean invert)
public static void HtoRt(CvMat H, CvMat R, CvMat t)
public static double homogToRt(CvMat H, CvMat R1, CvMat t1, CvMat n1, CvMat R2, CvMat t2, CvMat n2)
public static double homogToRt(CvMat S, CvMat U, CvMat V, CvMat R1, CvMat t1, CvMat n1, CvMat R2, CvMat t2, CvMat n2)
public static double[] unitize(double a, double b)
public static void adaptiveThreshold(IplImage srcImage, IplImage sumImage, IplImage sqSumImage, IplImage dstImage, boolean invert, int windowMax, int windowMin, double varMultiplier, double k)
public static void hysteresisThreshold(IplImage srcImage, IplImage dstImage, double highThresh, double lowThresh, double maxValue)
public static void clamp(IplImage src, IplImage dst, double min, double max)
public static double norm(double[] v)
public static double norm(double[] v, double p)
public static double norm(CvMat A)
public static double norm(CvMat A, double p)
public static double cond(CvMat A)
public static double cond(CvMat A, double p)
public static double median(double[] doubles)
public static <T> T median(T[] objects)
public static void fractalTriangleWave(double[] line, int i, int j, double a)
public static void fractalTriangleWave(double[] line, int i, int j, double a, int roughness)
public static void main(String[] args)
Copyright © 2024. All rights reserved.