cv library

Enums

Filter
ImageFormat
ImreadModes
ImWriteFlags
ImWriteFormats
ScaleToFit
enum Matrix::ScaleToFit ScaleToFit describes how Matrix is constructed to map one Rect to another.
StbiChannel
StbiDType
TypeMask
enum Matrix::TypeMask Enum of bit fields for mask returned by getType(). Used to identify the complexity of Matrix, to optimize performance.
Wrap

Constants

ADAPTIVE_THRESH_GAUSSIAN_C → const int
ADAPTIVE_THRESH_MEAN_C → const int
BORDER_CONSTANT → const int
BORDER_DEFAULT → const int
BORDER_ISOLATED → const int
BORDER_REFLECT → const int
BORDER_REFLECT101 → const int
BORDER_REFLECT_101 → const int
BORDER_REPLICATE → const int
BORDER_TRANSPARENT → const int
BORDER_WRAP → const int
CHAIN_APPROX_NONE → const int
CHAIN_APPROX_SIMPLE → const int
CHAIN_APPROX_TC89_KCOS → const int
CHAIN_APPROX_TC89_L1 → const int
COLOR_BGR2BGR555 → const int
COLOR_BGR2BGR565 → const int
COLOR_BGR2BGRA → const int
COLOR_BGR2GRAY → const int
COLOR_BGR2HLS → const int
COLOR_BGR2HLS_FULL → const int
COLOR_BGR2HSV → const int
COLOR_BGR2HSV_FULL → const int
COLOR_BGR2Lab → const int
COLOR_BGR2Luv → const int
COLOR_BGR2RGB → const int
COLOR_BGR2RGBA → const int
COLOR_BGR2XYZ → const int
COLOR_BGR2YCrCb → const int
COLOR_BGR2YUV → const int
COLOR_BGR2YUV_I420 → const int
COLOR_BGR2YUV_IYUV → const int
COLOR_BGR2YUV_YV12 → const int
COLOR_BGR5552BGR → const int
COLOR_BGR5552BGRA → const int
COLOR_BGR5552GRAY → const int
COLOR_BGR5552RGB → const int
COLOR_BGR5552RGBA → const int
COLOR_BGR5652BGR → const int
COLOR_BGR5652BGRA → const int
COLOR_BGR5652GRAY → const int
COLOR_BGR5652RGB → const int
COLOR_BGR5652RGBA → const int
COLOR_BGRA2BGR → const int
COLOR_BGRA2BGR555 → const int
COLOR_BGRA2BGR565 → const int
COLOR_BGRA2GRAY → const int
COLOR_BGRA2RGB → const int
COLOR_BGRA2RGBA → const int
COLOR_BGRA2YUV_I420 → const int
COLOR_BGRA2YUV_IYUV → const int
COLOR_BGRA2YUV_YV12 → const int
COLOR_COLORCVT_MAX → const int
COLOR_GRAY2BGR → const int
COLOR_GRAY2BGR555 → const int
COLOR_GRAY2BGR565 → const int
COLOR_GRAY2BGRA → const int
COLOR_GRAY2RGB → const int
COLOR_GRAY2RGBA → const int
COLOR_HLS2BGR → const int
COLOR_HLS2BGR_FULL → const int
COLOR_HLS2RGB → const int
COLOR_HLS2RGB_FULL → const int
COLOR_HSV2BGR → const int
COLOR_HSV2BGR_FULL → const int
COLOR_HSV2RGB → const int
COLOR_HSV2RGB_FULL → const int
COLOR_Lab2BGR → const int
COLOR_Lab2LBGR → const int
COLOR_Lab2LRGB → const int
COLOR_Lab2RGB → const int
COLOR_LBGR2Lab → const int
COLOR_LBGR2Luv → const int
COLOR_LRGB2Lab → const int
COLOR_LRGB2Luv → const int
COLOR_Luv2BGR → const int
COLOR_Luv2LBGR → const int
COLOR_Luv2LRGB → const int
COLOR_Luv2RGB → const int
COLOR_mRGBA2RGBA → const int
COLOR_RGB2BGR → const int
COLOR_RGB2BGR555 → const int
COLOR_RGB2BGR565 → const int
COLOR_RGB2BGRA → const int
COLOR_RGB2GRAY → const int
COLOR_RGB2HLS → const int
COLOR_RGB2HLS_FULL → const int
COLOR_RGB2HSV → const int
COLOR_RGB2HSV_FULL → const int
COLOR_RGB2Lab → const int
COLOR_RGB2Luv → const int
COLOR_RGB2RGBA → const int
COLOR_RGB2XYZ → const int
COLOR_RGB2YCrCb → const int
COLOR_RGB2YUV → const int
COLOR_RGB2YUV_I420 → const int
COLOR_RGB2YUV_IYUV → const int
COLOR_RGB2YUV_YV12 → const int
COLOR_RGBA2BGR → const int
COLOR_RGBA2BGR555 → const int
COLOR_RGBA2BGR565 → const int
COLOR_RGBA2BGRA → const int
COLOR_RGBA2GRAY → const int
COLOR_RGBA2mRGBA → const int
COLOR_RGBA2RGB → const int
COLOR_RGBA2YUV_I420 → const int
COLOR_RGBA2YUV_IYUV → const int
COLOR_RGBA2YUV_YV12 → const int
COLOR_XYZ2BGR → const int
COLOR_XYZ2RGB → const int
COLOR_YCrCb2BGR → const int
COLOR_YCrCb2RGB → const int
COLOR_YUV2BGR → const int
COLOR_YUV2BGR_I420 → const int
COLOR_YUV2BGR_IYUV → const int
COLOR_YUV2BGR_NV12 → const int
COLOR_YUV2BGR_NV21 → const int
COLOR_YUV2BGR_UYNV → const int
COLOR_YUV2BGR_UYVY → const int
COLOR_YUV2BGR_Y422 → const int
COLOR_YUV2BGR_YUNV → const int
COLOR_YUV2BGR_YUY2 → const int
COLOR_YUV2BGR_YUYV → const int
COLOR_YUV2BGR_YV12 → const int
COLOR_YUV2BGR_YVYU → const int
COLOR_YUV2BGRA_I420 → const int
COLOR_YUV2BGRA_IYUV → const int
COLOR_YUV2BGRA_NV12 → const int
COLOR_YUV2BGRA_NV21 → const int
COLOR_YUV2BGRA_UYNV → const int
COLOR_YUV2BGRA_UYVY → const int
COLOR_YUV2BGRA_Y422 → const int
COLOR_YUV2BGRA_YUNV → const int
COLOR_YUV2BGRA_YUY2 → const int
COLOR_YUV2BGRA_YUYV → const int
COLOR_YUV2BGRA_YV12 → const int
COLOR_YUV2BGRA_YVYU → const int
COLOR_YUV2GRAY_420 → const int
COLOR_YUV2GRAY_I420 → const int
COLOR_YUV2GRAY_IYUV → const int
COLOR_YUV2GRAY_NV12 → const int
COLOR_YUV2GRAY_NV21 → const int
COLOR_YUV2GRAY_UYNV → const int
COLOR_YUV2GRAY_UYVY → const int
COLOR_YUV2GRAY_Y422 → const int
COLOR_YUV2GRAY_YUNV → const int
COLOR_YUV2GRAY_YUY2 → const int
COLOR_YUV2GRAY_YUYV → const int
COLOR_YUV2GRAY_YV12 → const int
COLOR_YUV2GRAY_YVYU → const int
COLOR_YUV2RGB → const int
COLOR_YUV2RGB_I420 → const int
COLOR_YUV2RGB_IYUV → const int
COLOR_YUV2RGB_NV12 → const int
COLOR_YUV2RGB_NV21 → const int
COLOR_YUV2RGB_UYNV → const int
COLOR_YUV2RGB_UYVY → const int
COLOR_YUV2RGB_Y422 → const int
COLOR_YUV2RGB_YUNV → const int
COLOR_YUV2RGB_YUY2 → const int
COLOR_YUV2RGB_YUYV → const int
COLOR_YUV2RGB_YV12 → const int
COLOR_YUV2RGB_YVYU → const int
COLOR_YUV2RGBA_I420 → const int
COLOR_YUV2RGBA_IYUV → const int
COLOR_YUV2RGBA_NV12 → const int
COLOR_YUV2RGBA_NV21 → const int
COLOR_YUV2RGBA_UYNV → const int
COLOR_YUV2RGBA_UYVY → const int
COLOR_YUV2RGBA_Y422 → const int
COLOR_YUV2RGBA_YUNV → const int
COLOR_YUV2RGBA_YUY2 → const int
COLOR_YUV2RGBA_YUYV → const int
COLOR_YUV2RGBA_YV12 → const int
COLOR_YUV2RGBA_YVYU → const int
COLOR_YUV420p2BGR → const int
COLOR_YUV420p2BGRA → const int
COLOR_YUV420p2GRAY → const int
COLOR_YUV420p2RGB → const int
COLOR_YUV420p2RGBA → const int
COLOR_YUV420sp2BGR → const int
COLOR_YUV420sp2BGRA → const int
COLOR_YUV420sp2GRAY → const int
COLOR_YUV420sp2RGB → const int
COLOR_YUV420sp2RGBA → const int
DECOMP_CHOLESKY → const int
DECOMP_EIG → const int
DECOMP_LU → const int
DECOMP_NORMAL → const int
DECOMP_QR → const int
DECOMP_SVD → const int
FILLED → const int
IMREAD_ANYDEPTH → const int
IMREAD_COLOR → const int
IMREAD_COLOR_BGR → const int
IMREAD_COLOR_RGB → const int
IMREAD_GRAYSCALE → const int
INTER_AREA → const int
INTER_CUBIC → const int
INTER_LANCZOS4 → const int
INTER_LINEAR → const int
INTER_LINEAR_EXACT → const int
INTER_MAX → const int
INTER_NEAREST → const int
INTER_NEAREST_EXACT → const int
LINE_4 → const int
LINE_8 → const int
LINE_AA → const int
MORPH_CROSS → const int
MORPH_ELLIPSE → const int
MORPH_RECT → const int
NORM_INF → const int
NORM_L1 → const int
NORM_L2 → const int
NORM_MINMAX → const int
RETR_CCOMP → const int
RETR_EXTERNAL → const int
RETR_FLOODFILL → const int
RETR_LIST → const int
RETR_TREE → const int
ROTATE_180 → const int
ROTATE_90_CLOCKWISE → const int
ROTATE_90_COUNTERCLOCKWISE → const int
SOLVEPNP_ITERATIVE → const int
SOLVEPNP_SQPNP → const int
THRESH_BINARY → const int
THRESH_BINARY_INV → const int
THRESH_MASK → const int
THRESH_OTSU → const int
THRESH_TOZERO → const int
THRESH_TOZERO_INV → const int
THRESH_TRIANGLE → const int
THRESH_TRUNC → const int
WARP_FILL_OUTLIERS → const int
WARP_INVERSE_MAP → const int

