Versions in this module Expand all Collapse all v0 v0.17.0 Jul 25, 2023 Changes in this version + const BorderConstant + const BorderDefault + const BorderReflect + const BorderReflect101 + const BorderReplicate + const BorderTransparent + const BorderWrap + const ChainApproxNone + const ChainApproxSimple + const ChainApproxTC89KCOS + const ChainApproxTC89L1 + const ColorBGR555ToBGR + const ColorBGR555ToBGRA + const ColorBGR555ToGRAY + const ColorBGR555ToRGB + const ColorBGR555ToRGBA + const ColorBGR565ToBGR + const ColorBGR565ToBGRA + const ColorBGR565ToGray + const ColorBGR565ToRGB + const ColorBGR565ToRGBA + const ColorBGRAToBGR + const ColorBGRAToBGR555 + const ColorBGRAToBGR565 + const ColorBGRAToGray + const ColorBGRAToRGBA + const ColorBGRAToYUVI420 + const ColorBGRAToYUVYV12 + const ColorBGRToBGR555 + const ColorBGRToBGR565 + const ColorBGRToBGRA + const ColorBGRToGray + const ColorBGRToHLS + const ColorBGRToHLSFull + const ColorBGRToHSV + const ColorBGRToHSVFull + const ColorBGRToLab + const ColorBGRToLuv + const ColorBGRToRGB + const ColorBGRToRGBA + const ColorBGRToXYZ + const ColorBGRToYCrCb + const ColorBGRToYUV + const ColorBGRToYUVI420 + const ColorBGRToYUVYV12 + const ColorBayerBGToBGR + const ColorBayerBGToBGRA + const ColorBayerBGToBGREA + const ColorBayerBGToBGRVNG + const ColorBayerBGToGRAY + const ColorBayerGBToBGR + const ColorBayerGBToBGRA + const ColorBayerGBToBGREA + const ColorBayerGBToBGRVNG + const ColorBayerGBToGRAY + const ColorBayerGRToBGR + const ColorBayerGRToBGRA + const ColorBayerGRToBGREA + const ColorBayerGRToBGRVNG + const ColorBayerGRToGRAY + const ColorBayerRGToBGR + const ColorBayerRGToBGRA + const ColorBayerRGToBGREA + const ColorBayerRGToBGRVNG + const ColorBayerRGToGRAY + const ColorCOLORCVTMAX + const ColorGrayToBGR + const ColorGrayToBGR555 + const ColorGrayToBGR565 + const ColorGrayToBGRA + const ColorHLSToBGR + const ColorHLSToBGRFull + const ColorHLSToRGB + const ColorHLSToRGBFull + const ColorHSVToBGR + const ColorHSVToBGRFull + const ColorHSVToRGB + const ColorHSVToRGBFull + const ColorLBGRToLab + const ColorLBGRToLuv + const ColorLRGBToLab + const ColorLRGBToLuv + const ColorLabToBGR + const ColorLabToLBGR + const ColorLabToLRGB + const ColorLabToRGB + const ColorLuvToBGR + const ColorLuvToLBGR + const ColorLuvToLRGB + const ColorLuvToRGB + const ColorRGBAToBGR + const ColorRGBAToBGR555 + const ColorRGBAToBGR565 + const ColorRGBAToGray + const ColorRGBAToYUVI420 + const ColorRGBAToYUVYV12 + const ColorRGBATomRGBA + const ColorRGBToBGR555 + const ColorRGBToBGR565 + const ColorRGBToGray + const ColorRGBToHLS + const ColorRGBToHLSFull + const ColorRGBToHSV + const ColorRGBToHSVFull + const ColorRGBToLab + const ColorRGBToLuv + const ColorRGBToXYZ + const ColorRGBToYCrCb + const ColorRGBToYUV + const ColorRGBToYUVI420 + const ColorRGBToYUVYV12 + const ColorXYZToBGR + const ColorXYZToRGB + const ColorYCrCbToBGR + const ColorYCrCbToRGB + const ColorYUVToBGR + const ColorYUVToBGRAIYUV + const ColorYUVToBGRANV12 + const ColorYUVToBGRANV21 + const ColorYUVToBGRAUYVY + const ColorYUVToBGRAYUY2 + const ColorYUVToBGRAYV12 + const ColorYUVToBGRAYVYU + const ColorYUVToBGRIYUV + const ColorYUVToBGRNV12 + const ColorYUVToBGRNV21 + const ColorYUVToBGRUYVY + const ColorYUVToBGRYUY2 + const ColorYUVToBGRYV12 + const ColorYUVToBGRYVYU + const ColorYUVToGRAY420 + const ColorYUVToGRAYUYVY + const ColorYUVToGRAYYUY2 + const ColorYUVToRGB + const ColorYUVToRGBAIYUV + const ColorYUVToRGBANV12 + const ColorYUVToRGBANV21 + const ColorYUVToRGBAUYVY + const ColorYUVToRGBAYUY2 + const ColorYUVToRGBAYV12 + const ColorYUVToRGBAYVYU + const ColorYUVToRGBIYUV + const ColorYUVToRGBNV12 + const ColorYUVToRGBNV21 + const ColorYUVToRGBUYVY + const ColorYUVToRGBYUY2 + const ColorYUVToRGBYV12 + const ColorYUVToRGBYVYU + const ColormRGBAToRGBA + const ColormapAutumn + const ColormapBone + const ColormapCool + const ColormapHot + const ColormapHsv + const ColormapJet + const ColormapOcean + const ColormapParula + const ColormapPink + const ColormapRainbow + const ColormapSpring + const ColormapSummer + const ColormapWinter + const CompareEQ + const CompareGE + const CompareGT + const CompareLE + const CompareLT + const CompareNE + const Count + const CovarCols + const CovarNormal + const CovarRows + const CovarScale + const CovarScrambled + const CovarUseAvg + const DctInverse + const DctRows + const DftComplexInput + const DftComplexOutput + const DftForward + const DftInverse + const DftRealOutput + const DftRows + const DftScale + const DistC + const DistFair + const DistHuber + const DistL1 + const DistL12 + const DistL2 + const DistUser + const DistWelsch + const DrawDefault + const DrawOverOutImg + const DrawRichKeyPoints + const EPS + const FontHersheyComplex + const FontHersheyComplexSmall + const FontHersheyDuplex + const FontHersheyPlain + const FontHersheyScriptComplex + const FontHersheyScriptSimplex + const FontHersheySimplex + const FontHersheyTriplex + const FontItalic + const GoCVVersion + const HoughGradient + const HoughMultiScale + const HoughProbabilistic + const HoughStandard + const IMReadAnyColor + const IMReadAnyDepth + const IMReadColor + const IMReadGrayScale + const IMReadIgnoreOrientation + const IMReadLoadGDAL + const IMReadReducedColor2 + const IMReadReducedColor4 + const IMReadReducedColor8 + const IMReadReducedGrayscale2 + const IMReadReducedGrayscale4 + const IMReadReducedGrayscale8 + const IMReadUnchanged + const IMWriteJpegChromaQuality + const IMWriteJpegLumaQuality + const IMWriteJpegOptimize + const IMWriteJpegProgressive + const IMWriteJpegQuality + const IMWriteJpegRstInterval + const IMWritePamTupletype + const IMWritePngBilevel + const IMWritePngCompression + const IMWritePngStrategy + const IMWritePngStrategyDefault + const IMWritePngStrategyFiltered + const IMWritePngStrategyFixed + const IMWritePngStrategyHuffmanOnly + const IMWritePngStrategyRle + const IMWritePxmBinary + const IMWriteWebpQuality + const InterpolationArea + const InterpolationCubic + const InterpolationDefault + const InterpolationLanczos4 + const InterpolationLinear + const InterpolationMax + const InterpolationNearestNeighbor + const MatChannels1 + const MatChannels2 + const MatChannels3 + const MatChannels4 + const MatTypeCV16S + const MatTypeCV16SC2 + const MatTypeCV16U + const MatTypeCV32F + const MatTypeCV32S + const MatTypeCV64F + const MatTypeCV8S + const MatTypeCV8U + const MatTypeCV8UC1 + const MatTypeCV8UC2 + const MatTypeCV8UC3 + const MatTypeCV8UC4 + const MaxIter + const MorphBlackhat + const MorphClose + const MorphCross + const MorphDilate + const MorphEllipse + const MorphErode + const MorphGradient + const MorphHitmiss + const MorphOpen + const MorphRect + const MorphTophat + const NormHamming + const NormHamming2 + const NormInf + const NormL1 + const NormL2 + const NormL2Sqr + const NormMinMax + const NormRelative + const NormTypeMask + const NotDrawSinglePoints + const RetrievalCComp + const RetrievalExternal + const RetrievalFloodfill + const RetrievalList + const RetrievalTree + const Rotate180Clockwise + const Rotate90Clockwise + const Rotate90CounterClockwise + const SolveDecompositionCholesky + const SolveDecompositionEing + const SolveDecompositionLu + const SolveDecompositionNormal + const SolveDecompositionQr + const SolveDecompositionSvd + const ThresholdBinary + const ThresholdBinaryInv + const ThresholdMask + const ThresholdOtsu + const ThresholdToZero + const ThresholdToZeroInv + const ThresholdTriangle + const ThresholdTrunc + const TmCcoeff + const TmCcoeffNormed + const TmCcorr + const TmCcorrNormed + const TmSqdiff + const TmSqdiffNormed + const VideoCaptureAutoExposure + const VideoCaptureAutoFocus + const VideoCaptureBacklight + const VideoCaptureBrightness + const VideoCaptureBufferSize + const VideoCaptureContrast + const VideoCaptureConvertRGB + const VideoCaptureExposure + const VideoCaptureFOURCC + const VideoCaptureFPS + const VideoCaptureFocus + const VideoCaptureFormat + const VideoCaptureFrameCount + const VideoCaptureFrameHeight + const VideoCaptureFrameWidth + const VideoCaptureGUID + const VideoCaptureGain + const VideoCaptureGamma + const VideoCaptureHue + const VideoCaptureISOSpeed + const VideoCaptureIris + const VideoCaptureMode + const VideoCaptureMonochrome + const VideoCapturePan + const VideoCapturePosAVIRatio + const VideoCapturePosFrames + const VideoCapturePosMsec + const VideoCaptureRectification + const VideoCaptureRoll + const VideoCaptureSaturation + const VideoCaptureSettings + const VideoCaptureSharpness + const VideoCaptureTemperature + const VideoCaptureTilt + const VideoCaptureTrigger + const VideoCaptureTriggerDelay + const VideoCaptureWhiteBalanceBlueU + const VideoCaptureWhiteBalanceRedV + const VideoCaptureZoom + const WindowAutosize + const WindowFreeRatio + const WindowFullscreen + const WindowKeepRatio + const WindowNormal + const WindowPropertyAspectRatio + const WindowPropertyAutosize + const WindowPropertyFullscreen + const WindowPropertyOpenGL + const WindowPropertyVisible + var ErrEmptyByteSlice = errors.New("empty byte array") + func AbsDiff(src1, src2 Mat, dst *Mat) + func AdaptiveThreshold(src Mat, dst *Mat, maxValue float32, adaptiveTyp AdaptiveThresholdType, ...) + func Add(src1, src2 Mat, dst *Mat) + func AddWeighted(src1 Mat, alpha float64, src2 Mat, beta float64, gamma float64, dst *Mat) + func ApplyColorMap(src Mat, dst *Mat, colormapType ColormapTypes) + func ApplyCustomColorMap(src Mat, dst *Mat, customColormap Mat) + func ApproxPolyDP(curve []image.Point, epsilon float64, closed bool) (approxCurve []image.Point) + func ArcLength(curve []image.Point, isClosed bool) float64 + func ArrowedLine(img *Mat, pt1 image.Point, pt2 image.Point, c color.RGBA, thickness int) + func BatchDistance(src1 Mat, src2 Mat, dist Mat, dtype int, nidx Mat, normType int, K int, ...) + func BilateralFilter(src Mat, dst *Mat, diameter int, sigmaColor float64, sigmaSpace float64) + func BitwiseAnd(src1 Mat, src2 Mat, dst *Mat) + func BitwiseNot(src1 Mat, dst *Mat) + func BitwiseOr(src1 Mat, src2 Mat, dst *Mat) + func BitwiseXor(src1 Mat, src2 Mat, dst *Mat) + func Blur(src Mat, dst *Mat, ksize image.Point) + func BorderInterpolate(p int, len int, borderType CovarFlags) int + func BoundingRect(contour []image.Point) image.Rectangle + func BoxFilter(src Mat, dst *Mat, depth int, ksize image.Point) + func CalcCovarMatrix(samples Mat, covar *Mat, mean *Mat, flags CovarFlags, ctype int) + func CalcHist(src []Mat, channels []int, mask Mat, hist *Mat, size []int, ranges []float64, ...) + func CalcOpticalFlowFarneback(prevImg Mat, nextImg Mat, flow *Mat, pyrScale float64, levels int, winsize int, ...) + func CalcOpticalFlowPyrLK(prevImg Mat, nextImg Mat, prevPts Mat, nextPts Mat, status *Mat, err *Mat) + func Canny(src Mat, edges *Mat, t1 float32, t2 float32) + func CartToPolar(x Mat, y Mat, magnitude *Mat, angle *Mat, angleInDegrees bool) + func CheckRange(src Mat) bool + func Circle(img *Mat, center image.Point, radius int, c color.RGBA, thickness int) + func Compare(src1 Mat, src2 Mat, dst *Mat, ct CompareType) + func CompleteSymm(m Mat, lowerToUpper bool) + func ContourArea(contour []image.Point) float64 + func ConvertScaleAbs(src Mat, dst *Mat, alpha float64, beta float64) + func ConvexHull(points []image.Point, hull *Mat, clockwise bool, returnPoints bool) + func ConvexityDefects(contour []image.Point, hull Mat, result *Mat) + func CopyMakeBorder(src Mat, dst *Mat, top int, bottom int, left int, right int, bt BorderType, ...) + func CornerSubPix(img Mat, corners *Mat, winSize image.Point, zeroZone image.Point, ...) + func CountNonZero(src Mat) int + func CvtColor(src Mat, dst *Mat, code ColorConversionCode) + func DCT(src Mat, dst *Mat, flags DftFlags) + func DFT(src Mat, dst *Mat, flags DftFlags) + func Determinant(src Mat) float64 + func Dilate(src Mat, dst *Mat, kernel Mat) + func Divide(src1 Mat, src2 Mat, dst *Mat) + func DrawContours(img *Mat, contours [][]image.Point, contourIdx int, c color.RGBA, ...) + func DrawKeyPoints(src Mat, keyPoints []KeyPoint, dst *Mat, color color.RGBA, ...) + func Eigen(src Mat, eigenvalues *Mat, eigenvectors *Mat) bool + func EigenNonSymmetric(src Mat, eigenvalues *Mat, eigenvectors *Mat) + func Ellipse(img *Mat, center, axes image.Point, angle, startAngle, endAngle float64, ...) + func EqualizeHist(src Mat, dst *Mat) + func Erode(src Mat, dst *Mat, kernel Mat) + func Exp(src Mat, dst *Mat) + func ExtractChannel(src Mat, dst *Mat, coi int) + func FP16BlobFromImage(img Mat, scaleFactor float32, size image.Point, mean float32, swapRB bool, ...) []byte + func FillPoly(img *Mat, pts [][]image.Point, c color.RGBA) + func Filter2D(src Mat, dst *Mat, ddepth int, kernel Mat, anchor image.Point, delta float64, ...) + func FindContours(src Mat, mode RetrievalMode, method ContourApproximationMode) [][]image.Point + func FindNonZero(src Mat, idx *Mat) + func FisheyeUndistortImage(distorted Mat, undistorted *Mat, k, d Mat) + func FisheyeUndistortImageWithParams(distorted Mat, undistorted *Mat, k, d, knew Mat, size image.Point) + func FitLine(pts []image.Point, line *Mat, distType DistanceTypes, ...) + func Flip(src Mat, dst *Mat, flipCode int) + func GaussianBlur(src Mat, dst *Mat, ksize image.Point, sigmaX float64, sigmaY float64, ...) + func Gemm(src1, src2 Mat, alpha float64, src3 Mat, beta float64, dst *Mat, flags int) + func GetOptimalDFTSize(vecsize int) int + func GetTextSize(text string, fontFace HersheyFont, fontScale float64, thickness int) image.Point + func GetTickCount() float64 + func GetTickFrequency() float64 + func GoodFeaturesToTrack(img Mat, corners *Mat, maxCorners int, quality float64, minDist float64) + func GroupRectangles(rects []image.Rectangle, groupThreshold int, eps float64) []image.Rectangle + func GroupRectanglesWithWeights(rects []image.Rectangle, groupThreshold int, eps float64) ([]image.Rectangle, []int) + func Hconcat(src1, src2 Mat, dst *Mat) + func HoughCircles(src Mat, circles *Mat, method HoughMode, dp, minDist float64) + func HoughCirclesWithParams(src Mat, circles *Mat, method HoughMode, dp, minDist, param1, param2 float64, ...) + func HoughLines(src Mat, lines *Mat, rho float32, theta float32, threshold int) + func HoughLinesP(src Mat, lines *Mat, rho float32, theta float32, threshold int) + func HoughLinesPWithParams(src Mat, lines *Mat, rho float32, theta float32, threshold int, ...) + func IDCT(src Mat, dst *Mat, flags int) + func IDFT(src Mat, dst *Mat, flags, nonzeroRows int) + func IMEncode(fileExt FileExt, img Mat) (buf []byte, err error) + func IMEncodeWithParams(fileExt FileExt, img Mat, params []int) (buf []byte, err error) + func IMWrite(name string, img Mat) bool + func IMWriteWithParams(name string, img Mat, params []int) bool + func InRange(src, lb, ub Mat, dst *Mat) + func InRangeWithScalar(src Mat, lb, ub Scalar, dst *Mat) + func InsertChannel(src Mat, dst *Mat, coi int) + func Invert(src Mat, dst *Mat, flags int) float64 + func LUT(src, wbLUT Mat, dst *Mat) + func Laplacian(src Mat, dst *Mat, dDepth int, size int, scale float64, delta float64, ...) + func Line(img *Mat, pt1 image.Point, pt2 image.Point, c color.RGBA, thickness int) + func Log(src Mat, dst *Mat) + func LogPolar(src Mat, dst *Mat, center image.Point, m float64, flags InterpolationFlags) + func Magnitude(x, y Mat, magnitude *Mat) + func MatchTemplate(image Mat, templ Mat, result *Mat, method TemplateMatchMode, mask Mat) + func Max(src1, src2 Mat, dst *Mat) + func MeanStdDev(src Mat, dst *Mat, dstStdDev *Mat) + func MedianBlur(src Mat, dst *Mat, ksize int) + func Merge(mv []Mat, dst *Mat) + func Min(src1, src2 Mat, dst *Mat) + func MinMaxIdx(input Mat) (minVal, maxVal float32, minIdx, maxIdx int) + func MinMaxLoc(input Mat) (minVal, maxVal float32, minLoc, maxLoc image.Point) + func Moments(src Mat, binaryImage bool) map[string]float64 + func MorphologyEx(src Mat, dst *Mat, op MorphType, kernel Mat) + func MulSpectrums(a Mat, b Mat, dst *Mat, flags DftFlags) + func Multiply(src1 Mat, src2 Mat, dst *Mat) + func Norm(src1 Mat, normType NormType) float64 + func Normalize(src Mat, dst *Mat, alpha float64, beta float64, typ NormType) + func OpenCVVersion() string + func PerspectiveTransform(src Mat, dst *Mat, tm Mat) + func Phase(x, y Mat, angle *Mat, angleInDegrees bool) + func PolarToCart(magnitude Mat, degree Mat, x *Mat, y *Mat, angleInDegrees bool) + func Pow(src Mat, power float64, dst *Mat) + func PutText(img *Mat, text string, org image.Point, fontFace HersheyFont, ...) + func PyrDown(src Mat, dst *Mat, ksize image.Point, borderType BorderType) + func PyrUp(src Mat, dst *Mat, ksize image.Point, borderType BorderType) + func Rectangle(img *Mat, r image.Rectangle, c color.RGBA, thickness int) + func Reduce(src Mat, dst *Mat, dim int, rType ReduceTypes, dType int) + func Remap(src Mat, dst, map1, map2 *Mat, interpolation InterpolationFlags, ...) + func Repeat(src Mat, nY int, nX int, dst *Mat) + func Resize(src Mat, dst *Mat, sz image.Point, fx, fy float64, interp InterpolationFlags) + func Rotate(src Mat, dst *Mat, code RotateFlag) + func Scharr(src Mat, dst *Mat, dDepth int, dx int, dy int, scale float64, delta float64, ...) + func SelectROI(name string, img Mat) image.Rectangle + func SelectROIs(name string, img Mat) []image.Rectangle + func SepFilter2D(src Mat, dst *Mat, ddepth int, kernelX, kernelY Mat, anchor image.Point, ...) + func Sobel(src Mat, dst *Mat, ddepth, dx, dy, ksize int, scale, delta float64, ...) + func Solve(src1 Mat, src2 Mat, dst *Mat, flags SolveDecompositionFlags) bool + func SolveCubic(coeffs Mat, roots *Mat) int + func SolvePoly(coeffs Mat, roots *Mat, maxIters int) float64 + func Sort(src Mat, dst *Mat, flags SortFlags) + func SortIdx(src Mat, dst *Mat, flags SortFlags) + func SpatialGradient(src Mat, dx, dy *Mat, ksize int, borderType BorderType) + func SqBoxFilter(src Mat, dst *Mat, depth int, ksize image.Point) + func Subtract(src1 Mat, src2 Mat, dst *Mat) + func Threshold(src Mat, dst *Mat, thresh float32, maxvalue float32, typ ThresholdType) + func Transform(src Mat, dst *Mat, tm Mat) + func Transpose(src Mat, dst *Mat) + func Vconcat(src1, src2 Mat, dst *Mat) + func Version() string + func WaitKey(delay int) int + func WarpAffine(src Mat, dst *Mat, m Mat, sz image.Point) + func WarpAffineWithParams(src Mat, dst *Mat, m Mat, sz image.Point, flags InterpolationFlags, ...) + func WarpPerspective(src Mat, dst *Mat, m Mat, sz image.Point) + type AKAZE struct + func NewAKAZE() AKAZE + func (a *AKAZE) Close() error + func (a *AKAZE) Detect(src Mat) []KeyPoint + func (a *AKAZE) DetectAndCompute(src Mat, mask Mat) ([]KeyPoint, Mat) + type AdaptiveThresholdType int + const AdaptiveThresholdGaussian + const AdaptiveThresholdMean + type AgastFeatureDetector struct + func NewAgastFeatureDetector() AgastFeatureDetector + func (a *AgastFeatureDetector) Close() error + func (a *AgastFeatureDetector) Detect(src Mat) []KeyPoint + type BFMatcher struct + func NewBFMatcher() BFMatcher + func NewBFMatcherWithParams(normType NormType, crossCheck bool) BFMatcher + func (b *BFMatcher) Close() error + func (b *BFMatcher) KnnMatch(query, train Mat, k int) [][]DMatch + type BRISK struct + func NewBRISK() BRISK + func (b *BRISK) Close() error + func (b *BRISK) Detect(src Mat) []KeyPoint + func (b *BRISK) DetectAndCompute(src Mat, mask Mat) ([]KeyPoint, Mat) + type BackgroundSubtractorKNN struct + func NewBackgroundSubtractorKNN() BackgroundSubtractorKNN + func (k *BackgroundSubtractorKNN) Apply(src Mat, dst *Mat) + func (k *BackgroundSubtractorKNN) Close() error + type BackgroundSubtractorMOG2 struct + func NewBackgroundSubtractorMOG2() BackgroundSubtractorMOG2 + func (b *BackgroundSubtractorMOG2) Apply(src Mat, dst *Mat) + func (b *BackgroundSubtractorMOG2) Close() error + type BorderType int + type CalibFlag int32 + const CalibCheckCond + const CalibFixIntrinsic + const CalibFixK1 + const CalibFixK2 + const CalibFixK3 + const CalibFixK4 + const CalibFixPrincipalPoint + const CalibFixSkew + const CalibRecomputeExtrinsic + const CalibUseIntrinsicGuess + type CascadeClassifier struct + func NewCascadeClassifier() CascadeClassifier + func (c *CascadeClassifier) Close() error + func (c *CascadeClassifier) DetectMultiScale(img Mat) []image.Rectangle + func (c *CascadeClassifier) DetectMultiScaleWithParams(img Mat, scale float64, minNeighbors, flags int, minSize, maxSize image.Point) []image.Rectangle + func (c *CascadeClassifier) Load(name string) bool + type ColorConversionCode int + type ColormapTypes int + type CompareType int + type ContourApproximationMode int + type CovarFlags int + type DMatch struct + Distance float64 + ImgIdx int + QueryIdx int + TrainIdx int + type DftFlags int + type DistanceTypes int + type DrawMatchesFlag int + type FastFeatureDetector struct + func NewFastFeatureDetector() FastFeatureDetector + func (f *FastFeatureDetector) Close() error + func (f *FastFeatureDetector) Detect(src Mat) []KeyPoint + type FileExt string + const GIFFileExt + const JPEGFileExt + const PNGFileExt + type GFTTDetector struct + func NewGFTTDetector() GFTTDetector + func (a *GFTTDetector) Close() error + func (a *GFTTDetector) Detect(src Mat) []KeyPoint + type HOGDescriptor struct + func NewHOGDescriptor() HOGDescriptor + func (h *HOGDescriptor) Close() error + func (h *HOGDescriptor) DetectMultiScale(img Mat) []image.Rectangle + func (h *HOGDescriptor) DetectMultiScaleWithParams(img Mat, hitThresh float64, winStride, padding image.Point, ...) []image.Rectangle + func (h *HOGDescriptor) SetSVMDetector(det Mat) error + type HersheyFont int + type HoughMode int + type IMReadFlag int + type InterpolationFlags int + type KAZE struct + func NewKAZE() KAZE + func (a *KAZE) Close() error + func (a *KAZE) Detect(src Mat) []KeyPoint + func (a *KAZE) DetectAndCompute(src Mat, mask Mat) ([]KeyPoint, Mat) + type KeyPoint struct + Angle float64 + ClassID int + Octave int + Response float64 + Size float64 + X float64 + Y float64 + type Layer struct + func (l *Layer) Close() error + func (l *Layer) GetName() string + func (l *Layer) GetType() string + func (l *Layer) InputNameToIndex(name string) int + func (l *Layer) OutputNameToIndex(name string) int + type MSER struct + func NewMSER() MSER + func (a *MSER) Close() error + func (a *MSER) Detect(src Mat) []KeyPoint + type Mat struct + func BlobFromImage(img Mat, scaleFactor float64, size image.Point, mean Scalar, swapRB bool, ...) Mat + func GetBlobChannel(blob Mat, imgidx int, chnidx int) Mat + func GetPerspectiveTransform(src, dst []image.Point) Mat + func GetRotationMatrix2D(center image.Point, angle, scale float64) Mat + func GetStructuringElement(shape MorphShape, ksize image.Point) Mat + func HOGDefaultPeopleDetector() Mat + func IMDecode(buf []byte, flags IMReadFlag) (Mat, error) + func IMRead(name string, flags IMReadFlag) Mat + func ImageGrayToMatGray(img *image.Gray) (Mat, error) + func ImageToMatRGB(img image.Image) (Mat, error) + func ImageToMatRGBA(img image.Image) (Mat, error) + func NewMat() Mat + func NewMatFromBytes(rows int, cols int, mt MatType, data []byte) (Mat, error) + func NewMatFromScalar(s Scalar, mt MatType) Mat + func NewMatWithSize(rows int, cols int, mt MatType) Mat + func NewMatWithSizeFromScalar(s Scalar, rows int, cols int, mt MatType) Mat + func Split(src Mat) (mv []Mat) + func (m *Mat) AddFloat(val float32) + func (m *Mat) AddUChar(val uint8) + func (m *Mat) Channels() int + func (m *Mat) Clone() Mat + func (m *Mat) Close() error + func (m *Mat) Cols() int + func (m *Mat) ConvertFp16() Mat + func (m *Mat) ConvertTo(dst *Mat, mt MatType) + func (m *Mat) CopyTo(dst *Mat) + func (m *Mat) CopyToWithMask(dst *Mat, mask Mat) + func (m *Mat) DataPtrFloat32() ([]float32, error) + func (m *Mat) DataPtrFloat64() ([]float64, error) + func (m *Mat) DataPtrInt16() ([]int16, error) + func (m *Mat) DataPtrInt8() []int8 + func (m *Mat) DataPtrUint16() ([]uint16, error) + func (m *Mat) DataPtrUint8() []uint8 + func (m *Mat) DivideFloat(val float32) + func (m *Mat) DivideUChar(val uint8) + func (m *Mat) Empty() bool + func (m *Mat) FromPtr(rows int, cols int, mt MatType, prow int, pcol int) (Mat, error) + func (m *Mat) GetDoubleAt(row int, col int) float64 + func (m *Mat) GetDoubleAt3(x, y, z int) float64 + func (m *Mat) GetFloatAt(row int, col int) float32 + func (m *Mat) GetFloatAt3(x, y, z int) float32 + func (m *Mat) GetIntAt(row int, col int) int32 + func (m *Mat) GetIntAt3(x, y, z int) int32 + func (m *Mat) GetSCharAt(row int, col int) int8 + func (m *Mat) GetSCharAt3(x, y, z int) int8 + func (m *Mat) GetShortAt(row int, col int) int16 + func (m *Mat) GetShortAt3(x, y, z int) int16 + func (m *Mat) GetUCharAt(row int, col int) uint8 + func (m *Mat) GetUCharAt3(x, y, z int) uint8 + func (m *Mat) GetVecfAt(row int, col int) Vecf + func (m *Mat) GetVeciAt(row int, col int) Veci + func (m *Mat) Mean() Scalar + func (m *Mat) MultiplyFloat(val float32) + func (m *Mat) MultiplyUChar(val uint8) + func (m *Mat) PatchNaNs() + func (m *Mat) Ptr() C.Mat + func (m *Mat) Region(rio image.Rectangle) Mat + func (m *Mat) Reshape(cn int, rows int) Mat + func (m *Mat) Rows() int + func (m *Mat) SetDoubleAt(row int, col int, val float64) + func (m *Mat) SetDoubleAt3(x, y, z int, val float64) + func (m *Mat) SetFloatAt(row int, col int, val float32) + func (m *Mat) SetFloatAt3(x, y, z int, val float32) + func (m *Mat) SetIntAt(row int, col int, val int32) + func (m *Mat) SetIntAt3(x, y, z int, val int32) + func (m *Mat) SetSCharAt(row int, col int, val int8) + func (m *Mat) SetSCharAt3(x, y, z int, val int8) + func (m *Mat) SetShortAt(row int, col int, val int16) + func (m *Mat) SetShortAt3(x, y, z int, val int16) + func (m *Mat) SetTo(s Scalar) + func (m *Mat) SetUCharAt(row int, col int, val uint8) + func (m *Mat) SetUCharAt3(x, y, z int, val uint8) + func (m *Mat) Size() (dims []int) + func (m *Mat) Sqrt() Mat + func (m *Mat) Step() int + func (m *Mat) SubtractFloat(val float32) + func (m *Mat) SubtractUChar(val uint8) + func (m *Mat) Sum() Scalar + func (m *Mat) ToBytes() []byte + func (m *Mat) ToImage() (image.Image, error) + func (m *Mat) Total() int + func (m *Mat) Type() MatType + type MatType int + type MorphShape int + type MorphType int + type Net struct + func ReadNet(model string, config string) Net + func ReadNetFromCaffe(prototxt string, caffeModel string) Net + func ReadNetFromTensorflow(model string) Net + func (net *Net) Close() error + func (net *Net) Empty() bool + func (net *Net) Forward(outputName string) Mat + func (net *Net) ForwardLayers(outBlobNames []string) (blobs []Mat) + func (net *Net) GetLayer(layer int) Layer + func (net *Net) GetPerfProfile() float64 + func (net *Net) GetUnconnectedOutLayers() (ids []int) + func (net *Net) SetInput(blob Mat, name string) + func (net *Net) SetPreferableBackend(backend NetBackendType) error + func (net *Net) SetPreferableTarget(target NetTargetType) error + type NetBackendType int + const NetBackendDefault + const NetBackendHalide + const NetBackendOpenCV + const NetBackendOpenVINO + func ParseNetBackend(backend string) NetBackendType + type NetTargetType int + const NetTargetCPU + const NetTargetFP16 + const NetTargetFP32 + const NetTargetVPU + func ParseNetTarget(target string) NetTargetType + type NormType int + type ORB struct + func NewORB() ORB + func (o *ORB) Close() error + func (o *ORB) Detect(src Mat) []KeyPoint + func (o *ORB) DetectAndCompute(src Mat, mask Mat) ([]KeyPoint, Mat) + type ReduceTypes int + const ReduceAvg + const ReduceMax + const ReduceMin + const ReduceSum + type RetrievalMode int + type RotateFlag int + type RotatedRect struct + Angle float64 + BoundingRect image.Rectangle + Center image.Point + Contour []image.Point + Height int + Width int + func MinAreaRect(points []image.Point) RotatedRect + type Scalar struct + Val1 float64 + Val2 float64 + Val3 float64 + Val4 float64 + func GetBlobSize(blob Mat) Scalar + func NewScalar(v1 float64, v2 float64, v3 float64, v4 float64) Scalar + func Trace(src Mat) Scalar + type SimpleBlobDetector struct + func NewSimpleBlobDetector() SimpleBlobDetector + func (b *SimpleBlobDetector) Close() error + func (b *SimpleBlobDetector) Detect(src Mat) []KeyPoint + type SolveDecompositionFlags int + type SortFlags int + const SortAscending + const SortDescending + const SortEveryColumn + const SortEveryRow + type TemplateMatchMode int + type TermCriteria struct + func NewTermCriteria(typ TermCriteriaType, maxCount int, epsilon float64) TermCriteria + type TermCriteriaType int + type ThresholdType int + type Trackbar struct + func (t *Trackbar) GetPos() int + func (t *Trackbar) SetMax(pos int) + func (t *Trackbar) SetMin(pos int) + func (t *Trackbar) SetPos(pos int) + type Vecf []float32 + type Veci []int32 + type VideoCapture struct + func OpenVideoCapture(v interface{}) (*VideoCapture, error) + func VideoCaptureDevice(device int) (vc *VideoCapture, err error) + func VideoCaptureFile(uri string) (vc *VideoCapture, err error) + func (v *VideoCapture) Close() error + func (v *VideoCapture) CodecString() string + func (v *VideoCapture) Grab(skip int) + func (v *VideoCapture) IsOpened() bool + func (v *VideoCapture) Read(m *Mat) bool + func (v *VideoCapture) Set(prop VideoCaptureProperties, param float64) + func (v VideoCapture) Get(prop VideoCaptureProperties) float64 + type VideoCaptureProperties int + type VideoWriter struct + func VideoWriterFile(name string, codec string, fps float64, width int, height int, isColor bool) (vw *VideoWriter, err error) + func (vw *VideoWriter) Close() error + func (vw *VideoWriter) IsOpened() bool + func (vw *VideoWriter) Write(img Mat) error + type Window struct + func NewWindow(name string) *Window + func (w *Window) Close() error + func (w *Window) CreateTrackbar(name string, max int) *Trackbar + func (w *Window) GetWindowProperty(flag WindowPropertyFlag) float64 + func (w *Window) IMShow(img Mat) + func (w *Window) IsOpen() bool + func (w *Window) MoveWindow(x, y int) + func (w *Window) ResizeWindow(width, height int) + func (w *Window) SetWindowProperty(flag WindowPropertyFlag, value WindowFlag) + func (w *Window) SetWindowTitle(title string) + func (w *Window) WaitKey(delay int) int + type WindowFlag float32 + type WindowPropertyFlag int