Functions

adaptiveThreshold(VARP src, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C) → VARP
arrowedLine(VARP img, (double, double) pt1, (double, double) pt2, Scalar color, {int thickness = 1, int lineType = LINE_8, int shift = 0, double tipLength = 0.1}) → void
bilateralFilter(VARP src, int d, double sigmaColor, double sigmaSpace, {int borderType = BORDER_REFLECT}) → VARP
blendLinear(VARP src1, VARP src2, VARP weight1, VARP weight2) → VARP
blur(VARP src, (int, int) ksize, {int borderType = BORDER_REFLECT}) → VARP
boundingRect(VARP points) → Rect
boxFilter(VARP src, int ddepth, (int, int) ksize, {bool normalize = true, int borderType = BORDER_REFLECT}) → VARP
boxPoints(RotatedRect box) → VARP
buildImgVARP(Uint8List img, int height, int width, int channels, {int flags = IMREAD_COLOR}) → VARP
buildImgVarpYuvNV21(Uint8List img, int height, int width, {int flags = IMREAD_COLOR}) → VARP
calcHist(VecVARP images, {List<int> channels = const [], VARP? mask, List<int> histSize = const [], List<double> ranges = const [], bool accumulate = false}) → VARP
circle(VARP img, (double, double) center, int radius, Scalar color, {int thickness = 1, int lineType = LINE_8, int shift = 0}) → void
contourArea(VARP contour, {bool oriented = false}) → double
convertIphonePngToRgb({bool flagTrueIfShouldConvert = true}) → void
convexHull(VARP points, {bool clockwise = false, bool returnPoints = true}) → VecI32
cvtColor(VARP src, int code, {int dstCn = 0}) → VARP
cvtColorTwoPlane(VARP src1, VARP src2, int code) → VARP
demosaicing(VARP src, int code, {int dstCn = 0}) → VARP
dilate(VARP src, VARP kernel, {int iterations = 1, int borderType = BORDER_REFLECT}) → VARP
drawContours(VARP img, List<List<Point>> contours, int contourIdx, Scalar color, {int thickness = 1, int lineType = LINE_8}) → void
ellipse(VARP img, (double, double) center, (int, int) axes, double angle, double startAngle, double endAngle, Scalar color, {int thickness = 1, int lineType = LINE_8, int shift = 0}) → void
erode(VARP src, VARP kernel, {int iterations = 1, int borderType = BORDER_CONSTANT}) → VARP
fillPoly(VARP img, List<List<Point>> pts, Scalar color, {int lineType = LINE_8, int shift = 0, (double, double) offset = (0, 0)}) → void
filter2D(VARP src, int ddepth, VARP kernel, {double delta = 0, int borderType = BORDER_REFLECT}) → VARP
findContours(VARP img, int mode, int method, {(double, double) offset = (0, 0)}) → VecVARP
method only support CHAIN_APPROX_NONE, CHAIN_APPROX_SIMPLE
flip(VARP src, int flipCode) → VARP
GaussianBlur(VARP src, (int, int) ksize, double sigmaX, {double sigmaY = 0, int borderType = BORDER_REFLECT}) → VARP
getAffineTransform(List<Point> src, List<Point> dst) → Matrix
getGaborKernel((int, int) ksize, double sigma, double theta, double lambd, double gamma, {double psi = math.pi * 0.5}) → VARP
getGaussianKernel(int n, double sigma) → VARP
getPerspectiveTransform(List<Point> src, List<Point> dst) → Matrix
getRectSubPix(VARP image, (int, int) patchSize, (double, double) center) → VARP
getRotationMatrix2D((double, double) center, double angle, double scale) → Matrix
getStructuringElement(int shape, (int, int) ksize) → VARP
getVARPByte(VARP varp) → int
getVARPChannels(VARP varp) → int
getVARPHeight(VARP varp) → int
getVARPSize(VARP varp) → (int, int, int)
getVARPWidth(VARP varp) → int
haveImageReader(String filename) → bool
haveImageReaderFromMemory(Uint8List bytes) → bool
haveImageWriter(String filename) → bool
hdrToLdrGamma(double gamma) → void
hdrToLdrScale(double scale) → void
imdecode(Uint8List data, {int flags = IMREAD_COLOR}) → VARP
imencode(String ext, VARP src, {List<int> params = const []}) → (bool, VecU8)
imread(String filename, {int flags = IMREAD_COLOR}) → VARP
imwrite(String filename, VARP img, {List<int> params = const []}) → bool
invertAffineTransform(Matrix M) → Matrix
Laplacian(VARP src, int ddepth, {int ksize = 1, double scale = 1, double delta = 0, int borderType = BORDER_REFLECT}) → VARP
ldrToHdrGamma(double gamma) → void
ldrToHdrScale(double scale) → void
line(VARP img, (double, double) pt1, (double, double) pt2, Scalar color, {int thickness = 1, int lineType = LINE_8, int shift = 0}) → void
minAreaRect(VARP points) → RotatedRect
pyrDown(VARP src, (int, int) dstsize, {int borderType = BORDER_REFLECT}) → VARP
pyrUp(VARP src, (int, int) dstsize, {int borderType = BORDER_REFLECT}) → VARP
rectangle(VARP img, (double, double) pt1, (double, double) pt2, Scalar color, {int thickness = 1, int lineType = LINE_8, int shift = 0}) → void
remap(VARP src, VARP map1, VARP map2, int interpolation, {int borderMode = BORDER_CONSTANT, int borderValue = 0}) → VARP
src need float, NC4HW4, dims = 4
resize(VARP src, (int, int) dsize, {double fx = 0, double fy = 0, int interpolation = INTER_LINEAR, int code = -1, List<double> mean = const [], List<double> norm = const []}) → VARP
Rodrigues(VARP src) → VARP
rotate(VARP src, int mode) → VARP
Scharr(VARP src, int ddepth, int dx, int dy, {double scale = 1, double delta = 0, int borderType = BORDER_REFLECT}) → VARP
sepFilter2D(VARP src, int ddepth, VARP kernelX, VARP kernelY, {double delta = 0, int borderType = BORDER_REFLECT}) → VARP
setFlipVerticallyOnLoad({bool flagTrueIfShouldFlip = true}) → void
setUnpremultiplyOnLoad({bool flagTrueIfShouldUnpremultiply = true}) → void
Sobel(VARP src, int ddepth, int dx, int dy, {int ksize = 3, double scale = 1, double delta = 0, int borderType = BORDER_REFLECT}) → VARP
solve(VARP src1, VARP src2, {int flags = DECOMP_LU}) → (bool, VARP)
solvePnP(VARP objectPoints, VARP imagePoints, VARP cameraMatrix, VARP distCoeffs, {bool useExtrinsicGuess = false}) → (VARP, VARP)
sqrBoxFilter(VARP src, int ddepth, (int, int) ksize, {bool normalize = true, int borderType = BORDER_REFLECT}) → VARP
threshold(VARP src, double thresh, double maxval, int type) → VARP
undistortPoints(VARP src, VARP cameraMatrix, VARP distCoeffs) → VARP
warpAffine(VARP src, Matrix M, (int, int) dsize, {int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, int borderValue = 0, int code = -1, List<double> mean = const [], List<double> norm = const []}) → VARP
warpPerspective(VARP src, Matrix M, (int, int) dsize, {int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, int borderValue = 0}) → VARP