public class opencv_imgproc extends opencv_imgproc
Modifier and Type | Field and Description |
---|---|
static int |
ADAPTIVE_THRESH_GAUSSIAN_C
enum cv::AdaptiveThresholdTypes
|
static int |
ADAPTIVE_THRESH_MEAN_C
enum cv::AdaptiveThresholdTypes
|
static int |
CC_STAT_AREA
enum cv::ConnectedComponentsTypes
|
static int |
CC_STAT_HEIGHT
enum cv::ConnectedComponentsTypes
|
static int |
CC_STAT_LEFT
enum cv::ConnectedComponentsTypes
|
static int |
CC_STAT_MAX
enum cv::ConnectedComponentsTypes
|
static int |
CC_STAT_TOP
enum cv::ConnectedComponentsTypes
|
static int |
CC_STAT_WIDTH
enum cv::ConnectedComponentsTypes
|
static int |
CCL_DEFAULT
enum cv::ConnectedComponentsAlgorithmsTypes
|
static int |
CCL_GRANA
enum cv::ConnectedComponentsAlgorithmsTypes
|
static int |
CCL_WU
enum cv::ConnectedComponentsAlgorithmsTypes
|
static int |
CHAIN_APPROX_NONE
enum cv::ContourApproximationModes
|
static int |
CHAIN_APPROX_SIMPLE
enum cv::ContourApproximationModes
|
static int |
CHAIN_APPROX_TC89_KCOS
enum cv::ContourApproximationModes
|
static int |
CHAIN_APPROX_TC89_L1
enum cv::ContourApproximationModes
|
static int |
COLOR_BayerBG2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerBG2BGR_EA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerBG2BGR_VNG
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerBG2BGRA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerBG2GRAY
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerBG2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerBG2RGB_EA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerBG2RGB_VNG
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerBG2RGBA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGB2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGB2BGR_EA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGB2BGR_VNG
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGB2BGRA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGB2GRAY
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGB2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGB2RGB_EA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGB2RGB_VNG
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGB2RGBA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGR2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGR2BGR_EA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGR2BGR_VNG
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGR2BGRA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGR2GRAY
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGR2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGR2RGB_EA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGR2RGB_VNG
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerGR2RGBA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerRG2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerRG2BGR_EA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerRG2BGR_VNG
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerRG2BGRA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerRG2GRAY
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerRG2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerRG2RGB_EA
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerRG2RGB_VNG
enum cv::ColorConversionCodes
|
static int |
COLOR_BayerRG2RGBA
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2BGR555
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2BGR565
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2BGRA
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2GRAY
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2HLS
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2HLS_FULL
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2HSV
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2HSV_FULL
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2Lab
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2Luv
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2RGBA
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2XYZ
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2YCrCb
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2YUV
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2YUV_I420
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2YUV_IYUV
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR2YUV_YV12
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR5552BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR5552BGRA
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR5552GRAY
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR5552RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR5552RGBA
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR5652BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR5652BGRA
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR5652GRAY
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR5652RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_BGR5652RGBA
enum cv::ColorConversionCodes
|
static int |
COLOR_BGRA2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_BGRA2BGR555
enum cv::ColorConversionCodes
|
static int |
COLOR_BGRA2BGR565
enum cv::ColorConversionCodes
|
static int |
COLOR_BGRA2GRAY
enum cv::ColorConversionCodes
|
static int |
COLOR_BGRA2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_BGRA2RGBA
enum cv::ColorConversionCodes
|
static int |
COLOR_BGRA2YUV_I420
enum cv::ColorConversionCodes
|
static int |
COLOR_BGRA2YUV_IYUV
enum cv::ColorConversionCodes
|
static int |
COLOR_BGRA2YUV_YV12
enum cv::ColorConversionCodes
|
static int |
COLOR_COLORCVT_MAX
enum cv::ColorConversionCodes
|
static int |
COLOR_GRAY2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_GRAY2BGR555
enum cv::ColorConversionCodes
|
static int |
COLOR_GRAY2BGR565
enum cv::ColorConversionCodes
|
static int |
COLOR_GRAY2BGRA
enum cv::ColorConversionCodes
|
static int |
COLOR_GRAY2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_GRAY2RGBA
enum cv::ColorConversionCodes
|
static int |
COLOR_HLS2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_HLS2BGR_FULL
enum cv::ColorConversionCodes
|
static int |
COLOR_HLS2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_HLS2RGB_FULL
enum cv::ColorConversionCodes
|
static int |
COLOR_HSV2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_HSV2BGR_FULL
enum cv::ColorConversionCodes
|
static int |
COLOR_HSV2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_HSV2RGB_FULL
enum cv::ColorConversionCodes
|
static int |
COLOR_Lab2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_Lab2LBGR
enum cv::ColorConversionCodes
|
static int |
COLOR_Lab2LRGB
enum cv::ColorConversionCodes
|
static int |
COLOR_Lab2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_LBGR2Lab
enum cv::ColorConversionCodes
|
static int |
COLOR_LBGR2Luv
enum cv::ColorConversionCodes
|
static int |
COLOR_LRGB2Lab
enum cv::ColorConversionCodes
|
static int |
COLOR_LRGB2Luv
enum cv::ColorConversionCodes
|
static int |
COLOR_Luv2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_Luv2LBGR
enum cv::ColorConversionCodes
|
static int |
COLOR_Luv2LRGB
enum cv::ColorConversionCodes
|
static int |
COLOR_Luv2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_mRGBA2RGBA
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2BGR555
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2BGR565
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2BGRA
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2GRAY
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2HLS
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2HLS_FULL
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2HSV
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2HSV_FULL
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2Lab
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2Luv
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2RGBA
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2XYZ
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2YCrCb
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2YUV
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2YUV_I420
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2YUV_IYUV
enum cv::ColorConversionCodes
|
static int |
COLOR_RGB2YUV_YV12
enum cv::ColorConversionCodes
|
static int |
COLOR_RGBA2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_RGBA2BGR555
enum cv::ColorConversionCodes
|
static int |
COLOR_RGBA2BGR565
enum cv::ColorConversionCodes
|
static int |
COLOR_RGBA2BGRA
enum cv::ColorConversionCodes
|
static int |
COLOR_RGBA2GRAY
enum cv::ColorConversionCodes
|
static int |
COLOR_RGBA2mRGBA
enum cv::ColorConversionCodes
|
static int |
COLOR_RGBA2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_RGBA2YUV_I420
enum cv::ColorConversionCodes
|
static int |
COLOR_RGBA2YUV_IYUV
enum cv::ColorConversionCodes
|
static int |
COLOR_RGBA2YUV_YV12
enum cv::ColorConversionCodes
|
static int |
COLOR_XYZ2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_XYZ2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_YCrCb2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_YCrCb2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGR_I420
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGR_IYUV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGR_NV12
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGR_NV21
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGR_UYNV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGR_UYVY
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGR_Y422
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGR_YUNV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGR_YUY2
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGR_YUYV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGR_YV12
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGR_YVYU
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGRA_I420
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGRA_IYUV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGRA_NV12
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGRA_NV21
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGRA_UYNV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGRA_UYVY
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGRA_Y422
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGRA_YUNV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGRA_YUY2
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGRA_YUYV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGRA_YV12
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2BGRA_YVYU
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2GRAY_420
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2GRAY_I420
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2GRAY_IYUV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2GRAY_NV12
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2GRAY_NV21
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2GRAY_UYNV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2GRAY_UYVY
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2GRAY_Y422
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2GRAY_YUNV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2GRAY_YUY2
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2GRAY_YUYV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2GRAY_YV12
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2GRAY_YVYU
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGB_I420
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGB_IYUV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGB_NV12
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGB_NV21
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGB_UYNV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGB_UYVY
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGB_Y422
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGB_YUNV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGB_YUY2
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGB_YUYV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGB_YV12
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGB_YVYU
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGBA_I420
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGBA_IYUV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGBA_NV12
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGBA_NV21
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGBA_UYNV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGBA_UYVY
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGBA_Y422
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGBA_YUNV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGBA_YUY2
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGBA_YUYV
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGBA_YV12
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV2RGBA_YVYU
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV420p2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV420p2BGRA
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV420p2GRAY
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV420p2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV420p2RGBA
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV420sp2BGR
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV420sp2BGRA
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV420sp2GRAY
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV420sp2RGB
enum cv::ColorConversionCodes
|
static int |
COLOR_YUV420sp2RGBA
enum cv::ColorConversionCodes
|
static int |
COLORMAP_AUTUMN
enum cv::ColormapTypes
|
static int |
COLORMAP_BONE
enum cv::ColormapTypes
|
static int |
COLORMAP_CIVIDIS
enum cv::ColormapTypes
|
static int |
COLORMAP_COOL
enum cv::ColormapTypes
|
static int |
COLORMAP_HOT
enum cv::ColormapTypes
|
static int |
COLORMAP_HSV
enum cv::ColormapTypes
|
static int |
COLORMAP_INFERNO
enum cv::ColormapTypes
|
static int |
COLORMAP_JET
enum cv::ColormapTypes
|
static int |
COLORMAP_MAGMA
enum cv::ColormapTypes
|
static int |
COLORMAP_OCEAN
enum cv::ColormapTypes
|
static int |
COLORMAP_PARULA
enum cv::ColormapTypes
|
static int |
COLORMAP_PINK
enum cv::ColormapTypes
|
static int |
COLORMAP_PLASMA
enum cv::ColormapTypes
|
static int |
COLORMAP_RAINBOW
enum cv::ColormapTypes
|
static int |
COLORMAP_SPRING
enum cv::ColormapTypes
|
static int |
COLORMAP_SUMMER
enum cv::ColormapTypes
|
static int |
COLORMAP_TURBO
enum cv::ColormapTypes
|
static int |
COLORMAP_TWILIGHT
enum cv::ColormapTypes
|
static int |
COLORMAP_TWILIGHT_SHIFTED
enum cv::ColormapTypes
|
static int |
COLORMAP_VIRIDIS
enum cv::ColormapTypes
|
static int |
COLORMAP_WINTER
enum cv::ColormapTypes
|
static int |
CONTOURS_MATCH_I1
enum cv::ShapeMatchModes
|
static int |
CONTOURS_MATCH_I2
enum cv::ShapeMatchModes
|
static int |
CONTOURS_MATCH_I3
enum cv::ShapeMatchModes
|
static int |
CV_AA |
static int |
CV_ADAPTIVE_THRESH_GAUSSIAN_C
enum
|
static int |
CV_ADAPTIVE_THRESH_MEAN_C
enum
|
static int |
CV_BayerBG2BGR
enum
|
static int |
CV_BayerBG2BGR_EA
enum
|
static int |
CV_BayerBG2BGR_VNG
enum
|
static int |
CV_BayerBG2BGRA
enum
|
static int |
CV_BayerBG2GRAY
enum
|
static int |
CV_BayerBG2RGB
enum
|
static int |
CV_BayerBG2RGB_EA
enum
|
static int |
CV_BayerBG2RGB_VNG
enum
|
static int |
CV_BayerBG2RGBA
enum
|
static int |
CV_BayerGB2BGR
enum
|
static int |
CV_BayerGB2BGR_EA
enum
|
static int |
CV_BayerGB2BGR_VNG
enum
|
static int |
CV_BayerGB2BGRA
enum
|
static int |
CV_BayerGB2GRAY
enum
|
static int |
CV_BayerGB2RGB
enum
|
static int |
CV_BayerGB2RGB_EA
enum
|
static int |
CV_BayerGB2RGB_VNG
enum
|
static int |
CV_BayerGB2RGBA
enum
|
static int |
CV_BayerGR2BGR
enum
|
static int |
CV_BayerGR2BGR_EA
enum
|
static int |
CV_BayerGR2BGR_VNG
enum
|
static int |
CV_BayerGR2BGRA
enum
|
static int |
CV_BayerGR2GRAY
enum
|
static int |
CV_BayerGR2RGB
enum
|
static int |
CV_BayerGR2RGB_EA
enum
|
static int |
CV_BayerGR2RGB_VNG
enum
|
static int |
CV_BayerGR2RGBA
enum
|
static int |
CV_BayerRG2BGR
enum
|
static int |
CV_BayerRG2BGR_EA
enum
|
static int |
CV_BayerRG2BGR_VNG
enum
|
static int |
CV_BayerRG2BGRA
enum
|
static int |
CV_BayerRG2GRAY
enum
|
static int |
CV_BayerRG2RGB
enum
|
static int |
CV_BayerRG2RGB_EA
enum
|
static int |
CV_BayerRG2RGB_VNG
enum
|
static int |
CV_BayerRG2RGBA
enum
|
static int |
CV_BGR2BGR555
enum
|
static int |
CV_BGR2BGR565
enum
|
static int |
CV_BGR2BGRA
enum
|
static int |
CV_BGR2GRAY
enum
|
static int |
CV_BGR2HLS
enum
|
static int |
CV_BGR2HLS_FULL
enum
|
static int |
CV_BGR2HSV
enum
|
static int |
CV_BGR2HSV_FULL
enum
|
static int |
CV_BGR2Lab
enum
|
static int |
CV_BGR2Luv
enum
|
static int |
CV_BGR2RGB
enum
|
static int |
CV_BGR2RGBA
enum
|
static int |
CV_BGR2XYZ
enum
|
static int |
CV_BGR2YCrCb
enum
|
static int |
CV_BGR2YUV
enum
|
static int |
CV_BGR2YUV_I420
enum
|
static int |
CV_BGR2YUV_IYUV
enum
|
static int |
CV_BGR2YUV_YV12
enum
|
static int |
CV_BGR5552BGR
enum
|
static int |
CV_BGR5552BGRA
enum
|
static int |
CV_BGR5552GRAY
enum
|
static int |
CV_BGR5552RGB
enum
|
static int |
CV_BGR5552RGBA
enum
|
static int |
CV_BGR5652BGR
enum
|
static int |
CV_BGR5652BGRA
enum
|
static int |
CV_BGR5652GRAY
enum
|
static int |
CV_BGR5652RGB
enum
|
static int |
CV_BGR5652RGBA
enum
|
static int |
CV_BGRA2BGR
enum
|
static int |
CV_BGRA2BGR555
enum
|
static int |
CV_BGRA2BGR565
enum
|
static int |
CV_BGRA2GRAY
enum
|
static int |
CV_BGRA2RGB
enum
|
static int |
CV_BGRA2RGBA
enum
|
static int |
CV_BGRA2YUV_I420
enum
|
static int |
CV_BGRA2YUV_IYUV
enum
|
static int |
CV_BGRA2YUV_YV12
enum
|
static int |
CV_BILATERAL
enum SmoothMethod_c
|
static int |
CV_BLUR
enum SmoothMethod_c
|
static int |
CV_BLUR_NO_SCALE
enum SmoothMethod_c
|
static int |
CV_CANNY_L2_GRADIENT
enum
|
static int |
CV_CHAIN_APPROX_NONE
enum
|
static int |
CV_CHAIN_APPROX_SIMPLE
enum
|
static int |
CV_CHAIN_APPROX_TC89_KCOS
enum
|
static int |
CV_CHAIN_APPROX_TC89_L1
enum
|
static int |
CV_CHAIN_CODE
enum
|
static int |
CV_CLOCKWISE
enum
|
static int |
CV_COLORCVT_MAX
enum
|
static int |
CV_COMP_BHATTACHARYYA
enum
|
static int |
CV_COMP_CHISQR
enum
|
static int |
CV_COMP_CHISQR_ALT
enum
|
static int |
CV_COMP_CORREL
enum
|
static int |
CV_COMP_HELLINGER
enum
|
static int |
CV_COMP_INTERSECT
enum
|
static int |
CV_COMP_KL_DIV
enum
|
static int |
CV_CONTOURS_MATCH_I1
enum
|
static int |
CV_CONTOURS_MATCH_I2
enum
|
static int |
CV_CONTOURS_MATCH_I3
enum
|
static int |
CV_COUNTER_CLOCKWISE
enum
|
static int |
CV_DIST_C
enum
|
static int |
CV_DIST_FAIR
enum
|
static int |
CV_DIST_HUBER
enum
|
static int |
CV_DIST_L1
enum
|
static int |
CV_DIST_L12
enum
|
static int |
CV_DIST_L2
enum
|
static int |
CV_DIST_LABEL_CCOMP
enum
|
static int |
CV_DIST_LABEL_PIXEL
enum
|
static int |
CV_DIST_MASK_3
enum
|
static int |
CV_DIST_MASK_5
enum
|
static int |
CV_DIST_MASK_PRECISE
enum
|
static int |
CV_DIST_USER
enum
|
static int |
CV_DIST_WELSCH
enum
|
static int |
CV_FILLED
\
Drawing functions work with images/matrices of arbitrary type.
|
static int |
CV_FLOODFILL_FIXED_RANGE
enum
|
static int |
CV_FLOODFILL_MASK_ONLY
enum
|
static int |
CV_FONT_HERSHEY_COMPLEX |
static int |
CV_FONT_HERSHEY_COMPLEX_SMALL |
static int |
CV_FONT_HERSHEY_DUPLEX |
static int |
CV_FONT_HERSHEY_PLAIN |
static int |
CV_FONT_HERSHEY_SCRIPT_COMPLEX |
static int |
CV_FONT_HERSHEY_SCRIPT_SIMPLEX |
static int |
CV_FONT_HERSHEY_SIMPLEX |
static int |
CV_FONT_HERSHEY_TRIPLEX |
static int |
CV_FONT_ITALIC |
static int |
CV_FONT_VECTOR0 |
static int |
CV_GAUSSIAN
enum SmoothMethod_c
|
static int |
CV_GAUSSIAN_5x5
enum
|
static int |
CV_GRAY2BGR
enum
|
static int |
CV_GRAY2BGR555
enum
|
static int |
CV_GRAY2BGR565
enum
|
static int |
CV_GRAY2BGRA
enum
|
static int |
CV_GRAY2RGB
enum
|
static int |
CV_GRAY2RGBA
enum
|
static int |
CV_HLS2BGR
enum
|
static int |
CV_HLS2BGR_FULL
enum
|
static int |
CV_HLS2RGB
enum
|
static int |
CV_HLS2RGB_FULL
enum
|
static int |
CV_HOUGH_GRADIENT
enum
|
static int |
CV_HOUGH_MULTI_SCALE
enum
|
static int |
CV_HOUGH_PROBABILISTIC
enum
|
static int |
CV_HOUGH_STANDARD
enum
|
static int |
CV_HSV2BGR
enum
|
static int |
CV_HSV2BGR_FULL
enum
|
static int |
CV_HSV2RGB
enum
|
static int |
CV_HSV2RGB_FULL
enum
|
static int |
CV_INTER_AREA
enum
|
static int |
CV_INTER_CUBIC
enum
|
static int |
CV_INTER_LANCZOS4
enum
|
static int |
CV_INTER_LINEAR
enum
|
static int |
CV_INTER_NN
enum
|
static int |
CV_Lab2BGR
enum
|
static int |
CV_Lab2LBGR
enum
|
static int |
CV_Lab2LRGB
enum
|
static int |
CV_Lab2RGB
enum
|
static int |
CV_LBGR2Lab
enum
|
static int |
CV_LBGR2Luv
enum
|
static int |
CV_LINK_RUNS
enum
|
static int |
CV_LRGB2Lab
enum
|
static int |
CV_LRGB2Luv
enum
|
static int |
CV_Luv2BGR
enum
|
static int |
CV_Luv2LBGR
enum
|
static int |
CV_Luv2LRGB
enum
|
static int |
CV_Luv2RGB
enum
|
static int |
CV_MAX_SOBEL_KSIZE
enum
|
static int |
CV_MEDIAN
enum SmoothMethod_c
|
static int |
CV_MOP_BLACKHAT
enum
|
static int |
CV_MOP_CLOSE
enum
|
static int |
CV_MOP_DILATE
enum
|
static int |
CV_MOP_ERODE
enum
|
static int |
CV_MOP_GRADIENT
enum
|
static int |
CV_MOP_OPEN
enum
|
static int |
CV_MOP_TOPHAT
enum
|
static int |
CV_mRGBA2RGBA
enum
|
static int |
CV_POLY_APPROX_DP
enum
|
static int |
CV_RETR_CCOMP
enum
|
static int |
CV_RETR_EXTERNAL
enum
|
static int |
CV_RETR_FLOODFILL
enum
|
static int |
CV_RETR_LIST
enum
|
static int |
CV_RETR_TREE
enum
|
static int |
CV_RGB2BGR
enum
|
static int |
CV_RGB2BGR555
enum
|
static int |
CV_RGB2BGR565
enum
|
static int |
CV_RGB2BGRA
enum
|
static int |
CV_RGB2GRAY
enum
|
static int |
CV_RGB2HLS
enum
|
static int |
CV_RGB2HLS_FULL
enum
|
static int |
CV_RGB2HSV
enum
|
static int |
CV_RGB2HSV_FULL
enum
|
static int |
CV_RGB2Lab
enum
|
static int |
CV_RGB2Luv
enum
|
static int |
CV_RGB2RGBA
enum
|
static int |
CV_RGB2XYZ
enum
|
static int |
CV_RGB2YCrCb
enum
|
static int |
CV_RGB2YUV
enum
|
static int |
CV_RGB2YUV_I420
enum
|
static int |
CV_RGB2YUV_IYUV
enum
|
static int |
CV_RGB2YUV_YV12
enum
|
static int |
CV_RGBA2BGR
enum
|
static int |
CV_RGBA2BGR555
enum
|
static int |
CV_RGBA2BGR565
enum
|
static int |
CV_RGBA2BGRA
enum
|
static int |
CV_RGBA2GRAY
enum
|
static int |
CV_RGBA2mRGBA
enum
|
static int |
CV_RGBA2RGB
enum
|
static int |
CV_RGBA2YUV_I420
enum
|
static int |
CV_RGBA2YUV_IYUV
enum
|
static int |
CV_RGBA2YUV_YV12
enum
|
static int |
CV_SCHARR
enum
|
static int |
CV_SHAPE_CROSS
enum MorphShapes_c
|
static int |
CV_SHAPE_CUSTOM
enum MorphShapes_c
|
static int |
CV_SHAPE_ELLIPSE
enum MorphShapes_c
|
static int |
CV_SHAPE_RECT
enum MorphShapes_c
|
static int |
CV_THRESH_BINARY
enum
|
static int |
CV_THRESH_BINARY_INV
enum
|
static int |
CV_THRESH_MASK
enum
|
static int |
CV_THRESH_OTSU
enum
|
static int |
CV_THRESH_TOZERO
enum
|
static int |
CV_THRESH_TOZERO_INV
enum
|
static int |
CV_THRESH_TRIANGLE
enum
|
static int |
CV_THRESH_TRUNC
enum
|
static int |
CV_TM_CCOEFF
enum
|
static int |
CV_TM_CCOEFF_NORMED
enum
|
static int |
CV_TM_CCORR
enum
|
static int |
CV_TM_CCORR_NORMED
enum
|
static int |
CV_TM_SQDIFF
enum
|
static int |
CV_TM_SQDIFF_NORMED
enum
|
static int |
CV_WARP_FILL_OUTLIERS
enum
|
static int |
CV_WARP_INVERSE_MAP
enum
|
static int |
CV_XYZ2BGR
enum
|
static int |
CV_XYZ2RGB
enum
|
static int |
CV_YCrCb2BGR
enum
|
static int |
CV_YCrCb2RGB
enum
|
static int |
CV_YUV2BGR
enum
|
static int |
CV_YUV2BGR_I420
enum
|
static int |
CV_YUV2BGR_IYUV
enum
|
static int |
CV_YUV2BGR_NV12
enum
|
static int |
CV_YUV2BGR_NV21
enum
|
static int |
CV_YUV2BGR_UYNV
enum
|
static int |
CV_YUV2BGR_UYVY
enum
|
static int |
CV_YUV2BGR_Y422
enum
|
static int |
CV_YUV2BGR_YUNV
enum
|
static int |
CV_YUV2BGR_YUY2
enum
|
static int |
CV_YUV2BGR_YUYV
enum
|
static int |
CV_YUV2BGR_YV12
enum
|
static int |
CV_YUV2BGR_YVYU
enum
|
static int |
CV_YUV2BGRA_I420
enum
|
static int |
CV_YUV2BGRA_IYUV
enum
|
static int |
CV_YUV2BGRA_NV12
enum
|
static int |
CV_YUV2BGRA_NV21
enum
|
static int |
CV_YUV2BGRA_UYNV
enum
|
static int |
CV_YUV2BGRA_UYVY
enum
|
static int |
CV_YUV2BGRA_Y422
enum
|
static int |
CV_YUV2BGRA_YUNV
enum
|
static int |
CV_YUV2BGRA_YUY2
enum
|
static int |
CV_YUV2BGRA_YUYV
enum
|
static int |
CV_YUV2BGRA_YV12
enum
|
static int |
CV_YUV2BGRA_YVYU
enum
|
static int |
CV_YUV2GRAY_420
enum
|
static int |
CV_YUV2GRAY_I420
enum
|
static int |
CV_YUV2GRAY_IYUV
enum
|
static int |
CV_YUV2GRAY_NV12
enum
|
static int |
CV_YUV2GRAY_NV21
enum
|
static int |
CV_YUV2GRAY_UYNV
enum
|
static int |
CV_YUV2GRAY_UYVY
enum
|
static int |
CV_YUV2GRAY_Y422
enum
|
static int |
CV_YUV2GRAY_YUNV
enum
|
static int |
CV_YUV2GRAY_YUY2
enum
|
static int |
CV_YUV2GRAY_YUYV
enum
|
static int |
CV_YUV2GRAY_YV12
enum
|
static int |
CV_YUV2GRAY_YVYU
enum
|
static int |
CV_YUV2RGB
enum
|
static int |
CV_YUV2RGB_I420
enum
|
static int |
CV_YUV2RGB_IYUV
enum
|
static int |
CV_YUV2RGB_NV12
enum
|
static int |
CV_YUV2RGB_NV21
enum
|
static int |
CV_YUV2RGB_UYNV
enum
|
static int |
CV_YUV2RGB_UYVY
enum
|
static int |
CV_YUV2RGB_Y422
enum
|
static int |
CV_YUV2RGB_YUNV
enum
|
static int |
CV_YUV2RGB_YUY2
enum
|
static int |
CV_YUV2RGB_YUYV
enum
|
static int |
CV_YUV2RGB_YV12
enum
|
static int |
CV_YUV2RGB_YVYU
enum
|
static int |
CV_YUV2RGBA_I420
enum
|
static int |
CV_YUV2RGBA_IYUV
enum
|
static int |
CV_YUV2RGBA_NV12
enum
|
static int |
CV_YUV2RGBA_NV21
enum
|
static int |
CV_YUV2RGBA_UYNV
enum
|
static int |
CV_YUV2RGBA_UYVY
enum
|
static int |
CV_YUV2RGBA_Y422
enum
|
static int |
CV_YUV2RGBA_YUNV
enum
|
static int |
CV_YUV2RGBA_YUY2
enum
|
static int |
CV_YUV2RGBA_YUYV
enum
|
static int |
CV_YUV2RGBA_YV12
enum
|
static int |
CV_YUV2RGBA_YVYU
enum
|
static int |
CV_YUV420p2BGR
enum
|
static int |
CV_YUV420p2BGRA
enum
|
static int |
CV_YUV420p2GRAY
enum
|
static int |
CV_YUV420p2RGB
enum
|
static int |
CV_YUV420p2RGBA
enum
|
static int |
CV_YUV420sp2BGR
enum
|
static int |
CV_YUV420sp2BGRA
enum
|
static int |
CV_YUV420sp2GRAY
enum
|
static int |
CV_YUV420sp2RGB
enum
|
static int |
CV_YUV420sp2RGBA
enum
|
static int |
DIST_C
enum cv::DistanceTypes
|
static int |
DIST_FAIR
enum cv::DistanceTypes
|
static int |
DIST_HUBER
enum cv::DistanceTypes
|
static int |
DIST_L1
enum cv::DistanceTypes
|
static int |
DIST_L12
enum cv::DistanceTypes
|
static int |
DIST_L2
enum cv::DistanceTypes
|
static int |
DIST_LABEL_CCOMP
enum cv::DistanceTransformLabelTypes
|
static int |
DIST_LABEL_PIXEL
enum cv::DistanceTransformLabelTypes
|
static int |
DIST_MASK_3
enum cv::DistanceTransformMasks
|
static int |
DIST_MASK_5
enum cv::DistanceTransformMasks
|
static int |
DIST_MASK_PRECISE
enum cv::DistanceTransformMasks
|
static int |
DIST_USER
enum cv::DistanceTypes
|
static int |
DIST_WELSCH
enum cv::DistanceTypes
|
static int |
FILLED
enum cv::LineTypes
|
static int |
FILTER_SCHARR
enum cv::SpecialFilter
|
static int |
FLOODFILL_FIXED_RANGE
enum cv::FloodFillFlags
|
static int |
FLOODFILL_MASK_ONLY
enum cv::FloodFillFlags
|
static int |
FONT_HERSHEY_COMPLEX
enum cv::HersheyFonts
|
static int |
FONT_HERSHEY_COMPLEX_SMALL
enum cv::HersheyFonts
|
static int |
FONT_HERSHEY_DUPLEX
enum cv::HersheyFonts
|
static int |
FONT_HERSHEY_PLAIN
enum cv::HersheyFonts
|
static int |
FONT_HERSHEY_SCRIPT_COMPLEX
enum cv::HersheyFonts
|
static int |
FONT_HERSHEY_SCRIPT_SIMPLEX
enum cv::HersheyFonts
|
static int |
FONT_HERSHEY_SIMPLEX
enum cv::HersheyFonts
|
static int |
FONT_HERSHEY_TRIPLEX
enum cv::HersheyFonts
|
static int |
FONT_ITALIC
enum cv::HersheyFonts
|
static int |
GC_BGD
enum cv::GrabCutClasses
|
static int |
GC_EVAL
enum cv::GrabCutModes
|
static int |
GC_EVAL_FREEZE_MODEL
enum cv::GrabCutModes
|
static int |
GC_FGD
enum cv::GrabCutClasses
|
static int |
GC_INIT_WITH_MASK
enum cv::GrabCutModes
|
static int |
GC_INIT_WITH_RECT
enum cv::GrabCutModes
|
static int |
GC_PR_BGD
enum cv::GrabCutClasses
|
static int |
GC_PR_FGD
enum cv::GrabCutClasses
|
static int |
HISTCMP_BHATTACHARYYA
enum cv::HistCompMethods
|
static int |
HISTCMP_CHISQR
enum cv::HistCompMethods
|
static int |
HISTCMP_CHISQR_ALT
enum cv::HistCompMethods
|
static int |
HISTCMP_CORREL
enum cv::HistCompMethods
|
static int |
HISTCMP_HELLINGER
enum cv::HistCompMethods
|
static int |
HISTCMP_INTERSECT
enum cv::HistCompMethods
|
static int |
HISTCMP_KL_DIV
enum cv::HistCompMethods
|
static int |
HOUGH_GRADIENT
enum cv::HoughModes
|
static int |
HOUGH_GRADIENT_ALT
enum cv::HoughModes
|
static int |
HOUGH_MULTI_SCALE
enum cv::HoughModes
|
static int |
HOUGH_PROBABILISTIC
enum cv::HoughModes
|
static int |
HOUGH_STANDARD
enum cv::HoughModes
|
static int |
INTER_AREA
enum cv::InterpolationFlags
|
static int |
INTER_BITS
enum cv::InterpolationMasks
|
static int |
INTER_BITS2
enum cv::InterpolationMasks
|
static int |
INTER_CUBIC
enum cv::InterpolationFlags
|
static int |
INTER_LANCZOS4
enum cv::InterpolationFlags
|
static int |
INTER_LINEAR
enum cv::InterpolationFlags
|
static int |
INTER_LINEAR_EXACT
enum cv::InterpolationFlags
|
static int |
INTER_MAX
enum cv::InterpolationFlags
|
static int |
INTER_NEAREST
enum cv::InterpolationFlags
|
static int |
INTER_TAB_SIZE
enum cv::InterpolationMasks
|
static int |
INTER_TAB_SIZE2
enum cv::InterpolationMasks
|
static int |
INTERSECT_FULL
enum cv::RectanglesIntersectTypes
|
static int |
INTERSECT_NONE
enum cv::RectanglesIntersectTypes
|
static int |
INTERSECT_PARTIAL
enum cv::RectanglesIntersectTypes
|
static int |
LINE_4
enum cv::LineTypes
|
static int |
LINE_8
enum cv::LineTypes
|
static int |
LINE_AA
enum cv::LineTypes
|
static int |
LSD_REFINE_ADV
enum cv::LineSegmentDetectorModes
|
static int |
LSD_REFINE_NONE
enum cv::LineSegmentDetectorModes
|
static int |
LSD_REFINE_STD
enum cv::LineSegmentDetectorModes
|
static int |
MARKER_CROSS
enum cv::MarkerTypes
|
static int |
MARKER_DIAMOND
enum cv::MarkerTypes
|
static int |
MARKER_SQUARE
enum cv::MarkerTypes
|
static int |
MARKER_STAR
enum cv::MarkerTypes
|
static int |
MARKER_TILTED_CROSS
enum cv::MarkerTypes
|
static int |
MARKER_TRIANGLE_DOWN
enum cv::MarkerTypes
|
static int |
MARKER_TRIANGLE_UP
enum cv::MarkerTypes
|
static int |
MORPH_BLACKHAT
enum cv::MorphTypes
|
static int |
MORPH_CLOSE
enum cv::MorphTypes
|
static int |
MORPH_CROSS
enum cv::MorphShapes
|
static int |
MORPH_DILATE
enum cv::MorphTypes
|
static int |
MORPH_ELLIPSE
enum cv::MorphShapes
|
static int |
MORPH_ERODE
enum cv::MorphTypes
|
static int |
MORPH_GRADIENT
enum cv::MorphTypes
|
static int |
MORPH_HITMISS
enum cv::MorphTypes
|
static int |
MORPH_OPEN
enum cv::MorphTypes
|
static int |
MORPH_RECT
enum cv::MorphShapes
|
static int |
MORPH_TOPHAT
enum cv::MorphTypes
|
static int |
RETR_CCOMP
enum cv::RetrievalModes
|
static int |
RETR_EXTERNAL
enum cv::RetrievalModes
|
static int |
RETR_FLOODFILL
enum cv::RetrievalModes
|
static int |
RETR_LIST
enum cv::RetrievalModes
|
static int |
RETR_TREE
enum cv::RetrievalModes
|
static int |
THRESH_BINARY
enum cv::ThresholdTypes
|
static int |
THRESH_BINARY_INV
enum cv::ThresholdTypes
|
static int |
THRESH_MASK
enum cv::ThresholdTypes
|
static int |
THRESH_OTSU
enum cv::ThresholdTypes
|
static int |
THRESH_TOZERO
enum cv::ThresholdTypes
|
static int |
THRESH_TOZERO_INV
enum cv::ThresholdTypes
|
static int |
THRESH_TRIANGLE
enum cv::ThresholdTypes
|
static int |
THRESH_TRUNC
enum cv::ThresholdTypes
|
static int |
TM_CCOEFF
enum cv::TemplateMatchModes
|
static int |
TM_CCOEFF_NORMED
enum cv::TemplateMatchModes
|
static int |
TM_CCORR
enum cv::TemplateMatchModes
|
static int |
TM_CCORR_NORMED
enum cv::TemplateMatchModes
|
static int |
TM_SQDIFF
enum cv::TemplateMatchModes
|
static int |
TM_SQDIFF_NORMED
enum cv::TemplateMatchModes
|
static int |
WARP_FILL_OUTLIERS
enum cv::InterpolationFlags
|
static int |
WARP_INVERSE_MAP
enum cv::InterpolationFlags
|
static int |
WARP_POLAR_LINEAR
enum cv::WarpPolarMode
|
static int |
WARP_POLAR_LOG
enum cv::WarpPolarMode
|
Constructor and Description |
---|
opencv_imgproc() |
Modifier and Type | Method and Description |
---|---|
static void |
accumulate(GpuMat src,
GpuMat dst) |
static void |
accumulate(GpuMat src,
GpuMat dst,
GpuMat mask) |
static void |
accumulate(Mat src,
Mat dst) |
static void |
accumulate(Mat src,
Mat dst,
Mat mask)
\} imgproc_misc
|
static void |
accumulate(UMat src,
UMat dst) |
static void |
accumulate(UMat src,
UMat dst,
UMat mask) |
static void |
accumulateProduct(GpuMat src1,
GpuMat src2,
GpuMat dst) |
static void |
accumulateProduct(GpuMat src1,
GpuMat src2,
GpuMat dst,
GpuMat mask) |
static void |
accumulateProduct(Mat src1,
Mat src2,
Mat dst) |
static void |
accumulateProduct(Mat src1,
Mat src2,
Mat dst,
Mat mask)
\brief Adds the per-element product of two input images to the accumulator image.
|
static void |
accumulateProduct(UMat src1,
UMat src2,
UMat dst) |
static void |
accumulateProduct(UMat src1,
UMat src2,
UMat dst,
UMat mask) |
static void |
accumulateSquare(GpuMat src,
GpuMat dst) |
static void |
accumulateSquare(GpuMat src,
GpuMat dst,
GpuMat mask) |
static void |
accumulateSquare(Mat src,
Mat dst) |
static void |
accumulateSquare(Mat src,
Mat dst,
Mat mask)
\brief Adds the square of a source image to the accumulator image.
|
static void |
accumulateSquare(UMat src,
UMat dst) |
static void |
accumulateSquare(UMat src,
UMat dst,
UMat mask) |
static void |
accumulateWeighted(GpuMat src,
GpuMat dst,
double alpha) |
static void |
accumulateWeighted(GpuMat src,
GpuMat dst,
double alpha,
GpuMat mask) |
static void |
accumulateWeighted(Mat src,
Mat dst,
double alpha) |
static void |
accumulateWeighted(Mat src,
Mat dst,
double alpha,
Mat mask)
\brief Updates a running average.
|
static void |
accumulateWeighted(UMat src,
UMat dst,
double alpha) |
static void |
accumulateWeighted(UMat src,
UMat dst,
double alpha,
UMat mask) |
static void |
adaptiveThreshold(GpuMat src,
GpuMat dst,
double maxValue,
int adaptiveMethod,
int thresholdType,
int blockSize,
double C) |
static void |
adaptiveThreshold(Mat src,
Mat dst,
double maxValue,
int adaptiveMethod,
int thresholdType,
int blockSize,
double C)
\brief Applies an adaptive threshold to an array.
|
static void |
adaptiveThreshold(UMat src,
UMat dst,
double maxValue,
int adaptiveMethod,
int thresholdType,
int blockSize,
double C) |
static void |
applyColorMap(GpuMat src,
GpuMat dst,
GpuMat userColor) |
static void |
applyColorMap(GpuMat src,
GpuMat dst,
int colormap) |
static void |
applyColorMap(Mat src,
Mat dst,
int colormap)
\brief Applies a GNU Octave/MATLAB equivalent colormap on a given image.
|
static void |
applyColorMap(Mat src,
Mat dst,
Mat userColor)
\brief Applies a user colormap on a given image.
|
static void |
applyColorMap(UMat src,
UMat dst,
int colormap) |
static void |
applyColorMap(UMat src,
UMat dst,
UMat userColor) |
static void |
approxPolyDP(GpuMat curve,
GpuMat approxCurve,
double epsilon,
boolean closed) |
static void |
approxPolyDP(Mat curve,
Mat approxCurve,
double epsilon,
boolean closed)
\brief Approximates a polygonal curve(s) with the specified precision.
|
static void |
approxPolyDP(UMat curve,
UMat approxCurve,
double epsilon,
boolean closed) |
static double |
arcLength(GpuMat curve,
boolean closed) |
static double |
arcLength(Mat curve,
boolean closed)
\brief Calculates a contour perimeter or a curve length.
|
static double |
arcLength(UMat curve,
boolean closed) |
static void |
arrowedLine(GpuMat img,
Point pt1,
Point pt2,
Scalar color) |
static void |
arrowedLine(GpuMat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int line_type,
int shift,
double tipLength) |
static void |
arrowedLine(Mat img,
Point pt1,
Point pt2,
Scalar color) |
static void |
arrowedLine(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int line_type,
int shift,
double tipLength)
\brief Draws a arrow segment pointing from the first point to the second one.
|
static void |
arrowedLine(UMat img,
Point pt1,
Point pt2,
Scalar color) |
static void |
arrowedLine(UMat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int line_type,
int shift,
double tipLength) |
static void |
bilateralFilter(GpuMat src,
GpuMat dst,
int d,
double sigmaColor,
double sigmaSpace) |
static void |
bilateralFilter(GpuMat src,
GpuMat dst,
int d,
double sigmaColor,
double sigmaSpace,
int borderType) |
static void |
bilateralFilter(Mat src,
Mat dst,
int d,
double sigmaColor,
double sigmaSpace) |
static void |
bilateralFilter(Mat src,
Mat dst,
int d,
double sigmaColor,
double sigmaSpace,
int borderType)
\brief Applies the bilateral filter to an image.
|
static void |
bilateralFilter(UMat src,
UMat dst,
int d,
double sigmaColor,
double sigmaSpace) |
static void |
bilateralFilter(UMat src,
UMat dst,
int d,
double sigmaColor,
double sigmaSpace,
int borderType) |
static void |
blendLinear(GpuMat src1,
GpuMat src2,
GpuMat weights1,
GpuMat weights2,
GpuMat dst) |
static void |
blendLinear(Mat src1,
Mat src2,
Mat weights1,
Mat weights2,
Mat dst)
Performs linear blending of two images:
|
static void |
blendLinear(UMat src1,
UMat src2,
UMat weights1,
UMat weights2,
UMat dst) |
static void |
blur(GpuMat src,
GpuMat dst,
Size ksize) |
static void |
blur(GpuMat src,
GpuMat dst,
Size ksize,
Point anchor,
int borderType) |
static void |
blur(Mat src,
Mat dst,
Size ksize) |
static void |
blur(Mat src,
Mat dst,
Size ksize,
Point anchor,
int borderType)
\brief Blurs an image using the normalized box filter.
|
static void |
blur(UMat src,
UMat dst,
Size ksize) |
static void |
blur(UMat src,
UMat dst,
Size ksize,
Point anchor,
int borderType) |
static Rect |
boundingRect(GpuMat array) |
static Rect |
boundingRect(Mat array)
\brief Calculates the up-right bounding rectangle of a point set or non-zero pixels of gray-scale image.
|
static Rect |
boundingRect(UMat array) |
static void |
boxFilter(GpuMat src,
GpuMat dst,
int ddepth,
Size ksize) |
static void |
boxFilter(GpuMat src,
GpuMat dst,
int ddepth,
Size ksize,
Point anchor,
boolean normalize,
int borderType) |
static void |
boxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize) |
static void |
boxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize,
Point anchor,
boolean normalize,
int borderType)
\brief Blurs an image using the box filter.
|
static void |
boxFilter(UMat src,
UMat dst,
int ddepth,
Size ksize) |
static void |
boxFilter(UMat src,
UMat dst,
int ddepth,
Size ksize,
Point anchor,
boolean normalize,
int borderType) |
static void |
boxPoints(RotatedRect box,
GpuMat points) |
static void |
boxPoints(RotatedRect box,
Mat points)
\brief Finds the four vertices of a rotated rect.
|
static void |
boxPoints(RotatedRect box,
UMat points) |
static void |
buildPyramid(GpuMat src,
GpuMatVector dst,
int maxlevel) |
static void |
buildPyramid(GpuMat src,
GpuMatVector dst,
int maxlevel,
int borderType) |
static void |
buildPyramid(GpuMat src,
MatVector dst,
int maxlevel) |
static void |
buildPyramid(GpuMat src,
MatVector dst,
int maxlevel,
int borderType) |
static void |
buildPyramid(GpuMat src,
UMatVector dst,
int maxlevel) |
static void |
buildPyramid(GpuMat src,
UMatVector dst,
int maxlevel,
int borderType) |
static void |
buildPyramid(Mat src,
GpuMatVector dst,
int maxlevel) |
static void |
buildPyramid(Mat src,
GpuMatVector dst,
int maxlevel,
int borderType) |
static void |
buildPyramid(Mat src,
MatVector dst,
int maxlevel) |
static void |
buildPyramid(Mat src,
MatVector dst,
int maxlevel,
int borderType)
\brief Constructs the Gaussian pyramid for an image.
|
static void |
buildPyramid(Mat src,
UMatVector dst,
int maxlevel) |
static void |
buildPyramid(Mat src,
UMatVector dst,
int maxlevel,
int borderType) |
static void |
buildPyramid(UMat src,
GpuMatVector dst,
int maxlevel) |
static void |
buildPyramid(UMat src,
GpuMatVector dst,
int maxlevel,
int borderType) |
static void |
buildPyramid(UMat src,
MatVector dst,
int maxlevel) |
static void |
buildPyramid(UMat src,
MatVector dst,
int maxlevel,
int borderType) |
static void |
buildPyramid(UMat src,
UMatVector dst,
int maxlevel) |
static void |
buildPyramid(UMat src,
UMatVector dst,
int maxlevel,
int borderType) |
static void |
calcBackProject(GpuMatVector images,
int[] channels,
GpuMat hist,
GpuMat dst,
float[] ranges,
double scale) |
static void |
calcBackProject(GpuMatVector images,
int[] channels,
Mat hist,
Mat dst,
float[] ranges,
double scale) |
static void |
calcBackProject(GpuMatVector images,
int[] channels,
UMat hist,
UMat dst,
float[] ranges,
double scale) |
static void |
calcBackProject(Mat images,
int nimages,
int[] channels,
GpuMat hist,
GpuMat backProject,
float[] ranges) |
static void |
calcBackProject(Mat images,
int nimages,
int[] channels,
GpuMat hist,
GpuMat backProject,
float[] ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
int[] channels,
Mat hist,
Mat backProject,
float[] ranges) |
static void |
calcBackProject(Mat images,
int nimages,
int[] channels,
Mat hist,
Mat backProject,
float[] ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
int[] channels,
SparseMat hist,
GpuMat backProject,
float[] ranges) |
static void |
calcBackProject(Mat images,
int nimages,
int[] channels,
SparseMat hist,
GpuMat backProject,
float[] ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
int[] channels,
SparseMat hist,
Mat backProject,
float[] ranges) |
static void |
calcBackProject(Mat images,
int nimages,
int[] channels,
SparseMat hist,
Mat backProject,
float[] ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
int[] channels,
SparseMat hist,
UMat backProject,
float[] ranges) |
static void |
calcBackProject(Mat images,
int nimages,
int[] channels,
SparseMat hist,
UMat backProject,
float[] ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
int[] channels,
UMat hist,
UMat backProject,
float[] ranges) |
static void |
calcBackProject(Mat images,
int nimages,
int[] channels,
UMat hist,
UMat backProject,
float[] ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
IntBuffer channels,
GpuMat hist,
GpuMat backProject,
FloatBuffer ranges) |
static void |
calcBackProject(Mat images,
int nimages,
IntBuffer channels,
GpuMat hist,
GpuMat backProject,
FloatBuffer ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
IntBuffer channels,
Mat hist,
Mat backProject,
FloatBuffer ranges) |
static void |
calcBackProject(Mat images,
int nimages,
IntBuffer channels,
Mat hist,
Mat backProject,
FloatBuffer ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
IntBuffer channels,
SparseMat hist,
GpuMat backProject,
FloatBuffer ranges) |
static void |
calcBackProject(Mat images,
int nimages,
IntBuffer channels,
SparseMat hist,
GpuMat backProject,
FloatBuffer ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
IntBuffer channels,
SparseMat hist,
Mat backProject,
FloatBuffer ranges) |
static void |
calcBackProject(Mat images,
int nimages,
IntBuffer channels,
SparseMat hist,
Mat backProject,
FloatBuffer ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
IntBuffer channels,
SparseMat hist,
UMat backProject,
FloatBuffer ranges) |
static void |
calcBackProject(Mat images,
int nimages,
IntBuffer channels,
SparseMat hist,
UMat backProject,
FloatBuffer ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
IntBuffer channels,
UMat hist,
UMat backProject,
FloatBuffer ranges) |
static void |
calcBackProject(Mat images,
int nimages,
IntBuffer channels,
UMat hist,
UMat backProject,
FloatBuffer ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
GpuMat hist,
GpuMat backProject,
FloatPointer ranges) |
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
GpuMat hist,
GpuMat backProject,
FloatPointer ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
Mat hist,
Mat backProject,
FloatPointer ranges) |
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
Mat hist,
Mat backProject,
FloatPointer ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
Mat hist,
Mat backProject,
PointerPointer ranges,
double scale,
boolean uniform)
\brief Calculates the back projection of a histogram.
|
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
SparseMat hist,
GpuMat backProject,
FloatPointer ranges) |
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
SparseMat hist,
GpuMat backProject,
FloatPointer ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
SparseMat hist,
Mat backProject,
FloatPointer ranges) |
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
SparseMat hist,
Mat backProject,
FloatPointer ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
SparseMat hist,
Mat backProject,
PointerPointer ranges,
double scale,
boolean uniform)
\overload
|
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
SparseMat hist,
UMat backProject,
FloatPointer ranges) |
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
SparseMat hist,
UMat backProject,
FloatPointer ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
UMat hist,
UMat backProject,
FloatPointer ranges) |
static void |
calcBackProject(Mat images,
int nimages,
IntPointer channels,
UMat hist,
UMat backProject,
FloatPointer ranges,
double scale,
boolean uniform) |
static void |
calcBackProject(MatVector images,
IntPointer channels,
GpuMat hist,
GpuMat dst,
FloatPointer ranges,
double scale) |
static void |
calcBackProject(MatVector images,
IntPointer channels,
Mat hist,
Mat dst,
FloatPointer ranges,
double scale)
\overload
|
static void |
calcBackProject(MatVector images,
IntPointer channels,
UMat hist,
UMat dst,
FloatPointer ranges,
double scale) |
static void |
calcBackProject(UMatVector images,
IntBuffer channels,
GpuMat hist,
GpuMat dst,
FloatBuffer ranges,
double scale) |
static void |
calcBackProject(UMatVector images,
IntBuffer channels,
Mat hist,
Mat dst,
FloatBuffer ranges,
double scale) |
static void |
calcBackProject(UMatVector images,
IntBuffer channels,
UMat hist,
UMat dst,
FloatBuffer ranges,
double scale) |
static void |
calcHist(GpuMatVector images,
int[] channels,
GpuMat mask,
GpuMat hist,
int[] histSize,
float[] ranges) |
static void |
calcHist(GpuMatVector images,
int[] channels,
GpuMat mask,
GpuMat hist,
int[] histSize,
float[] ranges,
boolean accumulate) |
static void |
calcHist(GpuMatVector images,
int[] channels,
Mat mask,
Mat hist,
int[] histSize,
float[] ranges) |
static void |
calcHist(GpuMatVector images,
int[] channels,
Mat mask,
Mat hist,
int[] histSize,
float[] ranges,
boolean accumulate) |
static void |
calcHist(GpuMatVector images,
int[] channels,
UMat mask,
UMat hist,
int[] histSize,
float[] ranges) |
static void |
calcHist(GpuMatVector images,
int[] channels,
UMat mask,
UMat hist,
int[] histSize,
float[] ranges,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
int[] channels,
GpuMat mask,
GpuMat hist,
int dims,
int[] histSize,
float[] ranges) |
static void |
calcHist(Mat images,
int nimages,
int[] channels,
GpuMat mask,
GpuMat hist,
int dims,
int[] histSize,
float[] ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
int[] channels,
GpuMat mask,
SparseMat hist,
int dims,
int[] histSize,
float[] ranges) |
static void |
calcHist(Mat images,
int nimages,
int[] channels,
GpuMat mask,
SparseMat hist,
int dims,
int[] histSize,
float[] ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
int[] channels,
Mat mask,
Mat hist,
int dims,
int[] histSize,
float[] ranges) |
static void |
calcHist(Mat images,
int nimages,
int[] channels,
Mat mask,
Mat hist,
int dims,
int[] histSize,
float[] ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
int[] channels,
Mat mask,
SparseMat hist,
int dims,
int[] histSize,
float[] ranges) |
static void |
calcHist(Mat images,
int nimages,
int[] channels,
Mat mask,
SparseMat hist,
int dims,
int[] histSize,
float[] ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
int[] channels,
UMat mask,
SparseMat hist,
int dims,
int[] histSize,
float[] ranges) |
static void |
calcHist(Mat images,
int nimages,
int[] channels,
UMat mask,
SparseMat hist,
int dims,
int[] histSize,
float[] ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
int[] channels,
UMat mask,
UMat hist,
int dims,
int[] histSize,
float[] ranges) |
static void |
calcHist(Mat images,
int nimages,
int[] channels,
UMat mask,
UMat hist,
int dims,
int[] histSize,
float[] ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
IntBuffer channels,
GpuMat mask,
GpuMat hist,
int dims,
IntBuffer histSize,
FloatBuffer ranges) |
static void |
calcHist(Mat images,
int nimages,
IntBuffer channels,
GpuMat mask,
GpuMat hist,
int dims,
IntBuffer histSize,
FloatBuffer ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
IntBuffer channels,
GpuMat mask,
SparseMat hist,
int dims,
IntBuffer histSize,
FloatBuffer ranges) |
static void |
calcHist(Mat images,
int nimages,
IntBuffer channels,
GpuMat mask,
SparseMat hist,
int dims,
IntBuffer histSize,
FloatBuffer ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
IntBuffer channels,
Mat mask,
Mat hist,
int dims,
IntBuffer histSize,
FloatBuffer ranges) |
static void |
calcHist(Mat images,
int nimages,
IntBuffer channels,
Mat mask,
Mat hist,
int dims,
IntBuffer histSize,
FloatBuffer ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
IntBuffer channels,
Mat mask,
SparseMat hist,
int dims,
IntBuffer histSize,
FloatBuffer ranges) |
static void |
calcHist(Mat images,
int nimages,
IntBuffer channels,
Mat mask,
SparseMat hist,
int dims,
IntBuffer histSize,
FloatBuffer ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
IntBuffer channels,
UMat mask,
SparseMat hist,
int dims,
IntBuffer histSize,
FloatBuffer ranges) |
static void |
calcHist(Mat images,
int nimages,
IntBuffer channels,
UMat mask,
SparseMat hist,
int dims,
IntBuffer histSize,
FloatBuffer ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
IntBuffer channels,
UMat mask,
UMat hist,
int dims,
IntBuffer histSize,
FloatBuffer ranges) |
static void |
calcHist(Mat images,
int nimages,
IntBuffer channels,
UMat mask,
UMat hist,
int dims,
IntBuffer histSize,
FloatBuffer ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
GpuMat mask,
GpuMat hist,
int dims,
IntPointer histSize,
FloatPointer ranges) |
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
GpuMat mask,
GpuMat hist,
int dims,
IntPointer histSize,
FloatPointer ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
GpuMat mask,
SparseMat hist,
int dims,
IntPointer histSize,
FloatPointer ranges) |
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
GpuMat mask,
SparseMat hist,
int dims,
IntPointer histSize,
FloatPointer ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
Mat mask,
Mat hist,
int dims,
IntPointer histSize,
FloatPointer ranges) |
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
Mat mask,
Mat hist,
int dims,
IntPointer histSize,
FloatPointer ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
Mat mask,
Mat hist,
int dims,
IntPointer histSize,
PointerPointer ranges,
boolean uniform,
boolean accumulate)
\brief Calculates a histogram of a set of arrays.
|
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
Mat mask,
SparseMat hist,
int dims,
IntPointer histSize,
FloatPointer ranges) |
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
Mat mask,
SparseMat hist,
int dims,
IntPointer histSize,
FloatPointer ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
Mat mask,
SparseMat hist,
int dims,
IntPointer histSize,
PointerPointer ranges,
boolean uniform,
boolean accumulate)
\overload
|
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
UMat mask,
SparseMat hist,
int dims,
IntPointer histSize,
FloatPointer ranges) |
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
UMat mask,
SparseMat hist,
int dims,
IntPointer histSize,
FloatPointer ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
UMat mask,
UMat hist,
int dims,
IntPointer histSize,
FloatPointer ranges) |
static void |
calcHist(Mat images,
int nimages,
IntPointer channels,
UMat mask,
UMat hist,
int dims,
IntPointer histSize,
FloatPointer ranges,
boolean uniform,
boolean accumulate) |
static void |
calcHist(MatVector images,
IntPointer channels,
GpuMat mask,
GpuMat hist,
IntPointer histSize,
FloatPointer ranges) |
static void |
calcHist(MatVector images,
IntPointer channels,
GpuMat mask,
GpuMat hist,
IntPointer histSize,
FloatPointer ranges,
boolean accumulate) |
static void |
calcHist(MatVector images,
IntPointer channels,
Mat mask,
Mat hist,
IntPointer histSize,
FloatPointer ranges) |
static void |
calcHist(MatVector images,
IntPointer channels,
Mat mask,
Mat hist,
IntPointer histSize,
FloatPointer ranges,
boolean accumulate)
\overload
|
static void |
calcHist(MatVector images,
IntPointer channels,
UMat mask,
UMat hist,
IntPointer histSize,
FloatPointer ranges) |
static void |
calcHist(MatVector images,
IntPointer channels,
UMat mask,
UMat hist,
IntPointer histSize,
FloatPointer ranges,
boolean accumulate) |
static void |
calcHist(UMatVector images,
IntBuffer channels,
GpuMat mask,
GpuMat hist,
IntBuffer histSize,
FloatBuffer ranges) |
static void |
calcHist(UMatVector images,
IntBuffer channels,
GpuMat mask,
GpuMat hist,
IntBuffer histSize,
FloatBuffer ranges,
boolean accumulate) |
static void |
calcHist(UMatVector images,
IntBuffer channels,
Mat mask,
Mat hist,
IntBuffer histSize,
FloatBuffer ranges) |
static void |
calcHist(UMatVector images,
IntBuffer channels,
Mat mask,
Mat hist,
IntBuffer histSize,
FloatBuffer ranges,
boolean accumulate) |
static void |
calcHist(UMatVector images,
IntBuffer channels,
UMat mask,
UMat hist,
IntBuffer histSize,
FloatBuffer ranges) |
static void |
calcHist(UMatVector images,
IntBuffer channels,
UMat mask,
UMat hist,
IntBuffer histSize,
FloatBuffer ranges,
boolean accumulate) |
static void |
Canny(GpuMat image,
GpuMat edges,
double threshold1,
double threshold2) |
static void |
Canny(GpuMat image,
GpuMat edges,
double threshold1,
double threshold2,
int apertureSize,
boolean L2gradient) |
static void |
Canny(GpuMat dx,
GpuMat dy,
GpuMat edges,
double threshold1,
double threshold2) |
static void |
Canny(GpuMat dx,
GpuMat dy,
GpuMat edges,
double threshold1,
double threshold2,
boolean L2gradient) |
static void |
Canny(Mat image,
Mat edges,
double threshold1,
double threshold2) |
static void |
Canny(Mat image,
Mat edges,
double threshold1,
double threshold2,
int apertureSize,
boolean L2gradient)
\brief Finds edges in an image using the Canny algorithm \cite Canny86 .
|
static void |
Canny(Mat dx,
Mat dy,
Mat edges,
double threshold1,
double threshold2) |
static void |
Canny(Mat dx,
Mat dy,
Mat edges,
double threshold1,
double threshold2,
boolean L2gradient)
\overload
|
static void |
Canny(UMat image,
UMat edges,
double threshold1,
double threshold2) |
static void |
Canny(UMat image,
UMat edges,
double threshold1,
double threshold2,
int apertureSize,
boolean L2gradient) |
static void |
Canny(UMat dx,
UMat dy,
UMat edges,
double threshold1,
double threshold2) |
static void |
Canny(UMat dx,
UMat dy,
UMat edges,
double threshold1,
double threshold2,
boolean L2gradient) |
static void |
circle(GpuMat img,
Point center,
int radius,
Scalar color) |
static void |
circle(GpuMat img,
Point center,
int radius,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
circle(Mat img,
Point center,
int radius,
Scalar color) |
static void |
circle(Mat img,
Point center,
int radius,
Scalar color,
int thickness,
int lineType,
int shift)
\brief Draws a circle.
|
static void |
circle(UMat img,
Point center,
int radius,
Scalar color) |
static void |
circle(UMat img,
Point center,
int radius,
Scalar color,
int thickness,
int lineType,
int shift) |
static boolean |
clipLine(Rect imgRect,
Point pt1,
Point pt2)
\overload
|
static boolean |
clipLine(Size imgSize,
Point pt1,
Point pt2)
\brief Clips the line against the image rectangle.
|
static double |
compareHist(GpuMat H1,
GpuMat H2,
int method) |
static double |
compareHist(Mat H1,
Mat H2,
int method)
\brief Compares two histograms.
|
static double |
compareHist(SparseMat H1,
SparseMat H2,
int method)
\overload
|
static double |
compareHist(UMat H1,
UMat H2,
int method) |
static int |
connectedComponents(GpuMat image,
GpuMat labels) |
static int |
connectedComponents(GpuMat image,
GpuMat labels,
int connectivity,
int ltype) |
static int |
connectedComponents(Mat image,
Mat labels) |
static int |
connectedComponents(Mat image,
Mat labels,
int connectivity,
int ltype)
\overload
|
static int |
connectedComponents(UMat image,
UMat labels) |
static int |
connectedComponents(UMat image,
UMat labels,
int connectivity,
int ltype) |
static int |
connectedComponentsWithAlgorithm(GpuMat image,
GpuMat labels,
int connectivity,
int ltype,
int ccltype) |
static int |
connectedComponentsWithAlgorithm(Mat image,
Mat labels,
int connectivity,
int ltype,
int ccltype)
\brief computes the connected components labeled image of boolean image
|
static int |
connectedComponentsWithAlgorithm(UMat image,
UMat labels,
int connectivity,
int ltype,
int ccltype) |
static int |
connectedComponentsWithStats(GpuMat image,
GpuMat labels,
GpuMat stats,
GpuMat centroids) |
static int |
connectedComponentsWithStats(GpuMat image,
GpuMat labels,
GpuMat stats,
GpuMat centroids,
int connectivity,
int ltype) |
static int |
connectedComponentsWithStats(Mat image,
Mat labels,
Mat stats,
Mat centroids) |
static int |
connectedComponentsWithStats(Mat image,
Mat labels,
Mat stats,
Mat centroids,
int connectivity,
int ltype)
\overload
|
static int |
connectedComponentsWithStats(UMat image,
UMat labels,
UMat stats,
UMat centroids) |
static int |
connectedComponentsWithStats(UMat image,
UMat labels,
UMat stats,
UMat centroids,
int connectivity,
int ltype) |
static int |
connectedComponentsWithStatsWithAlgorithm(GpuMat image,
GpuMat labels,
GpuMat stats,
GpuMat centroids,
int connectivity,
int ltype,
int ccltype) |
static int |
connectedComponentsWithStatsWithAlgorithm(Mat image,
Mat labels,
Mat stats,
Mat centroids,
int connectivity,
int ltype,
int ccltype)
\brief computes the connected components labeled image of boolean image and also produces a statistics output for each label
|
static int |
connectedComponentsWithStatsWithAlgorithm(UMat image,
UMat labels,
UMat stats,
UMat centroids,
int connectivity,
int ltype,
int ccltype) |
static double |
contourArea(GpuMat contour) |
static double |
contourArea(GpuMat contour,
boolean oriented) |
static double |
contourArea(Mat contour) |
static double |
contourArea(Mat contour,
boolean oriented)
\brief Calculates a contour area.
|
static double |
contourArea(UMat contour) |
static double |
contourArea(UMat contour,
boolean oriented) |
static void |
convertMaps(GpuMat map1,
GpuMat map2,
GpuMat dstmap1,
GpuMat dstmap2,
int dstmap1type) |
static void |
convertMaps(GpuMat map1,
GpuMat map2,
GpuMat dstmap1,
GpuMat dstmap2,
int dstmap1type,
boolean nninterpolation) |
static void |
convertMaps(Mat map1,
Mat map2,
Mat dstmap1,
Mat dstmap2,
int dstmap1type) |
static void |
convertMaps(Mat map1,
Mat map2,
Mat dstmap1,
Mat dstmap2,
int dstmap1type,
boolean nninterpolation)
\brief Converts image transformation maps from one representation to another.
|
static void |
convertMaps(UMat map1,
UMat map2,
UMat dstmap1,
UMat dstmap2,
int dstmap1type) |
static void |
convertMaps(UMat map1,
UMat map2,
UMat dstmap1,
UMat dstmap2,
int dstmap1type,
boolean nninterpolation) |
static void |
convexHull(GpuMat points,
GpuMat hull) |
static void |
convexHull(GpuMat points,
GpuMat hull,
boolean clockwise,
boolean returnPoints) |
static void |
convexHull(Mat points,
Mat hull) |
static void |
convexHull(Mat points,
Mat hull,
boolean clockwise,
boolean returnPoints)
\brief Finds the convex hull of a point set.
|
static void |
convexHull(UMat points,
UMat hull) |
static void |
convexHull(UMat points,
UMat hull,
boolean clockwise,
boolean returnPoints) |
static void |
convexityDefects(GpuMat contour,
GpuMat convexhull,
GpuMat convexityDefects) |
static void |
convexityDefects(Mat contour,
Mat convexhull,
Mat convexityDefects)
\brief Finds the convexity defects of a contour.
|
static void |
convexityDefects(UMat contour,
UMat convexhull,
UMat convexityDefects) |
static void |
cornerEigenValsAndVecs(GpuMat src,
GpuMat dst,
int blockSize,
int ksize) |
static void |
cornerEigenValsAndVecs(GpuMat src,
GpuMat dst,
int blockSize,
int ksize,
int borderType) |
static void |
cornerEigenValsAndVecs(Mat src,
Mat dst,
int blockSize,
int ksize) |
static void |
cornerEigenValsAndVecs(Mat src,
Mat dst,
int blockSize,
int ksize,
int borderType)
\brief Calculates eigenvalues and eigenvectors of image blocks for corner detection.
|
static void |
cornerEigenValsAndVecs(UMat src,
UMat dst,
int blockSize,
int ksize) |
static void |
cornerEigenValsAndVecs(UMat src,
UMat dst,
int blockSize,
int ksize,
int borderType) |
static void |
cornerHarris(GpuMat src,
GpuMat dst,
int blockSize,
int ksize,
double k) |
static void |
cornerHarris(GpuMat src,
GpuMat dst,
int blockSize,
int ksize,
double k,
int borderType) |
static void |
cornerHarris(Mat src,
Mat dst,
int blockSize,
int ksize,
double k) |
static void |
cornerHarris(Mat src,
Mat dst,
int blockSize,
int ksize,
double k,
int borderType)
\brief Harris corner detector.
|
static void |
cornerHarris(UMat src,
UMat dst,
int blockSize,
int ksize,
double k) |
static void |
cornerHarris(UMat src,
UMat dst,
int blockSize,
int ksize,
double k,
int borderType) |
static void |
cornerMinEigenVal(GpuMat src,
GpuMat dst,
int blockSize) |
static void |
cornerMinEigenVal(GpuMat src,
GpuMat dst,
int blockSize,
int ksize,
int borderType) |
static void |
cornerMinEigenVal(Mat src,
Mat dst,
int blockSize) |
static void |
cornerMinEigenVal(Mat src,
Mat dst,
int blockSize,
int ksize,
int borderType)
\brief Calculates the minimal eigenvalue of gradient matrices for corner detection.
|
static void |
cornerMinEigenVal(UMat src,
UMat dst,
int blockSize) |
static void |
cornerMinEigenVal(UMat src,
UMat dst,
int blockSize,
int ksize,
int borderType) |
static void |
cornerSubPix(GpuMat image,
GpuMat corners,
Size winSize,
Size zeroZone,
TermCriteria criteria) |
static void |
cornerSubPix(Mat image,
Mat corners,
Size winSize,
Size zeroZone,
TermCriteria criteria)
\brief Refines the corner locations.
|
static void |
cornerSubPix(UMat image,
UMat corners,
Size winSize,
Size zeroZone,
TermCriteria criteria) |
static CLAHE |
createCLAHE() |
static CLAHE |
createCLAHE(double clipLimit,
Size tileGridSize)
\brief Creates a smart pointer to a cv::CLAHE class and initializes it.
|
static GeneralizedHoughBallard |
createGeneralizedHoughBallard()
\brief Creates a smart pointer to a cv::GeneralizedHoughBallard class and initializes it.
|
static GeneralizedHoughGuil |
createGeneralizedHoughGuil()
\brief Creates a smart pointer to a cv::GeneralizedHoughGuil class and initializes it.
|
static void |
createHanningWindow(GpuMat dst,
Size winSize,
int type) |
static void |
createHanningWindow(Mat dst,
Size winSize,
int type)
\brief This function computes a Hanning window coefficients in two dimensions.
|
static void |
createHanningWindow(UMat dst,
Size winSize,
int type) |
static LineSegmentDetector |
createLineSegmentDetector() |
static LineSegmentDetector |
createLineSegmentDetector(int _refine,
double _scale,
double _sigma_scale,
double _quant,
double _ang_th,
double _log_eps,
double _density_th,
int _n_bins)
\brief Creates a smart pointer to a LineSegmentDetector object and initializes it.
|
static CvMat |
cv2DRotationMatrix(CvPoint2D32f center,
double angle,
double scale,
CvMat map_matrix)
\brief Computes rotation_matrix matrix
|
static CvMat |
cv2DRotationMatrix(float[] center,
double angle,
double scale,
CvMat map_matrix) |
static CvMat |
cv2DRotationMatrix(FloatBuffer center,
double angle,
double scale,
CvMat map_matrix) |
static void |
cvAcc(CvArr image,
CvArr sum) |
static void |
cvAcc(CvArr image,
CvArr sum,
CvArr mask)
\brief Adds image to accumulator
|
static void |
cvAdaptiveThreshold(CvArr src,
CvArr dst,
double max_value) |
static void |
cvAdaptiveThreshold(CvArr src,
CvArr dst,
double max_value,
int adaptive_method,
int threshold_type,
int block_size,
double param1)
\brief Applies adaptive threshold to grayscale image.
|
static CvSeq |
cvApproxChains(CvSeq src_seq,
CvMemStorage storage) |
static CvSeq |
cvApproxChains(CvSeq src_seq,
CvMemStorage storage,
int method,
double parameter,
int minimal_perimeter,
int recursive)
\brief Approximates Freeman chain(s) with a polygonal curve.
|
static CvSeq |
cvApproxPoly(Pointer src_seq,
int header_size,
CvMemStorage storage,
int method,
double eps) |
static CvSeq |
cvApproxPoly(Pointer src_seq,
int header_size,
CvMemStorage storage,
int method,
double eps,
int recursive)
\brief Approximates a single polygonal curve (contour) or
a tree of polygonal curves (contours)
|
static double |
cvArcLength(Pointer curve) |
static double |
cvArcLength(Pointer curve,
CvSlice slice,
int is_closed)
\brief Calculates perimeter of a contour or length of a part of contour
|
static CvRect |
cvBoundingRect(CvArr points) |
static CvRect |
cvBoundingRect(CvArr points,
int update)
\brief Calculates contour bounding rectangle (update=1) or
just retrieves pre-calculated rectangle (update=0)
|
static void |
cvBoxPoints(CvBox2D box,
CvPoint2D32f pt)
\brief Finds coordinates of the box vertices
|
static void |
cvBoxPoints(CvBox2D box,
float[] pt) |
static void |
cvBoxPoints(CvBox2D box,
FloatBuffer pt) |
static void |
cvCalcArrBackProject(CvArr image,
CvArr dst,
CvHistogram hist) |
static void |
cvCalcArrBackProject(PointerPointer image,
CvArr dst,
CvHistogram hist)
\brief Calculates back project
|
static void |
cvCalcArrBackProjectPatch(CvArr image,
CvArr dst,
CvSize range,
CvHistogram hist,
int method,
double factor) |
static void |
cvCalcArrBackProjectPatch(PointerPointer image,
CvArr dst,
CvSize range,
CvHistogram hist,
int method,
double factor)
\brief Locates a template within an image by using a histogram comparison.
|
static void |
cvCalcArrHist(CvArr arr,
CvHistogram hist) |
static void |
cvCalcArrHist(CvArr arr,
CvHistogram hist,
int accumulate,
CvArr mask) |
static void |
cvCalcArrHist(PointerPointer arr,
CvHistogram hist,
int accumulate,
CvArr mask)
\brief Calculates array histogram
|
static void |
cvCalcBackProject(IplImage image,
CvArr dst,
CvHistogram hist) |
static void |
cvCalcBackProject(PointerPointer image,
CvArr dst,
CvHistogram hist) |
static void |
cvCalcBackProjectPatch(IplImage image,
CvArr dst,
CvSize range,
CvHistogram hist,
int method,
double factor) |
static void |
cvCalcBackProjectPatch(PointerPointer image,
CvArr dst,
CvSize range,
CvHistogram hist,
int method,
double factor) |
static void |
cvCalcBayesianProb(CvHistogram src,
int number,
CvHistogram dst) |
static void |
cvCalcBayesianProb(PointerPointer src,
int number,
PointerPointer dst)
\brief Calculates bayesian probabilistic histograms
(each or src and dst is an array of _number_ histograms
|
static float |
cvCalcEMD2(CvArr signature1,
CvArr signature2,
int distance_type) |
static float |
cvCalcEMD2(CvArr signature1,
CvArr signature2,
int distance_type,
CvDistanceFunction distance_func,
CvArr cost_matrix,
CvArr flow,
float[] lower_bound,
Pointer userdata) |
static float |
cvCalcEMD2(CvArr signature1,
CvArr signature2,
int distance_type,
CvDistanceFunction distance_func,
CvArr cost_matrix,
CvArr flow,
FloatBuffer lower_bound,
Pointer userdata) |
static float |
cvCalcEMD2(CvArr signature1,
CvArr signature2,
int distance_type,
CvDistanceFunction distance_func,
CvArr cost_matrix,
CvArr flow,
FloatPointer lower_bound,
Pointer userdata)
\brief Computes earth mover distance between
two weighted point sets (called signatures)
|
static void |
cvCalcHist(IplImage image,
CvHistogram hist) |
static void |
cvCalcHist(IplImage image,
CvHistogram hist,
int accumulate,
CvArr mask) |
static void |
cvCalcHist(PointerPointer image,
CvHistogram hist,
int accumulate,
CvArr mask)
\overload
|
static void |
cvCalcProbDensity(CvHistogram hist1,
CvHistogram hist2,
CvHistogram dst_hist) |
static void |
cvCalcProbDensity(CvHistogram hist1,
CvHistogram hist2,
CvHistogram dst_hist,
double scale)
\brief Divides one histogram by another.
|
static void |
cvCanny(CvArr image,
CvArr edges,
double threshold1,
double threshold2) |
static void |
cvCanny(CvArr image,
CvArr edges,
double threshold1,
double threshold2,
int aperture_size)
\brief Runs canny edge detector
|
static int |
cvCheckContourConvexity(CvArr contour)
\brief Checks whether the contour is convex or not (returns 1 if convex, 0 if not)
|
static void |
cvCircle(CvArr img,
CvPoint center,
int radius,
CvScalar color) |
static void |
cvCircle(CvArr img,
CvPoint center,
int radius,
CvScalar color,
int thickness,
int line_type,
int shift)
\brief Draws a circle with specified center and radius.
|
static void |
cvCircle(CvArr img,
int[] center,
int radius,
CvScalar color) |
static void |
cvCircle(CvArr img,
int[] center,
int radius,
CvScalar color,
int thickness,
int line_type,
int shift) |
static void |
cvCircle(CvArr img,
IntBuffer center,
int radius,
CvScalar color) |
static void |
cvCircle(CvArr img,
IntBuffer center,
int radius,
CvScalar color,
int thickness,
int line_type,
int shift) |
static void |
cvClearHist(CvHistogram hist)
\brief Clears the histogram.
|
static int |
cvClipLine(CvSize img_size,
CvPoint pt1,
CvPoint pt2)
\brief Clips the line segment connecting *pt1 and *pt2
by the rectangular window
|
static int |
cvClipLine(CvSize img_size,
int[] pt1,
int[] pt2) |
static int |
cvClipLine(CvSize img_size,
IntBuffer pt1,
IntBuffer pt2) |
static CvScalar |
cvColorToScalar(double packed_color,
int arrtype)
\brief Unpacks color value
|
static double |
cvCompareHist(CvHistogram hist1,
CvHistogram hist2,
int method)
Compares two histogram
|
static double |
cvContourArea(CvArr contour) |
static double |
cvContourArea(CvArr contour,
CvSlice slice,
int oriented)
\brief Calculates area of a contour or contour segment
|
static double |
cvContourPerimeter(Pointer contour)
same as cvArcLength for closed contour
|
static void |
cvConvertMaps(CvArr mapx,
CvArr mapy,
CvArr mapxy,
CvArr mapalpha)
\brief Converts mapx & mapy from floating-point to integer formats for cvRemap
|
static CvSeq |
cvConvexHull2(CvArr input) |
static CvSeq |
cvConvexHull2(CvArr input,
Pointer hull_storage,
int orientation,
int return_points)
\brief Calculates exact convex hull of 2d point set
|
static CvSeq |
cvConvexityDefects(CvArr contour,
CvArr convexhull) |
static CvSeq |
cvConvexityDefects(CvArr contour,
CvArr convexhull,
CvMemStorage storage)
\brief Finds convexity defects for the contour
|
static void |
cvCopyHist(CvHistogram src,
CvHistogram dst) |
static void |
cvCopyHist(CvHistogram src,
PointerPointer dst)
\brief Copies a histogram.
|
static void |
cvCopyMakeBorder(CvArr src,
CvArr dst,
CvPoint offset,
int bordertype) |
static void |
cvCopyMakeBorder(CvArr src,
CvArr dst,
CvPoint offset,
int bordertype,
CvScalar value)
Copies source 2D array inside of the larger destination array and
makes a border of the specified type (IPL_BORDER_*) around the copied area.
|
static void |
cvCopyMakeBorder(CvArr src,
CvArr dst,
int[] offset,
int bordertype) |
static void |
cvCopyMakeBorder(CvArr src,
CvArr dst,
int[] offset,
int bordertype,
CvScalar value) |
static void |
cvCopyMakeBorder(CvArr src,
CvArr dst,
IntBuffer offset,
int bordertype) |
static void |
cvCopyMakeBorder(CvArr src,
CvArr dst,
IntBuffer offset,
int bordertype,
CvScalar value) |
static void |
cvCornerEigenValsAndVecs(CvArr image,
CvArr eigenvv,
int block_size) |
static void |
cvCornerEigenValsAndVecs(CvArr image,
CvArr eigenvv,
int block_size,
int aperture_size)
\brief Calculates eigen values and vectors of 2x2
gradient covariation matrix at every image pixel
|
static void |
cvCornerHarris(CvArr image,
CvArr harris_response,
int block_size) |
static void |
cvCornerHarris(CvArr image,
CvArr harris_response,
int block_size,
int aperture_size,
double k)
\brief Harris corner detector:
|
static void |
cvCornerMinEigenVal(CvArr image,
CvArr eigenval,
int block_size) |
static void |
cvCornerMinEigenVal(CvArr image,
CvArr eigenval,
int block_size,
int aperture_size)
\brief Calculates minimal eigenvalue for 2x2 gradient covariation matrix at
every image pixel
|
static CvHistogram |
cvCreateHist(int dims,
int[] sizes,
int type) |
static CvHistogram |
cvCreateHist(int dims,
int[] sizes,
int type,
float[] ranges,
int uniform) |
static CvHistogram |
cvCreateHist(int dims,
IntBuffer sizes,
int type) |
static CvHistogram |
cvCreateHist(int dims,
IntBuffer sizes,
int type,
FloatBuffer ranges,
int uniform) |
static CvHistogram |
cvCreateHist(int dims,
IntPointer sizes,
int type) |
static CvHistogram |
cvCreateHist(int dims,
IntPointer sizes,
int type,
FloatPointer ranges,
int uniform) |
static CvHistogram |
cvCreateHist(int dims,
IntPointer sizes,
int type,
PointerPointer ranges,
int uniform)
\brief Creates a histogram.
|
static CvMat |
cvCreatePyramid(CvArr img,
int extra_layers,
double rate) |
static PointerPointer |
cvCreatePyramid(CvArr img,
int extra_layers,
double rate,
CvSize layer_sizes,
CvArr bufarr,
int calc,
int filter)
\brief Builds pyramid for an image
|
static IplConvKernel |
cvCreateStructuringElementEx(int cols,
int rows,
int anchor_x,
int anchor_y,
int shape) |
static IplConvKernel |
cvCreateStructuringElementEx(int cols,
int rows,
int anchor_x,
int anchor_y,
int shape,
int[] values) |
static IplConvKernel |
cvCreateStructuringElementEx(int cols,
int rows,
int anchor_x,
int anchor_y,
int shape,
IntBuffer values) |
static IplConvKernel |
cvCreateStructuringElementEx(int cols,
int rows,
int anchor_x,
int anchor_y,
int shape,
IntPointer values)
\brief Returns a structuring element of the specified size and shape for morphological operations.
|
static void |
cvCvtColor(CvArr src,
CvArr dst,
int code)
\brief Converts input array pixels from one color space to another
|
static void |
cvDilate(CvArr src,
CvArr dst) |
static void |
cvDilate(CvArr src,
CvArr dst,
IplConvKernel element,
int iterations)
\brief dilates input image (applies maximum filter) one or more times.
|
static void |
cvDistTransform(CvArr src,
CvArr dst) |
static void |
cvDistTransform(CvArr src,
CvArr dst,
int distance_type,
int mask_size,
float[] mask,
CvArr labels,
int labelType) |
static void |
cvDistTransform(CvArr src,
CvArr dst,
int distance_type,
int mask_size,
FloatBuffer mask,
CvArr labels,
int labelType) |
static void |
cvDistTransform(CvArr src,
CvArr dst,
int distance_type,
int mask_size,
FloatPointer mask,
CvArr labels,
int labelType)
\brief Applies distance transform to binary image
|
static void |
cvDrawCircle(CvArr arg1,
CvPoint arg2,
int arg3,
CvScalar arg4,
int arg5,
int arg6,
int arg7) |
static void |
cvDrawCircle(CvArr arg1,
int[] arg2,
int arg3,
CvScalar arg4,
int arg5,
int arg6,
int arg7) |
static void |
cvDrawCircle(CvArr arg1,
IntBuffer arg2,
int arg3,
CvScalar arg4,
int arg5,
int arg6,
int arg7) |
static void |
cvDrawContours(CvArr img,
CvSeq contour,
CvScalar external_color,
CvScalar hole_color,
int max_level) |
static void |
cvDrawContours(CvArr img,
CvSeq contour,
CvScalar external_color,
CvScalar hole_color,
int max_level,
int thickness,
int line_type,
CvPoint offset)
\brief Draws contour outlines or filled interiors on the image
|
static void |
cvDrawContours(CvArr img,
CvSeq contour,
CvScalar external_color,
CvScalar hole_color,
int max_level,
int thickness,
int line_type,
int[] offset) |
static void |
cvDrawContours(CvArr img,
CvSeq contour,
CvScalar external_color,
CvScalar hole_color,
int max_level,
int thickness,
int line_type,
IntBuffer offset) |
static void |
cvDrawEllipse(CvArr arg1,
CvPoint arg2,
CvSize arg3,
double arg4,
double arg5,
double arg6,
CvScalar arg7,
int arg8,
int arg9,
int arg10) |
static void |
cvDrawEllipse(CvArr arg1,
int[] arg2,
CvSize arg3,
double arg4,
double arg5,
double arg6,
CvScalar arg7,
int arg8,
int arg9,
int arg10) |
static void |
cvDrawEllipse(CvArr arg1,
IntBuffer arg2,
CvSize arg3,
double arg4,
double arg5,
double arg6,
CvScalar arg7,
int arg8,
int arg9,
int arg10) |
static void |
cvDrawLine(CvArr arg1,
CvPoint arg2,
CvPoint arg3,
CvScalar arg4,
int arg5,
int arg6,
int arg7) |
static void |
cvDrawLine(CvArr arg1,
int[] arg2,
int[] arg3,
CvScalar arg4,
int arg5,
int arg6,
int arg7) |
static void |
cvDrawLine(CvArr arg1,
IntBuffer arg2,
IntBuffer arg3,
CvScalar arg4,
int arg5,
int arg6,
int arg7) |
static void |
cvDrawPolyLine(CvArr arg1,
CvPoint arg2,
IntPointer arg3,
int arg4,
int arg5,
CvScalar arg6,
int arg7,
int arg8,
int arg9) |
static void |
cvDrawPolyLine(CvArr arg1,
int[] arg2,
int[] arg3,
int arg4,
int arg5,
CvScalar arg6,
int arg7,
int arg8,
int arg9) |
static void |
cvDrawPolyLine(CvArr arg1,
IntBuffer arg2,
IntBuffer arg3,
int arg4,
int arg5,
CvScalar arg6,
int arg7,
int arg8,
int arg9) |
static void |
cvDrawPolyLine(CvArr arg1,
PointerPointer arg2,
IntPointer arg3,
int arg4,
int arg5,
CvScalar arg6,
int arg7,
int arg8,
int arg9) |
static void |
cvDrawRect(CvArr arg1,
CvPoint arg2,
CvPoint arg3,
CvScalar arg4,
int arg5,
int arg6,
int arg7) |
static void |
cvDrawRect(CvArr arg1,
int[] arg2,
int[] arg3,
CvScalar arg4,
int arg5,
int arg6,
int arg7) |
static void |
cvDrawRect(CvArr arg1,
IntBuffer arg2,
IntBuffer arg3,
CvScalar arg4,
int arg5,
int arg6,
int arg7) |
static void |
cvEllipse(CvArr img,
CvPoint center,
CvSize axes,
double angle,
double start_angle,
double end_angle,
CvScalar color) |
static void |
cvEllipse(CvArr img,
CvPoint center,
CvSize axes,
double angle,
double start_angle,
double end_angle,
CvScalar color,
int thickness,
int line_type,
int shift)
\brief Draws ellipse outline, filled ellipse, elliptic arc or filled elliptic sector
|
static void |
cvEllipse(CvArr img,
int[] center,
CvSize axes,
double angle,
double start_angle,
double end_angle,
CvScalar color) |
static void |
cvEllipse(CvArr img,
int[] center,
CvSize axes,
double angle,
double start_angle,
double end_angle,
CvScalar color,
int thickness,
int line_type,
int shift) |
static void |
cvEllipse(CvArr img,
IntBuffer center,
CvSize axes,
double angle,
double start_angle,
double end_angle,
CvScalar color) |
static void |
cvEllipse(CvArr img,
IntBuffer center,
CvSize axes,
double angle,
double start_angle,
double end_angle,
CvScalar color,
int thickness,
int line_type,
int shift) |
static int |
cvEllipse2Poly(CvPoint center,
CvSize axes,
int angle,
int arc_start,
int arc_end,
CvPoint pts,
int delta)
\brief Returns the polygon points which make up the given ellipse.
|
static int |
cvEllipse2Poly(int[] center,
CvSize axes,
int angle,
int arc_start,
int arc_end,
int[] pts,
int delta) |
static int |
cvEllipse2Poly(IntBuffer center,
CvSize axes,
int angle,
int arc_start,
int arc_end,
IntBuffer pts,
int delta) |
static void |
cvEllipseBox(CvArr img,
CvBox2D box,
CvScalar color) |
static void |
cvEllipseBox(CvArr img,
CvBox2D box,
CvScalar color,
int thickness,
int line_type,
int shift) |
static CvSeq |
cvEndFindContours(CvContourScanner scanner)
\brief Releases contour scanner and returns pointer to the first outer contour
|
static void |
cvEqualizeHist(CvArr src,
CvArr dst)
\brief equalizes histogram of 8-bit single-channel image
|
static void |
cvErode(CvArr src,
CvArr dst) |
static void |
cvErode(CvArr src,
CvArr dst,
IplConvKernel element,
int iterations)
\brief erodes input image (applies minimum filter) one or more times.
|
static void |
cvFillConvexPoly(CvArr img,
CvPoint pts,
int npts,
CvScalar color) |
static void |
cvFillConvexPoly(CvArr img,
CvPoint pts,
int npts,
CvScalar color,
int line_type,
int shift)
\brief Fills convex or monotonous polygon.
|
static void |
cvFillConvexPoly(CvArr img,
int[] pts,
int npts,
CvScalar color) |
static void |
cvFillConvexPoly(CvArr img,
int[] pts,
int npts,
CvScalar color,
int line_type,
int shift) |
static void |
cvFillConvexPoly(CvArr img,
IntBuffer pts,
int npts,
CvScalar color) |
static void |
cvFillConvexPoly(CvArr img,
IntBuffer pts,
int npts,
CvScalar color,
int line_type,
int shift) |
static void |
cvFillPoly(CvArr img,
CvPoint pts,
IntPointer npts,
int contours,
CvScalar color) |
static void |
cvFillPoly(CvArr img,
CvPoint pts,
IntPointer npts,
int contours,
CvScalar color,
int line_type,
int shift) |
static void |
cvFillPoly(CvArr img,
int[] pts,
int[] npts,
int contours,
CvScalar color) |
static void |
cvFillPoly(CvArr img,
int[] pts,
int[] npts,
int contours,
CvScalar color,
int line_type,
int shift) |
static void |
cvFillPoly(CvArr img,
IntBuffer pts,
IntBuffer npts,
int contours,
CvScalar color) |
static void |
cvFillPoly(CvArr img,
IntBuffer pts,
IntBuffer npts,
int contours,
CvScalar color,
int line_type,
int shift) |
static void |
cvFillPoly(CvArr img,
PointerPointer pts,
IntPointer npts,
int contours,
CvScalar color,
int line_type,
int shift)
\brief Fills an area bounded by one or more arbitrary polygons
|
static void |
cvFilter2D(CvArr src,
CvArr dst,
CvMat kernel) |
static void |
cvFilter2D(CvArr src,
CvArr dst,
CvMat kernel,
CvPoint anchor)
\brief Convolves an image with the kernel.
|
static void |
cvFilter2D(CvArr src,
CvArr dst,
CvMat kernel,
int[] anchor) |
static void |
cvFilter2D(CvArr src,
CvArr dst,
CvMat kernel,
IntBuffer anchor) |
static int |
cvFindContours(CvArr image,
CvMemStorage storage,
CvSeq first_contour) |
static int |
cvFindContours(CvArr image,
CvMemStorage storage,
CvSeq first_contour,
int header_size,
int mode,
int method,
CvPoint offset) |
static int |
cvFindContours(CvArr image,
CvMemStorage storage,
CvSeq first_contour,
int header_size,
int mode,
int method,
int[] offset) |
static int |
cvFindContours(CvArr image,
CvMemStorage storage,
CvSeq first_contour,
int header_size,
int mode,
int method,
IntBuffer offset) |
static int |
cvFindContours(CvArr image,
CvMemStorage storage,
PointerPointer first_contour,
int header_size,
int mode,
int method,
CvPoint offset)
\brief Retrieves outer and optionally inner boundaries of white (non-zero) connected
components in the black (zero) background
|
static void |
cvFindCornerSubPix(CvArr image,
CvPoint2D32f corners,
int count,
CvSize win,
CvSize zero_zone,
CvTermCriteria criteria)
\brief Adjust corner position using some sort of gradient search
|
static void |
cvFindCornerSubPix(CvArr image,
float[] corners,
int count,
CvSize win,
CvSize zero_zone,
CvTermCriteria criteria) |
static void |
cvFindCornerSubPix(CvArr image,
FloatBuffer corners,
int count,
CvSize win,
CvSize zero_zone,
CvTermCriteria criteria) |
static CvSeq |
cvFindNextContour(CvContourScanner scanner)
\brief Retrieves next contour
|
static CvBox2D |
cvFitEllipse2(CvArr points)
\brief Fits ellipse into a set of 2d points
|
static void |
cvFitLine(CvArr points,
int dist_type,
double param,
double reps,
double aeps,
float[] line) |
static void |
cvFitLine(CvArr points,
int dist_type,
double param,
double reps,
double aeps,
FloatBuffer line) |
static void |
cvFitLine(CvArr points,
int dist_type,
double param,
double reps,
double aeps,
FloatPointer line)
\brief Fits a line into set of 2d or 3d points in a robust way (M-estimator technique)
|
static void |
cvFloodFill(CvArr image,
CvPoint seed_point,
CvScalar new_val) |
static void |
cvFloodFill(CvArr image,
CvPoint seed_point,
CvScalar new_val,
CvScalar lo_diff,
CvScalar up_diff,
CvConnectedComp comp,
int flags,
CvArr mask)
\brief Fills the connected component until the color difference gets large enough
|
static void |
cvFloodFill(CvArr image,
int[] seed_point,
CvScalar new_val) |
static void |
cvFloodFill(CvArr image,
int[] seed_point,
CvScalar new_val,
CvScalar lo_diff,
CvScalar up_diff,
CvConnectedComp comp,
int flags,
CvArr mask) |
static void |
cvFloodFill(CvArr image,
IntBuffer seed_point,
CvScalar new_val) |
static void |
cvFloodFill(CvArr image,
IntBuffer seed_point,
CvScalar new_val,
CvScalar lo_diff,
CvScalar up_diff,
CvConnectedComp comp,
int flags,
CvArr mask) |
static CvFont |
cvFont(double scale) |
static CvFont |
cvFont(double scale,
int thickness) |
static CvMat |
cvGetAffineTransform(CvPoint2D32f src,
CvPoint2D32f dst,
CvMat map_matrix)
\brief Computes affine transform matrix for mapping src[i] to dst[i] (i=0,1,2)
|
static CvMat |
cvGetAffineTransform(float[] src,
float[] dst,
CvMat map_matrix) |
static CvMat |
cvGetAffineTransform(FloatBuffer src,
FloatBuffer dst,
CvMat map_matrix) |
static double |
cvGetCentralMoment(CvMoments moments,
int x_order,
int y_order)
\brief Retrieve central moments
|
static void |
cvGetHuMoments(CvMoments moments,
CvHuMoments hu_moments)
\brief Calculates 7 Hu's invariants from precalculated spatial and central moments
|
static void |
cvGetMinMaxHistValue(CvHistogram hist,
float[] min_value,
float[] max_value) |
static void |
cvGetMinMaxHistValue(CvHistogram hist,
float[] min_value,
float[] max_value,
int[] min_idx,
int[] max_idx) |
static void |
cvGetMinMaxHistValue(CvHistogram hist,
FloatBuffer min_value,
FloatBuffer max_value) |
static void |
cvGetMinMaxHistValue(CvHistogram hist,
FloatBuffer min_value,
FloatBuffer max_value,
IntBuffer min_idx,
IntBuffer max_idx) |
static void |
cvGetMinMaxHistValue(CvHistogram hist,
FloatPointer min_value,
FloatPointer max_value) |
static void |
cvGetMinMaxHistValue(CvHistogram hist,
FloatPointer min_value,
FloatPointer max_value,
IntPointer min_idx,
IntPointer max_idx)
\brief Finds the minimum and maximum histogram bins.
|
static double |
cvGetNormalizedCentralMoment(CvMoments moments,
int x_order,
int y_order)
\brief Retrieve normalized central moments
|
static CvMat |
cvGetPerspectiveTransform(CvPoint2D32f src,
CvPoint2D32f dst,
CvMat map_matrix)
\brief Computes perspective transform matrix for mapping src[i] to dst[i] (i=0,1,2,3)
|
static CvMat |
cvGetPerspectiveTransform(float[] src,
float[] dst,
CvMat map_matrix) |
static CvMat |
cvGetPerspectiveTransform(FloatBuffer src,
FloatBuffer dst,
CvMat map_matrix) |
static void |
cvGetQuadrangleSubPix(CvArr src,
CvArr dst,
CvMat map_matrix)
\brief Retrieves quadrangle from the input array.
|
static void |
cvGetRectSubPix(CvArr src,
CvArr dst,
CvPoint2D32f center)
\brief Retrieves the rectangular image region with specified center from the input array.
|
static void |
cvGetRectSubPix(CvArr src,
CvArr dst,
float[] center) |
static void |
cvGetRectSubPix(CvArr src,
CvArr dst,
FloatBuffer center) |
static double |
cvGetSpatialMoment(CvMoments moments,
int x_order,
int y_order)
\brief Retrieve spatial moments
|
static void |
cvGetTextSize(BytePointer text_string,
CvFont font,
CvSize text_size,
int[] baseline) |
static void |
cvGetTextSize(BytePointer text_string,
CvFont font,
CvSize text_size,
IntBuffer baseline) |
static void |
cvGetTextSize(BytePointer text_string,
CvFont font,
CvSize text_size,
IntPointer baseline)
\brief Calculates bounding box of text stroke (useful for alignment)
|
static void |
cvGetTextSize(String text_string,
CvFont font,
CvSize text_size,
int[] baseline) |
static void |
cvGetTextSize(String text_string,
CvFont font,
CvSize text_size,
IntBuffer baseline) |
static void |
cvGetTextSize(String text_string,
CvFont font,
CvSize text_size,
IntPointer baseline) |
static void |
cvGoodFeaturesToTrack(CvArr image,
CvArr eig_image,
CvArr temp_image,
CvPoint2D32f corners,
IntPointer corner_count,
double quality_level,
double min_distance) |
static void |
cvGoodFeaturesToTrack(CvArr image,
CvArr eig_image,
CvArr temp_image,
CvPoint2D32f corners,
IntPointer corner_count,
double quality_level,
double min_distance,
CvArr mask,
int block_size,
int use_harris,
double k)
\brief Finds a sparse set of points within the selected region
that seem to be easy to track
|
static void |
cvGoodFeaturesToTrack(CvArr image,
CvArr eig_image,
CvArr temp_image,
float[] corners,
int[] corner_count,
double quality_level,
double min_distance) |
static void |
cvGoodFeaturesToTrack(CvArr image,
CvArr eig_image,
CvArr temp_image,
float[] corners,
int[] corner_count,
double quality_level,
double min_distance,
CvArr mask,
int block_size,
int use_harris,
double k) |
static void |
cvGoodFeaturesToTrack(CvArr image,
CvArr eig_image,
CvArr temp_image,
FloatBuffer corners,
IntBuffer corner_count,
double quality_level,
double min_distance) |
static void |
cvGoodFeaturesToTrack(CvArr image,
CvArr eig_image,
CvArr temp_image,
FloatBuffer corners,
IntBuffer corner_count,
double quality_level,
double min_distance,
CvArr mask,
int block_size,
int use_harris,
double k) |
static CvSeq |
cvHoughCircles(CvArr image,
Pointer circle_storage,
int method,
double dp,
double min_dist) |
static CvSeq |
cvHoughCircles(CvArr image,
Pointer circle_storage,
int method,
double dp,
double min_dist,
double param1,
double param2,
int min_radius,
int max_radius)
\brief Finds circles in the image
|
static CvSeq |
cvHoughLines2(CvArr image,
Pointer line_storage,
int method,
double rho,
double theta,
int threshold) |
static CvSeq |
cvHoughLines2(CvArr image,
Pointer line_storage,
int method,
double rho,
double theta,
int threshold,
double param1,
double param2,
double min_theta,
double max_theta)
\brief Finds lines on binary image using one of several methods.
|
static void |
cvInitFont(CvFont font,
int font_face,
double hscale,
double vscale) |
static void |
cvInitFont(CvFont font,
int font_face,
double hscale,
double vscale,
double shear,
int thickness,
int line_type)
\brief Initializes font structure (OpenCV 1.x API).
|
static int |
cvInitLineIterator(CvArr image,
CvPoint pt1,
CvPoint pt2,
CvLineIterator line_iterator) |
static int |
cvInitLineIterator(CvArr image,
CvPoint pt1,
CvPoint pt2,
CvLineIterator line_iterator,
int connectivity,
int left_to_right)
\brief Initializes line iterator.
|
static int |
cvInitLineIterator(CvArr image,
int[] pt1,
int[] pt2,
CvLineIterator line_iterator) |
static int |
cvInitLineIterator(CvArr image,
int[] pt1,
int[] pt2,
CvLineIterator line_iterator,
int connectivity,
int left_to_right) |
static int |
cvInitLineIterator(CvArr image,
IntBuffer pt1,
IntBuffer pt2,
CvLineIterator line_iterator) |
static int |
cvInitLineIterator(CvArr image,
IntBuffer pt1,
IntBuffer pt2,
CvLineIterator line_iterator,
int connectivity,
int left_to_right) |
static void |
cvIntegral(CvArr image,
CvArr sum) |
static void |
cvIntegral(CvArr image,
CvArr sum,
CvArr sqsum,
CvArr tilted_sum)
\brief Finds integral image: SUM(X,Y) = sum(x |
static void |
cvLaplace(CvArr src,
CvArr dst) |
static void |
cvLaplace(CvArr src,
CvArr dst,
int aperture_size)
\brief Calculates the image Laplacian: (d2/dx + d2/dy)I
|
static void |
cvLine(CvArr img,
CvPoint pt1,
CvPoint pt2,
CvScalar color) |
static void |
cvLine(CvArr img,
CvPoint pt1,
CvPoint pt2,
CvScalar color,
int thickness,
int line_type,
int shift)
\brief Draws 4-connected, 8-connected or antialiased line segment connecting two points
|
static void |
cvLine(CvArr img,
int[] pt1,
int[] pt2,
CvScalar color) |
static void |
cvLine(CvArr img,
int[] pt1,
int[] pt2,
CvScalar color,
int thickness,
int line_type,
int shift) |
static void |
cvLine(CvArr img,
IntBuffer pt1,
IntBuffer pt2,
CvScalar color) |
static void |
cvLine(CvArr img,
IntBuffer pt1,
IntBuffer pt2,
CvScalar color,
int thickness,
int line_type,
int shift) |
static void |
cvLinearPolar(CvArr src,
CvArr dst,
CvPoint2D32f center,
double maxRadius) |
static void |
cvLinearPolar(CvArr src,
CvArr dst,
CvPoint2D32f center,
double maxRadius,
int flags)
Performs forward or inverse linear-polar image transform
|
static void |
cvLinearPolar(CvArr src,
CvArr dst,
float[] center,
double maxRadius) |
static void |
cvLinearPolar(CvArr src,
CvArr dst,
float[] center,
double maxRadius,
int flags) |
static void |
cvLinearPolar(CvArr src,
CvArr dst,
FloatBuffer center,
double maxRadius) |
static void |
cvLinearPolar(CvArr src,
CvArr dst,
FloatBuffer center,
double maxRadius,
int flags) |
static void |
cvLogPolar(CvArr src,
CvArr dst,
CvPoint2D32f center,
double M) |
static void |
cvLogPolar(CvArr src,
CvArr dst,
CvPoint2D32f center,
double M,
int flags)
\brief Performs forward or inverse log-polar image transform
|
static void |
cvLogPolar(CvArr src,
CvArr dst,
float[] center,
double M) |
static void |
cvLogPolar(CvArr src,
CvArr dst,
float[] center,
double M,
int flags) |
static void |
cvLogPolar(CvArr src,
CvArr dst,
FloatBuffer center,
double M) |
static void |
cvLogPolar(CvArr src,
CvArr dst,
FloatBuffer center,
double M,
int flags) |
static CvHistogram |
cvMakeHistHeaderForArray(int dims,
int[] sizes,
CvHistogram hist,
float[] data) |
static CvHistogram |
cvMakeHistHeaderForArray(int dims,
int[] sizes,
CvHistogram hist,
float[] data,
float[] ranges,
int uniform) |
static CvHistogram |
cvMakeHistHeaderForArray(int dims,
IntBuffer sizes,
CvHistogram hist,
FloatBuffer data) |
static CvHistogram |
cvMakeHistHeaderForArray(int dims,
IntBuffer sizes,
CvHistogram hist,
FloatBuffer data,
FloatBuffer ranges,
int uniform) |
static CvHistogram |
cvMakeHistHeaderForArray(int dims,
IntPointer sizes,
CvHistogram hist,
FloatPointer data) |
static CvHistogram |
cvMakeHistHeaderForArray(int dims,
IntPointer sizes,
CvHistogram hist,
FloatPointer data,
FloatPointer ranges,
int uniform) |
static CvHistogram |
cvMakeHistHeaderForArray(int dims,
IntPointer sizes,
CvHistogram hist,
FloatPointer data,
PointerPointer ranges,
int uniform)
\brief Makes a histogram out of an array.
|
static double |
cvMatchShapes(Pointer object1,
Pointer object2,
int method) |
static double |
cvMatchShapes(Pointer object1,
Pointer object2,
int method,
double parameter)
\brief Compares two contours by matching their moments
|
static void |
cvMatchTemplate(CvArr image,
CvArr templ,
CvArr result,
int method)
\brief Measures similarity between template and overlapped windows in the source image
and fills the resultant image with the measurements
|
static CvRect |
cvMaxRect(CvRect rect1,
CvRect rect2)
\brief Finds minimum rectangle containing two given rectangles
|
static CvBox2D |
cvMinAreaRect2(CvArr points) |
static CvBox2D |
cvMinAreaRect2(CvArr points,
CvMemStorage storage)
\brief Finds minimum area rotated rectangle bounding a set of points
|
static int |
cvMinEnclosingCircle(CvArr points,
CvPoint2D32f center,
FloatPointer radius)
\brief Finds minimum enclosing circle for a set of points
|
static int |
cvMinEnclosingCircle(CvArr points,
float[] center,
float[] radius) |
static int |
cvMinEnclosingCircle(CvArr points,
FloatBuffer center,
FloatBuffer radius) |
static CvMoments |
cvMoments() |
static void |
cvMoments(CvArr arr,
CvMoments moments) |
static void |
cvMoments(CvArr arr,
CvMoments moments,
int binary)
\brief Calculates all spatial and central moments up to the 3rd order
|
static CvMoments |
cvMoments(Moments m) |
static void |
cvMorphologyEx(CvArr src,
CvArr dst,
CvArr temp,
IplConvKernel element,
int operation) |
static void |
cvMorphologyEx(CvArr src,
CvArr dst,
CvArr temp,
IplConvKernel element,
int operation,
int iterations)
\brief Performs complex morphological transformation
|
static void |
cvMultiplyAcc(CvArr image1,
CvArr image2,
CvArr acc) |
static void |
cvMultiplyAcc(CvArr image1,
CvArr image2,
CvArr acc,
CvArr mask)
\brief Adds a product of two images to accumulator
|
static void |
cvNormalizeHist(CvHistogram hist,
double factor)
\brief Normalizes the histogram.
|
static double |
cvPointPolygonTest(CvArr contour,
CvPoint2D32f pt,
int measure_dist)
\brief Checks whether the point is inside polygon, outside, on an edge (at a vertex).
|
static double |
cvPointPolygonTest(CvArr contour,
float[] pt,
int measure_dist) |
static double |
cvPointPolygonTest(CvArr contour,
FloatBuffer pt,
int measure_dist) |
static CvSeq |
cvPointSeqFromMat(int seq_kind,
CvArr mat,
CvContour contour_header,
CvSeqBlock block)
\brief Initializes sequence header for a matrix (column or row vector) of points
|
static void |
cvPolyLine(CvArr img,
CvPoint pts,
IntPointer npts,
int contours,
int is_closed,
CvScalar color) |
static void |
cvPolyLine(CvArr img,
CvPoint pts,
IntPointer npts,
int contours,
int is_closed,
CvScalar color,
int thickness,
int line_type,
int shift) |
static void |
cvPolyLine(CvArr img,
int[] pts,
int[] npts,
int contours,
int is_closed,
CvScalar color) |
static void |
cvPolyLine(CvArr img,
int[] pts,
int[] npts,
int contours,
int is_closed,
CvScalar color,
int thickness,
int line_type,
int shift) |
static void |
cvPolyLine(CvArr img,
IntBuffer pts,
IntBuffer npts,
int contours,
int is_closed,
CvScalar color) |
static void |
cvPolyLine(CvArr img,
IntBuffer pts,
IntBuffer npts,
int contours,
int is_closed,
CvScalar color,
int thickness,
int line_type,
int shift) |
static void |
cvPolyLine(CvArr img,
PointerPointer pts,
IntPointer npts,
int contours,
int is_closed,
CvScalar color,
int thickness,
int line_type,
int shift)
\brief Draws one or more polygonal curves
|
static void |
cvPreCornerDetect(CvArr image,
CvArr corners) |
static void |
cvPreCornerDetect(CvArr image,
CvArr corners,
int aperture_size)
\brief Calculates constraint image for corner detection
|
static void |
cvPutText(CvArr img,
BytePointer text,
CvPoint org,
CvFont font,
CvScalar color)
\brief Renders text stroke with specified font and color at specified location.
|
static void |
cvPutText(CvArr img,
BytePointer text,
int[] org,
CvFont font,
CvScalar color) |
static void |
cvPutText(CvArr img,
BytePointer text,
IntBuffer org,
CvFont font,
CvScalar color) |
static void |
cvPutText(CvArr img,
String text,
CvPoint org,
CvFont font,
CvScalar color) |
static void |
cvPutText(CvArr img,
String text,
int[] org,
CvFont font,
CvScalar color) |
static void |
cvPutText(CvArr img,
String text,
IntBuffer org,
CvFont font,
CvScalar color) |
static void |
cvPyrDown(CvArr src,
CvArr dst) |
static void |
cvPyrDown(CvArr src,
CvArr dst,
int filter)
\brief Smoothes the input image with gaussian kernel and then down-samples it.
|
static void |
cvPyrMeanShiftFiltering(CvArr src,
CvArr dst,
double sp,
double sr) |
static void |
cvPyrMeanShiftFiltering(CvArr src,
CvArr dst,
double sp,
double sr,
int max_level,
CvTermCriteria termcrit)
\brief Filters image using meanshift algorithm
|
static void |
cvPyrUp(CvArr src,
CvArr dst) |
static void |
cvPyrUp(CvArr src,
CvArr dst,
int filter)
\brief Up-samples image and smoothes the result with gaussian kernel.
|
static CvPoint |
cvReadChainPoint(CvChainPtReader reader)
\brief Retrieves the next chain point
|
static void |
cvRectangle(CvArr img,
CvPoint pt1,
CvPoint pt2,
CvScalar color) |
static void |
cvRectangle(CvArr img,
CvPoint pt1,
CvPoint pt2,
CvScalar color,
int thickness,
int line_type,
int shift)
\brief Draws a rectangle given two opposite corners of the rectangle (pt1 & pt2)
|
static void |
cvRectangle(CvArr img,
int[] pt1,
int[] pt2,
CvScalar color) |
static void |
cvRectangle(CvArr img,
int[] pt1,
int[] pt2,
CvScalar color,
int thickness,
int line_type,
int shift) |
static void |
cvRectangle(CvArr img,
IntBuffer pt1,
IntBuffer pt2,
CvScalar color) |
static void |
cvRectangle(CvArr img,
IntBuffer pt1,
IntBuffer pt2,
CvScalar color,
int thickness,
int line_type,
int shift) |
static void |
cvRectangleR(CvArr img,
CvRect r,
CvScalar color) |
static void |
cvRectangleR(CvArr img,
CvRect r,
CvScalar color,
int thickness,
int line_type,
int shift)
\brief Draws a rectangle specified by a CvRect structure
|
static void |
cvReleaseHist(CvHistogram hist) |
static void |
cvReleaseHist(PointerPointer hist)
\brief Releases the histogram.
|
static void |
cvReleasePyramid(PointerPointer pyramid,
int extra_layers)
\brief Releases pyramid
|
static void |
cvReleaseStructuringElement(IplConvKernel element) |
static void |
cvReleaseStructuringElement(PointerPointer element)
\brief releases structuring element
|
static void |
cvRemap(CvArr src,
CvArr dst,
CvArr mapx,
CvArr mapy) |
static void |
cvRemap(CvArr src,
CvArr dst,
CvArr mapx,
CvArr mapy,
int flags,
CvScalar fillval)
\brief Performs generic geometric transformation using the specified coordinate maps
|
static void |
cvResize(CvArr src,
CvArr dst) |
static void |
cvResize(CvArr src,
CvArr dst,
int interpolation)
\brief Resizes image (input array is resized to fit the destination array)
|
static void |
cvRunningAvg(CvArr image,
CvArr acc,
double alpha) |
static void |
cvRunningAvg(CvArr image,
CvArr acc,
double alpha,
CvArr mask)
\brief Adds image to accumulator with weights: acc = acc*(1-alpha) + image*alpha
|
static int |
cvSampleLine(CvArr image,
CvPoint pt1,
CvPoint pt2,
Pointer buffer) |
static int |
cvSampleLine(CvArr image,
CvPoint pt1,
CvPoint pt2,
Pointer buffer,
int connectivity)
\brief Fetches pixels that belong to the specified line segment and stores them to the buffer.
|
static int |
cvSampleLine(CvArr image,
int[] pt1,
int[] pt2,
Pointer buffer) |
static int |
cvSampleLine(CvArr image,
int[] pt1,
int[] pt2,
Pointer buffer,
int connectivity) |
static int |
cvSampleLine(CvArr image,
IntBuffer pt1,
IntBuffer pt2,
Pointer buffer) |
static int |
cvSampleLine(CvArr image,
IntBuffer pt1,
IntBuffer pt2,
Pointer buffer,
int connectivity) |
static void |
cvSetHistBinRanges(CvHistogram hist,
float[] ranges) |
static void |
cvSetHistBinRanges(CvHistogram hist,
float[] ranges,
int uniform) |
static void |
cvSetHistBinRanges(CvHistogram hist,
FloatBuffer ranges) |
static void |
cvSetHistBinRanges(CvHistogram hist,
FloatBuffer ranges,
int uniform) |
static void |
cvSetHistBinRanges(CvHistogram hist,
FloatPointer ranges) |
static void |
cvSetHistBinRanges(CvHistogram hist,
FloatPointer ranges,
int uniform) |
static void |
cvSetHistBinRanges(CvHistogram hist,
PointerPointer ranges,
int uniform)
\brief Sets the bounds of the histogram bins.
|
static void |
cvSmooth(CvArr src,
CvArr dst) |
static void |
cvSmooth(CvArr src,
CvArr dst,
int smoothtype,
int size1,
int size2,
double sigma1,
double sigma2)
\brief Smooths the image in one of several ways.
|
static void |
cvSobel(CvArr src,
CvArr dst,
int xorder,
int yorder) |
static void |
cvSobel(CvArr src,
CvArr dst,
int xorder,
int yorder,
int aperture_size)
\brief Calculates an image derivative using generalized Sobel
|
static void |
cvSquareAcc(CvArr image,
CvArr sqsum) |
static void |
cvSquareAcc(CvArr image,
CvArr sqsum,
CvArr mask)
\brief Adds squared image to accumulator
|
static CvContourScanner |
cvStartFindContours(CvArr image,
CvMemStorage storage) |
static CvContourScanner |
cvStartFindContours(CvArr image,
CvMemStorage storage,
int header_size,
int mode,
int method,
CvPoint offset)
\brief Initializes contour retrieving process.
|
static CvContourScanner |
cvStartFindContours(CvArr image,
CvMemStorage storage,
int header_size,
int mode,
int method,
int[] offset) |
static CvContourScanner |
cvStartFindContours(CvArr image,
CvMemStorage storage,
int header_size,
int mode,
int method,
IntBuffer offset) |
static void |
cvStartReadChainPoints(CvChain chain,
CvChainPtReader reader)
\brief Initializes Freeman chain reader.
|
static void |
cvSubstituteContour(CvContourScanner scanner,
CvSeq new_contour)
\brief Substitutes the last retrieved contour with the new one
|
static void |
cvtColor(GpuMat src,
GpuMat dst,
int code) |
static void |
cvtColor(GpuMat src,
GpuMat dst,
int code,
int dstCn) |
static void |
cvtColor(Mat src,
Mat dst,
int code) |
static void |
cvtColor(Mat src,
Mat dst,
int code,
int dstCn)
\} imgproc_misc
|
static void |
cvtColor(UMat src,
UMat dst,
int code) |
static void |
cvtColor(UMat src,
UMat dst,
int code,
int dstCn) |
static void |
cvtColorTwoPlane(GpuMat src1,
GpuMat src2,
GpuMat dst,
int code) |
static void |
cvtColorTwoPlane(Mat src1,
Mat src2,
Mat dst,
int code)
\brief Converts an image from one color space to another where the source image is
stored in two planes.
|
static void |
cvtColorTwoPlane(UMat src1,
UMat src2,
UMat dst,
int code) |
static void |
cvThreshHist(CvHistogram hist,
double threshold)
\brief Thresholds the histogram.
|
static double |
cvThreshold(CvArr src,
CvArr dst,
double threshold,
double max_value,
int threshold_type)
\brief Applies fixed-level threshold to grayscale image.
|
static void |
cvWarpAffine(CvArr src,
CvArr dst,
CvMat map_matrix) |
static void |
cvWarpAffine(CvArr src,
CvArr dst,
CvMat map_matrix,
int flags,
CvScalar fillval)
\brief Warps image with affine transform
\note ::cvGetQuadrangleSubPix is similar to ::cvWarpAffine, but the outliers are extrapolated using
replication border mode.
|
static void |
cvWarpPerspective(CvArr src,
CvArr dst,
CvMat map_matrix) |
static void |
cvWarpPerspective(CvArr src,
CvArr dst,
CvMat map_matrix,
int flags,
CvScalar fillval)
\brief Warps image with perspective (projective) transform
|
static void |
cvWatershed(CvArr image,
CvArr markers)
\brief Segments image using seed "markers"
|
static void |
demosaicing(GpuMat src,
GpuMat dst,
int code) |
static void |
demosaicing(GpuMat src,
GpuMat dst,
int code,
int dstCn) |
static void |
demosaicing(Mat src,
Mat dst,
int code) |
static void |
demosaicing(Mat src,
Mat dst,
int code,
int dstCn)
\brief main function for all demosaicing processes
|
static void |
demosaicing(UMat src,
UMat dst,
int code) |
static void |
demosaicing(UMat src,
UMat dst,
int code,
int dstCn) |
static void |
dilate(GpuMat src,
GpuMat dst,
GpuMat kernel) |
static void |
dilate(GpuMat src,
GpuMat dst,
GpuMat kernel,
Point anchor,
int iterations,
int borderType,
Scalar borderValue) |
static void |
dilate(Mat src,
Mat dst,
Mat kernel) |
static void |
dilate(Mat src,
Mat dst,
Mat kernel,
Point anchor,
int iterations,
int borderType,
Scalar borderValue)
\brief Dilates an image by using a specific structuring element.
|
static void |
dilate(UMat src,
UMat dst,
UMat kernel) |
static void |
dilate(UMat src,
UMat dst,
UMat kernel,
Point anchor,
int iterations,
int borderType,
Scalar borderValue) |
static void |
distanceTransform(GpuMat src,
GpuMat dst,
int distanceType,
int maskSize) |
static void |
distanceTransform(GpuMat src,
GpuMat dst,
int distanceType,
int maskSize,
int dstType) |
static void |
distanceTransform(Mat src,
Mat dst,
int distanceType,
int maskSize) |
static void |
distanceTransform(Mat src,
Mat dst,
int distanceType,
int maskSize,
int dstType)
\overload
|
static void |
distanceTransform(UMat src,
UMat dst,
int distanceType,
int maskSize) |
static void |
distanceTransform(UMat src,
UMat dst,
int distanceType,
int maskSize,
int dstType) |
static void |
distanceTransformWithLabels(GpuMat src,
GpuMat dst,
GpuMat labels,
int distanceType,
int maskSize) |
static void |
distanceTransformWithLabels(GpuMat src,
GpuMat dst,
GpuMat labels,
int distanceType,
int maskSize,
int labelType) |
static void |
distanceTransformWithLabels(Mat src,
Mat dst,
Mat labels,
int distanceType,
int maskSize) |
static void |
distanceTransformWithLabels(Mat src,
Mat dst,
Mat labels,
int distanceType,
int maskSize,
int labelType)
\brief Calculates the distance to the closest zero pixel for each pixel of the source image.
|
static void |
distanceTransformWithLabels(UMat src,
UMat dst,
UMat labels,
int distanceType,
int maskSize) |
static void |
distanceTransformWithLabels(UMat src,
UMat dst,
UMat labels,
int distanceType,
int maskSize,
int labelType) |
static void |
drawContours(GpuMat image,
GpuMatVector contours,
int contourIdx,
Scalar color) |
static void |
drawContours(GpuMat image,
GpuMatVector contours,
int contourIdx,
Scalar color,
int thickness,
int lineType,
GpuMat hierarchy,
int maxLevel,
Point offset) |
static void |
drawContours(GpuMat image,
MatVector contours,
int contourIdx,
Scalar color) |
static void |
drawContours(GpuMat image,
MatVector contours,
int contourIdx,
Scalar color,
int thickness,
int lineType,
GpuMat hierarchy,
int maxLevel,
Point offset) |
static void |
drawContours(GpuMat image,
UMatVector contours,
int contourIdx,
Scalar color) |
static void |
drawContours(GpuMat image,
UMatVector contours,
int contourIdx,
Scalar color,
int thickness,
int lineType,
GpuMat hierarchy,
int maxLevel,
Point offset) |
static void |
drawContours(Mat image,
GpuMatVector contours,
int contourIdx,
Scalar color) |
static void |
drawContours(Mat image,
GpuMatVector contours,
int contourIdx,
Scalar color,
int thickness,
int lineType,
Mat hierarchy,
int maxLevel,
Point offset) |
static void |
drawContours(Mat image,
MatVector contours,
int contourIdx,
Scalar color) |
static void |
drawContours(Mat image,
MatVector contours,
int contourIdx,
Scalar color,
int thickness,
int lineType,
Mat hierarchy,
int maxLevel,
Point offset)
\brief Draws contours outlines or filled contours.
|
static void |
drawContours(Mat image,
UMatVector contours,
int contourIdx,
Scalar color) |
static void |
drawContours(Mat image,
UMatVector contours,
int contourIdx,
Scalar color,
int thickness,
int lineType,
Mat hierarchy,
int maxLevel,
Point offset) |
static void |
drawContours(UMat image,
GpuMatVector contours,
int contourIdx,
Scalar color) |
static void |
drawContours(UMat image,
GpuMatVector contours,
int contourIdx,
Scalar color,
int thickness,
int lineType,
UMat hierarchy,
int maxLevel,
Point offset) |
static void |
drawContours(UMat image,
MatVector contours,
int contourIdx,
Scalar color) |
static void |
drawContours(UMat image,
MatVector contours,
int contourIdx,
Scalar color,
int thickness,
int lineType,
UMat hierarchy,
int maxLevel,
Point offset) |
static void |
drawContours(UMat image,
UMatVector contours,
int contourIdx,
Scalar color) |
static void |
drawContours(UMat image,
UMatVector contours,
int contourIdx,
Scalar color,
int thickness,
int lineType,
UMat hierarchy,
int maxLevel,
Point offset) |
static void |
drawMarker(GpuMat img,
Point _position,
Scalar color) |
static void |
drawMarker(GpuMat img,
Point _position,
Scalar color,
int markerType,
int markerSize,
int thickness,
int line_type) |
static void |
drawMarker(Mat img,
Point _position,
Scalar color) |
static void |
drawMarker(Mat img,
Point _position,
Scalar color,
int markerType,
int markerSize,
int thickness,
int line_type)
\brief Draws a marker on a predefined position in an image.
|
static void |
drawMarker(UMat img,
Point _position,
Scalar color) |
static void |
drawMarker(UMat img,
Point _position,
Scalar color,
int markerType,
int markerSize,
int thickness,
int line_type) |
static void |
ellipse(GpuMat img,
Point center,
Size axes,
double angle,
double startAngle,
double endAngle,
Scalar color) |
static void |
ellipse(GpuMat img,
Point center,
Size axes,
double angle,
double startAngle,
double endAngle,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
ellipse(GpuMat img,
RotatedRect box,
Scalar color) |
static void |
ellipse(GpuMat img,
RotatedRect box,
Scalar color,
int thickness,
int lineType) |
static void |
ellipse(Mat img,
Point center,
Size axes,
double angle,
double startAngle,
double endAngle,
Scalar color) |
static void |
ellipse(Mat img,
Point center,
Size axes,
double angle,
double startAngle,
double endAngle,
Scalar color,
int thickness,
int lineType,
int shift)
\brief 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,
int lineType)
\overload
|
static void |
ellipse(UMat img,
Point center,
Size axes,
double angle,
double startAngle,
double endAngle,
Scalar color) |
static void |
ellipse(UMat img,
Point center,
Size axes,
double angle,
double startAngle,
double endAngle,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
ellipse(UMat img,
RotatedRect box,
Scalar color) |
static void |
ellipse(UMat img,
RotatedRect box,
Scalar color,
int thickness,
int lineType) |
static void |
ellipse2Poly(Point2d center,
Size2d axes,
int angle,
int arcStart,
int arcEnd,
int delta,
Point2dVector pts)
\overload
|
static void |
ellipse2Poly(Point center,
Size axes,
int angle,
int arcStart,
int arcEnd,
int delta,
PointVector pts)
\brief Approximates an elliptic arc with a polyline.
|
static float |
EMD(GpuMat signature1,
GpuMat signature2,
int distType) |
static float |
EMD(GpuMat signature1,
GpuMat signature2,
int distType,
GpuMat cost,
float[] lowerBound,
GpuMat flow) |
static float |
EMD(GpuMat signature1,
GpuMat signature2,
int distType,
GpuMat cost,
FloatBuffer lowerBound,
GpuMat flow) |
static float |
EMD(GpuMat signature1,
GpuMat signature2,
int distType,
GpuMat cost,
FloatPointer lowerBound,
GpuMat flow) |
static float |
EMD(Mat signature1,
Mat signature2,
int distType) |
static float |
EMD(Mat signature1,
Mat signature2,
int distType,
Mat cost,
float[] lowerBound,
Mat flow) |
static float |
EMD(Mat signature1,
Mat signature2,
int distType,
Mat cost,
FloatBuffer lowerBound,
Mat flow) |
static float |
EMD(Mat signature1,
Mat signature2,
int distType,
Mat cost,
FloatPointer lowerBound,
Mat flow)
\brief Computes the "minimal work" distance between two weighted point configurations.
|
static float |
EMD(UMat signature1,
UMat signature2,
int distType) |
static float |
EMD(UMat signature1,
UMat signature2,
int distType,
UMat cost,
float[] lowerBound,
UMat flow) |
static float |
EMD(UMat signature1,
UMat signature2,
int distType,
UMat cost,
FloatBuffer lowerBound,
UMat flow) |
static float |
EMD(UMat signature1,
UMat signature2,
int distType,
UMat cost,
FloatPointer lowerBound,
UMat flow) |
static void |
equalizeHist(GpuMat src,
GpuMat dst) |
static void |
equalizeHist(Mat src,
Mat dst)
\brief Equalizes the histogram of a grayscale image.
|
static void |
equalizeHist(UMat src,
UMat dst) |
static void |
erode(GpuMat src,
GpuMat dst,
GpuMat kernel) |
static void |
erode(GpuMat src,
GpuMat dst,
GpuMat kernel,
Point anchor,
int iterations,
int borderType,
Scalar borderValue) |
static void |
erode(Mat src,
Mat dst,
Mat kernel) |
static void |
erode(Mat src,
Mat dst,
Mat kernel,
Point anchor,
int iterations,
int borderType,
Scalar borderValue)
\brief Erodes an image by using a specific structuring element.
|
static void |
erode(UMat src,
UMat dst,
UMat kernel) |
static void |
erode(UMat src,
UMat dst,
UMat kernel,
Point anchor,
int iterations,
int borderType,
Scalar borderValue) |
static void |
fillConvexPoly(GpuMat img,
GpuMat points,
Scalar color) |
static void |
fillConvexPoly(GpuMat img,
GpuMat points,
Scalar color,
int lineType,
int shift) |
static void |
fillConvexPoly(GpuMat img,
Point pts,
int npts,
Scalar color) |
static void |
fillConvexPoly(GpuMat img,
Point pts,
int npts,
Scalar color,
int lineType,
int shift) |
static void |
fillConvexPoly(Mat img,
Mat points,
Scalar color) |
static void |
fillConvexPoly(Mat img,
Mat points,
Scalar color,
int lineType,
int shift)
\brief Fills a convex polygon.
|
static void |
fillConvexPoly(Mat img,
Point pts,
int npts,
Scalar color) |
static void |
fillConvexPoly(Mat img,
Point pts,
int npts,
Scalar color,
int lineType,
int shift)
\overload
|
static void |
fillConvexPoly(UMat img,
Point pts,
int npts,
Scalar color) |
static void |
fillConvexPoly(UMat img,
Point pts,
int npts,
Scalar color,
int lineType,
int shift) |
static void |
fillConvexPoly(UMat img,
UMat points,
Scalar color) |
static void |
fillConvexPoly(UMat img,
UMat points,
Scalar color,
int lineType,
int shift) |
static void |
fillPoly(GpuMat img,
GpuMatVector pts,
Scalar color) |
static void |
fillPoly(GpuMat img,
GpuMatVector pts,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(GpuMat img,
MatVector pts,
Scalar color) |
static void |
fillPoly(GpuMat img,
MatVector pts,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(GpuMat img,
Point pts,
int[] npts,
int ncontours,
Scalar color) |
static void |
fillPoly(GpuMat img,
Point pts,
int[] npts,
int ncontours,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(GpuMat img,
Point pts,
IntBuffer npts,
int ncontours,
Scalar color) |
static void |
fillPoly(GpuMat img,
Point pts,
IntBuffer npts,
int ncontours,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(GpuMat img,
Point pts,
IntPointer npts,
int ncontours,
Scalar color) |
static void |
fillPoly(GpuMat img,
Point pts,
IntPointer npts,
int ncontours,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(GpuMat img,
UMatVector pts,
Scalar color) |
static void |
fillPoly(GpuMat img,
UMatVector pts,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(Mat img,
GpuMatVector pts,
Scalar color) |
static void |
fillPoly(Mat img,
GpuMatVector pts,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(Mat img,
MatVector pts,
Scalar color) |
static void |
fillPoly(Mat img,
MatVector pts,
Scalar color,
int lineType,
int shift,
Point offset)
\brief Fills the area bounded by one or more polygons.
|
static void |
fillPoly(Mat img,
PointerPointer pts,
IntPointer npts,
int ncontours,
Scalar color,
int lineType,
int shift,
Point offset)
\overload
|
static void |
fillPoly(Mat img,
Point pts,
int[] npts,
int ncontours,
Scalar color) |
static void |
fillPoly(Mat img,
Point pts,
int[] npts,
int ncontours,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(Mat img,
Point pts,
IntBuffer npts,
int ncontours,
Scalar color) |
static void |
fillPoly(Mat img,
Point pts,
IntBuffer npts,
int ncontours,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(Mat img,
Point pts,
IntPointer npts,
int ncontours,
Scalar color) |
static void |
fillPoly(Mat img,
Point pts,
IntPointer npts,
int ncontours,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(Mat img,
UMatVector pts,
Scalar color) |
static void |
fillPoly(Mat img,
UMatVector pts,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(UMat img,
GpuMatVector pts,
Scalar color) |
static void |
fillPoly(UMat img,
GpuMatVector pts,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(UMat img,
MatVector pts,
Scalar color) |
static void |
fillPoly(UMat img,
MatVector pts,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(UMat img,
Point pts,
int[] npts,
int ncontours,
Scalar color) |
static void |
fillPoly(UMat img,
Point pts,
int[] npts,
int ncontours,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(UMat img,
Point pts,
IntBuffer npts,
int ncontours,
Scalar color) |
static void |
fillPoly(UMat img,
Point pts,
IntBuffer npts,
int ncontours,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(UMat img,
Point pts,
IntPointer npts,
int ncontours,
Scalar color) |
static void |
fillPoly(UMat img,
Point pts,
IntPointer npts,
int ncontours,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
fillPoly(UMat img,
UMatVector pts,
Scalar color) |
static void |
fillPoly(UMat img,
UMatVector pts,
Scalar color,
int lineType,
int shift,
Point offset) |
static void |
filter2D(GpuMat src,
GpuMat dst,
int ddepth,
GpuMat kernel) |
static void |
filter2D(GpuMat src,
GpuMat dst,
int ddepth,
GpuMat kernel,
Point anchor,
double delta,
int borderType) |
static void |
filter2D(Mat src,
Mat dst,
int ddepth,
Mat kernel) |
static void |
filter2D(Mat src,
Mat dst,
int ddepth,
Mat kernel,
Point anchor,
double delta,
int borderType)
\brief Convolves an image with the kernel.
|
static void |
filter2D(UMat src,
UMat dst,
int ddepth,
UMat kernel) |
static void |
filter2D(UMat src,
UMat dst,
int ddepth,
UMat kernel,
Point anchor,
double delta,
int borderType) |
static void |
findContours(GpuMat image,
GpuMatVector contours,
GpuMat hierarchy,
int mode,
int method) |
static void |
findContours(GpuMat image,
GpuMatVector contours,
GpuMat hierarchy,
int mode,
int method,
Point offset) |
static void |
findContours(GpuMat image,
GpuMatVector contours,
int mode,
int method) |
static void |
findContours(GpuMat image,
GpuMatVector contours,
int mode,
int method,
Point offset) |
static void |
findContours(GpuMat image,
MatVector contours,
GpuMat hierarchy,
int mode,
int method) |
static void |
findContours(GpuMat image,
MatVector contours,
GpuMat hierarchy,
int mode,
int method,
Point offset) |
static void |
findContours(GpuMat image,
MatVector contours,
int mode,
int method) |
static void |
findContours(GpuMat image,
MatVector contours,
int mode,
int method,
Point offset) |
static void |
findContours(GpuMat image,
UMatVector contours,
GpuMat hierarchy,
int mode,
int method) |
static void |
findContours(GpuMat image,
UMatVector contours,
GpuMat hierarchy,
int mode,
int method,
Point offset) |
static void |
findContours(GpuMat image,
UMatVector contours,
int mode,
int method) |
static void |
findContours(GpuMat image,
UMatVector contours,
int mode,
int method,
Point offset) |
static void |
findContours(Mat image,
GpuMatVector contours,
int mode,
int method) |
static void |
findContours(Mat image,
GpuMatVector contours,
int mode,
int method,
Point offset) |
static void |
findContours(Mat image,
GpuMatVector contours,
Mat hierarchy,
int mode,
int method) |
static void |
findContours(Mat image,
GpuMatVector contours,
Mat hierarchy,
int mode,
int method,
Point offset) |
static void |
findContours(Mat image,
MatVector contours,
int mode,
int method) |
static void |
findContours(Mat image,
MatVector contours,
int mode,
int method,
Point offset)
\overload
|
static void |
findContours(Mat image,
MatVector contours,
Mat hierarchy,
int mode,
int method) |
static void |
findContours(Mat image,
MatVector contours,
Mat hierarchy,
int mode,
int method,
Point offset)
\brief Finds contours in a binary image.
|
static void |
findContours(Mat image,
UMatVector contours,
int mode,
int method) |
static void |
findContours(Mat image,
UMatVector contours,
int mode,
int method,
Point offset) |
static void |
findContours(Mat image,
UMatVector contours,
Mat hierarchy,
int mode,
int method) |
static void |
findContours(Mat image,
UMatVector contours,
Mat hierarchy,
int mode,
int method,
Point offset) |
static void |
findContours(UMat image,
GpuMatVector contours,
int mode,
int method) |
static void |
findContours(UMat image,
GpuMatVector contours,
int mode,
int method,
Point offset) |
static void |
findContours(UMat image,
GpuMatVector contours,
UMat hierarchy,
int mode,
int method) |
static void |
findContours(UMat image,
GpuMatVector contours,
UMat hierarchy,
int mode,
int method,
Point offset) |
static void |
findContours(UMat image,
MatVector contours,
int mode,
int method) |
static void |
findContours(UMat image,
MatVector contours,
int mode,
int method,
Point offset) |
static void |
findContours(UMat image,
MatVector contours,
UMat hierarchy,
int mode,
int method) |
static void |
findContours(UMat image,
MatVector contours,
UMat hierarchy,
int mode,
int method,
Point offset) |
static void |
findContours(UMat image,
UMatVector contours,
int mode,
int method) |
static void |
findContours(UMat image,
UMatVector contours,
int mode,
int method,
Point offset) |
static void |
findContours(UMat image,
UMatVector contours,
UMat hierarchy,
int mode,
int method) |
static void |
findContours(UMat image,
UMatVector contours,
UMat hierarchy,
int mode,
int method,
Point offset) |
static RotatedRect |
fitEllipse(GpuMat points) |
static RotatedRect |
fitEllipse(Mat points)
\brief Fits an ellipse around a set of 2D points.
|
static RotatedRect |
fitEllipse(UMat points) |
static RotatedRect |
fitEllipseAMS(GpuMat points) |
static RotatedRect |
fitEllipseAMS(Mat points)
\brief Fits an ellipse around a set of 2D points.
|
static RotatedRect |
fitEllipseAMS(UMat points) |
static RotatedRect |
fitEllipseDirect(GpuMat points) |
static RotatedRect |
fitEllipseDirect(Mat points)
\brief Fits an ellipse around a set of 2D points.
|
static RotatedRect |
fitEllipseDirect(UMat points) |
static void |
fitLine(GpuMat points,
GpuMat line,
int distType,
double param,
double reps,
double aeps) |
static void |
fitLine(Mat points,
Mat line,
int distType,
double param,
double reps,
double aeps)
\brief Fits a line to a 2D or 3D point set.
|
static void |
fitLine(UMat points,
UMat line,
int distType,
double param,
double reps,
double aeps) |
static int |
floodFill(GpuMat image,
GpuMat mask,
Point seedPoint,
Scalar newVal) |
static int |
floodFill(GpuMat image,
GpuMat mask,
Point seedPoint,
Scalar newVal,
Rect rect,
Scalar loDiff,
Scalar upDiff,
int flags) |
static int |
floodFill(GpuMat image,
Point seedPoint,
Scalar newVal) |
static int |
floodFill(GpuMat image,
Point seedPoint,
Scalar newVal,
Rect rect,
Scalar loDiff,
Scalar upDiff,
int flags) |
static int |
floodFill(Mat image,
Mat mask,
Point seedPoint,
Scalar newVal) |
static int |
floodFill(Mat image,
Mat mask,
Point seedPoint,
Scalar newVal,
Rect rect,
Scalar loDiff,
Scalar upDiff,
int flags)
\brief Fills a connected component with the given color.
|
static int |
floodFill(Mat image,
Point seedPoint,
Scalar newVal) |
static int |
floodFill(Mat image,
Point seedPoint,
Scalar newVal,
Rect rect,
Scalar loDiff,
Scalar upDiff,
int flags)
\overload
|
static int |
floodFill(UMat image,
Point seedPoint,
Scalar newVal) |
static int |
floodFill(UMat image,
Point seedPoint,
Scalar newVal,
Rect rect,
Scalar loDiff,
Scalar upDiff,
int flags) |
static int |
floodFill(UMat image,
UMat mask,
Point seedPoint,
Scalar newVal) |
static int |
floodFill(UMat image,
UMat mask,
Point seedPoint,
Scalar newVal,
Rect rect,
Scalar loDiff,
Scalar upDiff,
int flags) |
static void |
GaussianBlur(GpuMat src,
GpuMat dst,
Size ksize,
double sigmaX) |
static void |
GaussianBlur(GpuMat src,
GpuMat dst,
Size ksize,
double sigmaX,
double sigmaY,
int borderType) |
static void |
GaussianBlur(Mat src,
Mat dst,
Size ksize,
double sigmaX) |
static void |
GaussianBlur(Mat src,
Mat dst,
Size ksize,
double sigmaX,
double sigmaY,
int borderType)
\brief Blurs an image using a Gaussian filter.
|
static void |
GaussianBlur(UMat src,
UMat dst,
Size ksize,
double sigmaX) |
static void |
GaussianBlur(UMat src,
UMat dst,
Size ksize,
double sigmaX,
double sigmaY,
int borderType) |
static Mat |
getAffineTransform(GpuMat src,
GpuMat dst) |
static Mat |
getAffineTransform(Mat src,
Mat dst) |
static Mat |
getAffineTransform(Point2f src,
Point2f dst)
\brief Calculates an affine transform from three pairs of the corresponding points.
|
static Mat |
getAffineTransform(UMat src,
UMat dst) |
static void |
getDerivKernels(GpuMat kx,
GpuMat ky,
int dx,
int dy,
int ksize) |
static void |
getDerivKernels(GpuMat kx,
GpuMat ky,
int dx,
int dy,
int ksize,
boolean normalize,
int ktype) |
static void |
getDerivKernels(Mat kx,
Mat ky,
int dx,
int dy,
int ksize) |
static void |
getDerivKernels(Mat kx,
Mat ky,
int dx,
int dy,
int ksize,
boolean normalize,
int ktype)
\brief Returns filter coefficients for computing spatial image derivatives.
|
static void |
getDerivKernels(UMat kx,
UMat ky,
int dx,
int dy,
int ksize) |
static void |
getDerivKernels(UMat kx,
UMat ky,
int dx,
int dy,
int ksize,
boolean normalize,
int ktype) |
static double |
getFontScaleFromHeight(int fontFace,
int pixelHeight) |
static double |
getFontScaleFromHeight(int fontFace,
int pixelHeight,
int thickness)
\brief 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) |
static Mat |
getGaborKernel(Size ksize,
double sigma,
double theta,
double lambd,
double gamma,
double psi,
int ktype)
\brief Returns Gabor filter coefficients.
|
static Mat |
getGaussianKernel(int ksize,
double sigma) |
static Mat |
getGaussianKernel(int ksize,
double sigma,
int ktype)
\} imgproc_feature
|
static Mat |
getPerspectiveTransform(GpuMat src,
GpuMat dst) |
static Mat |
getPerspectiveTransform(GpuMat src,
GpuMat dst,
int solveMethod) |
static Mat |
getPerspectiveTransform(Mat src,
Mat dst) |
static Mat |
getPerspectiveTransform(Mat src,
Mat dst,
int solveMethod)
\brief Calculates a perspective transform from four pairs of the corresponding points.
|
static Mat |
getPerspectiveTransform(Point2f src,
Point2f dst) |
static Mat |
getPerspectiveTransform(Point2f src,
Point2f dst,
int solveMethod)
\overload
|
static Mat |
getPerspectiveTransform(UMat src,
UMat dst) |
static Mat |
getPerspectiveTransform(UMat src,
UMat dst,
int solveMethod) |
static void |
getRectSubPix(GpuMat image,
Size patchSize,
Point2f center,
GpuMat patch) |
static void |
getRectSubPix(GpuMat image,
Size patchSize,
Point2f center,
GpuMat patch,
int patchType) |
static void |
getRectSubPix(Mat image,
Size patchSize,
Point2f center,
Mat patch) |
static void |
getRectSubPix(Mat image,
Size patchSize,
Point2f center,
Mat patch,
int patchType)
\brief Retrieves a pixel rectangle from an image with sub-pixel accuracy.
|
static void |
getRectSubPix(UMat image,
Size patchSize,
Point2f center,
UMat patch) |
static void |
getRectSubPix(UMat image,
Size patchSize,
Point2f center,
UMat patch,
int patchType) |
static DoublePointer |
getRotationMatrix2D_(Point2f center,
double angle,
double scale) |
static Mat |
getRotationMatrix2D(Point2f center,
double angle,
double scale)
\brief Calculates an affine matrix of 2D rotation.
|
static Mat |
getStructuringElement(int shape,
Size ksize) |
static Mat |
getStructuringElement(int shape,
Size ksize,
Point anchor)
\brief Returns a structuring element of the specified size and shape for morphological operations.
|
static Size |
getTextSize(BytePointer text,
int fontFace,
double fontScale,
int thickness,
int[] baseLine) |
static Size |
getTextSize(BytePointer text,
int fontFace,
double fontScale,
int thickness,
IntBuffer baseLine) |
static Size |
getTextSize(BytePointer text,
int fontFace,
double fontScale,
int thickness,
IntPointer baseLine)
\brief Calculates the width and height of a text string.
|
static Size |
getTextSize(String text,
int fontFace,
double fontScale,
int thickness,
int[] baseLine) |
static Size |
getTextSize(String text,
int fontFace,
double fontScale,
int thickness,
IntBuffer baseLine) |
static Size |
getTextSize(String text,
int fontFace,
double fontScale,
int thickness,
IntPointer baseLine) |
static void |
goodFeaturesToTrack(GpuMat image,
GpuMat corners,
int maxCorners,
double qualityLevel,
double minDistance) |
static void |
goodFeaturesToTrack(GpuMat image,
GpuMat corners,
int maxCorners,
double qualityLevel,
double minDistance,
GpuMat mask,
int blockSize,
boolean useHarrisDetector,
double k) |
static void |
goodFeaturesToTrack(GpuMat image,
GpuMat corners,
int maxCorners,
double qualityLevel,
double minDistance,
GpuMat mask,
int blockSize,
int gradientSize) |
static void |
goodFeaturesToTrack(GpuMat image,
GpuMat corners,
int maxCorners,
double qualityLevel,
double minDistance,
GpuMat mask,
int blockSize,
int gradientSize,
boolean useHarrisDetector,
double k) |
static void |
goodFeaturesToTrack(Mat image,
Mat corners,
int maxCorners,
double qualityLevel,
double minDistance) |
static void |
goodFeaturesToTrack(Mat image,
Mat corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
int blockSize,
boolean useHarrisDetector,
double k)
\brief Determines strong corners on an image.
|
static void |
goodFeaturesToTrack(Mat image,
Mat corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
int blockSize,
int gradientSize) |
static void |
goodFeaturesToTrack(Mat image,
Mat corners,
int maxCorners,
double qualityLevel,
double minDistance,
Mat mask,
int blockSize,
int gradientSize,
boolean useHarrisDetector,
double k) |
static void |
goodFeaturesToTrack(UMat image,
UMat corners,
int maxCorners,
double qualityLevel,
double minDistance) |
static void |
goodFeaturesToTrack(UMat image,
UMat corners,
int maxCorners,
double qualityLevel,
double minDistance,
UMat mask,
int blockSize,
boolean useHarrisDetector,
double k) |
static void |
goodFeaturesToTrack(UMat image,
UMat corners,
int maxCorners,
double qualityLevel,
double minDistance,
UMat mask,
int blockSize,
int gradientSize) |
static void |
goodFeaturesToTrack(UMat image,
UMat corners,
int maxCorners,
double qualityLevel,
double minDistance,
UMat mask,
int blockSize,
int gradientSize,
boolean useHarrisDetector,
double k) |
static void |
grabCut(GpuMat img,
GpuMat mask,
Rect rect,
GpuMat bgdModel,
GpuMat fgdModel,
int iterCount) |
static void |
grabCut(GpuMat img,
GpuMat mask,
Rect rect,
GpuMat bgdModel,
GpuMat fgdModel,
int iterCount,
int mode) |
static void |
grabCut(Mat img,
Mat mask,
Rect rect,
Mat bgdModel,
Mat fgdModel,
int iterCount) |
static void |
grabCut(Mat img,
Mat mask,
Rect rect,
Mat bgdModel,
Mat fgdModel,
int iterCount,
int mode)
\brief Runs the GrabCut algorithm.
|
static void |
grabCut(UMat img,
UMat mask,
Rect rect,
UMat bgdModel,
UMat fgdModel,
int iterCount) |
static void |
grabCut(UMat img,
UMat mask,
Rect rect,
UMat bgdModel,
UMat fgdModel,
int iterCount,
int mode) |
static void |
HoughCircles(Mat image,
Vec3fVector circles,
int method,
double dp,
double minDist,
double param1,
double param2,
int minRadius,
int maxRadius)
\brief Finds circles in a grayscale image using the Hough transform.
|
static void |
HoughCircles(Mat image,
Vec4fVector circles,
int method,
double dp,
double minDist,
double param1,
double param2,
int minRadius,
int maxRadius) |
static void |
HoughLines(Mat image,
Vec2fVector lines,
double rho,
double theta,
int threshold,
double srn,
double stn,
double min_theta,
double max_theta)
\brief Finds lines in a binary image using the standard Hough transform.
|
static void |
HoughLines(Mat image,
Vec3fVector lines,
double rho,
double theta,
int threshold,
double srn,
double stn,
double min_theta,
double max_theta) |
static void |
HoughLinesP(Mat image,
Vec4iVector lines,
double rho,
double theta,
int threshold,
double minLineLength,
double maxLineGap)
\brief Finds line segments in a binary image using the probabilistic Hough transform.
|
static void |
HoughLinesPointSet(GpuMat _point,
GpuMat _lines,
int lines_max,
int threshold,
double min_rho,
double max_rho,
double rho_step,
double min_theta,
double max_theta,
double theta_step) |
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)
\brief Finds lines in a set of points using the standard Hough transform.
|
static void |
HoughLinesPointSet(UMat _point,
UMat _lines,
int lines_max,
int threshold,
double min_rho,
double max_rho,
double rho_step,
double min_theta,
double max_theta,
double theta_step) |
static void |
HuMoments(Moments moments,
double[] hu) |
static void |
HuMoments(Moments moments,
DoubleBuffer hu) |
static void |
HuMoments(Moments moments,
DoublePointer hu)
\brief Calculates seven Hu invariants.
|
static void |
HuMoments(Moments m,
GpuMat hu) |
static void |
HuMoments(Moments m,
Mat hu)
\overload
|
static void |
HuMoments(Moments m,
UMat hu) |
static void |
integral(GpuMat src,
GpuMat sum) |
static void |
integral(GpuMat src,
GpuMat sum,
int sdepth) |
static void |
integral(Mat src,
Mat sum) |
static void |
integral(Mat src,
Mat sum,
int sdepth)
\} imgproc_transform
|
static void |
integral(UMat src,
UMat sum) |
static void |
integral(UMat src,
UMat sum,
int sdepth) |
static void |
integral2(GpuMat src,
GpuMat sum,
GpuMat sqsum) |
static void |
integral2(GpuMat src,
GpuMat sum,
GpuMat sqsum,
int sdepth,
int sqdepth) |
static void |
integral2(Mat src,
Mat sum,
Mat sqsum) |
static void |
integral2(Mat src,
Mat sum,
Mat sqsum,
int sdepth,
int sqdepth)
\overload
|
static void |
integral2(UMat src,
UMat sum,
UMat sqsum) |
static void |
integral2(UMat src,
UMat sum,
UMat sqsum,
int sdepth,
int sqdepth) |
static void |
integral3(GpuMat src,
GpuMat sum,
GpuMat sqsum,
GpuMat tilted) |
static void |
integral3(GpuMat src,
GpuMat sum,
GpuMat sqsum,
GpuMat tilted,
int sdepth,
int sqdepth) |
static void |
integral3(Mat src,
Mat sum,
Mat sqsum,
Mat tilted) |
static void |
integral3(Mat src,
Mat sum,
Mat sqsum,
Mat tilted,
int sdepth,
int sqdepth)
\brief Calculates the integral of an image.
|
static void |
integral3(UMat src,
UMat sum,
UMat sqsum,
UMat tilted) |
static void |
integral3(UMat src,
UMat sum,
UMat sqsum,
UMat tilted,
int sdepth,
int sqdepth) |
static float |
intersectConvexConvex(GpuMat _p1,
GpuMat _p2,
GpuMat _p12) |
static float |
intersectConvexConvex(GpuMat _p1,
GpuMat _p2,
GpuMat _p12,
boolean handleNested) |
static float |
intersectConvexConvex(Mat _p1,
Mat _p2,
Mat _p12) |
static float |
intersectConvexConvex(Mat _p1,
Mat _p2,
Mat _p12,
boolean handleNested)
\brief Finds intersection of two convex polygons
|
static float |
intersectConvexConvex(UMat _p1,
UMat _p2,
UMat _p12) |
static float |
intersectConvexConvex(UMat _p1,
UMat _p2,
UMat _p12,
boolean handleNested) |
static void |
invertAffineTransform(GpuMat M,
GpuMat iM) |
static void |
invertAffineTransform(Mat M,
Mat iM)
\brief Inverts an affine transformation.
|
static void |
invertAffineTransform(UMat M,
UMat iM) |
static boolean |
isContourConvex(GpuMat contour) |
static boolean |
isContourConvex(Mat contour)
\brief Tests a contour convexity.
|
static boolean |
isContourConvex(UMat contour) |
static void |
Laplacian(GpuMat src,
GpuMat dst,
int ddepth) |
static void |
Laplacian(GpuMat src,
GpuMat dst,
int ddepth,
int ksize,
double scale,
double delta,
int borderType) |
static void |
Laplacian(Mat src,
Mat dst,
int ddepth) |
static void |
Laplacian(Mat src,
Mat dst,
int ddepth,
int ksize,
double scale,
double delta,
int borderType)
\brief Calculates the Laplacian of an image.
|
static void |
Laplacian(UMat src,
UMat dst,
int ddepth) |
static void |
Laplacian(UMat src,
UMat dst,
int ddepth,
int ksize,
double scale,
double delta,
int borderType) |
static void |
line(GpuMat img,
Point pt1,
Point pt2,
Scalar color) |
static void |
line(GpuMat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
line(Mat img,
Point pt1,
Point pt2,
Scalar color) |
static void |
line(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType,
int shift)
\brief Draws a line segment connecting two points.
|
static void |
line(UMat img,
Point pt1,
Point pt2,
Scalar color) |
static void |
line(UMat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
linearPolar(GpuMat src,
GpuMat dst,
Point2f center,
double maxRadius,
int flags) |
static void |
linearPolar(Mat src,
Mat dst,
Point2f center,
double maxRadius,
int flags)
Deprecated.
This function produces same result as cv::warpPolar(src, dst, src.size(), center, maxRadius, flags)
\internal Transform the source image using the following transformation (See \ref polar_remaps_reference_image "Polar remaps reference image c)"):
where
and
|
static void |
linearPolar(UMat src,
UMat dst,
Point2f center,
double maxRadius,
int flags) |
static void |
logPolar(GpuMat src,
GpuMat dst,
Point2f center,
double M,
int flags) |
static void |
logPolar(Mat src,
Mat dst,
Point2f center,
double M,
int flags)
Deprecated.
This function produces same result as cv::warpPolar(src, dst, src.size(), center, maxRadius, flags+WARP_POLAR_LOG);
\internal Transform the source image using the following transformation (See \ref polar_remaps_reference_image "Polar remaps reference image d)"):
where
and
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 void |
logPolar(UMat src,
UMat dst,
Point2f center,
double M,
int flags) |
static double |
matchShapes(GpuMat contour1,
GpuMat contour2,
int method,
double parameter) |
static double |
matchShapes(Mat contour1,
Mat contour2,
int method,
double parameter)
\brief Compares two shapes.
|
static double |
matchShapes(UMat contour1,
UMat contour2,
int method,
double parameter) |
static void |
matchTemplate(GpuMat image,
GpuMat templ,
GpuMat result,
int method) |
static void |
matchTemplate(GpuMat image,
GpuMat templ,
GpuMat result,
int method,
GpuMat mask) |
static void |
matchTemplate(Mat image,
Mat templ,
Mat result,
int method) |
static void |
matchTemplate(Mat image,
Mat templ,
Mat result,
int method,
Mat mask)
\brief Compares a template against overlapped image regions.
|
static void |
matchTemplate(UMat image,
UMat templ,
UMat result,
int method) |
static void |
matchTemplate(UMat image,
UMat templ,
UMat result,
int method,
UMat mask) |
static void |
medianBlur(GpuMat src,
GpuMat dst,
int ksize) |
static void |
medianBlur(Mat src,
Mat dst,
int ksize)
\brief Blurs an image using the median filter.
|
static void |
medianBlur(UMat src,
UMat dst,
int ksize) |
static RotatedRect |
minAreaRect(GpuMat points) |
static RotatedRect |
minAreaRect(Mat points)
\brief Finds a rotated rectangle of the minimum area enclosing the input 2D point set.
|
static RotatedRect |
minAreaRect(UMat points) |
static void |
minEnclosingCircle(GpuMat points,
Point2f center,
float[] radius) |
static void |
minEnclosingCircle(GpuMat points,
Point2f center,
FloatBuffer radius) |
static void |
minEnclosingCircle(GpuMat points,
Point2f center,
FloatPointer radius) |
static void |
minEnclosingCircle(Mat points,
Point2f center,
float[] radius) |
static void |
minEnclosingCircle(Mat points,
Point2f center,
FloatBuffer radius) |
static void |
minEnclosingCircle(Mat points,
Point2f center,
FloatPointer radius)
\brief Finds a circle of the minimum area enclosing a 2D point set.
|
static void |
minEnclosingCircle(UMat points,
Point2f center,
float[] radius) |
static void |
minEnclosingCircle(UMat points,
Point2f center,
FloatBuffer radius) |
static void |
minEnclosingCircle(UMat points,
Point2f center,
FloatPointer radius) |
static double |
minEnclosingTriangle(GpuMat points,
GpuMat triangle) |
static double |
minEnclosingTriangle(Mat points,
Mat triangle)
\brief Finds a triangle of minimum area enclosing a 2D point set and returns its area.
|
static double |
minEnclosingTriangle(UMat points,
UMat triangle) |
static Moments |
moments(GpuMat array) |
static Moments |
moments(GpuMat array,
boolean binaryImage) |
static Moments |
moments(Mat array) |
static Moments |
moments(Mat array,
boolean binaryImage)
\} imgproc_color_conversions
|
static Moments |
moments(UMat array) |
static Moments |
moments(UMat array,
boolean binaryImage) |
static Scalar |
morphologyDefaultBorderValue()
returns "magic" border value for erosion and dilation.
|
static void |
morphologyEx(GpuMat src,
GpuMat dst,
int op,
GpuMat kernel) |
static void |
morphologyEx(GpuMat src,
GpuMat dst,
int op,
GpuMat kernel,
Point anchor,
int iterations,
int borderType,
Scalar borderValue) |
static void |
morphologyEx(Mat src,
Mat dst,
int op,
Mat kernel) |
static void |
morphologyEx(Mat src,
Mat dst,
int op,
Mat kernel,
Point anchor,
int iterations,
int borderType,
Scalar borderValue)
\brief Performs advanced morphological transformations.
|
static void |
morphologyEx(UMat src,
UMat dst,
int op,
UMat kernel) |
static void |
morphologyEx(UMat src,
UMat dst,
int op,
UMat kernel,
Point anchor,
int iterations,
int borderType,
Scalar borderValue) |
static Point2d |
phaseCorrelate(GpuMat src1,
GpuMat src2) |
static Point2d |
phaseCorrelate(GpuMat src1,
GpuMat src2,
GpuMat window,
double[] response) |
static Point2d |
phaseCorrelate(GpuMat src1,
GpuMat src2,
GpuMat window,
DoubleBuffer response) |
static Point2d |
phaseCorrelate(GpuMat src1,
GpuMat src2,
GpuMat window,
DoublePointer response) |
static Point2d |
phaseCorrelate(Mat src1,
Mat src2) |
static Point2d |
phaseCorrelate(Mat src1,
Mat src2,
Mat window,
double[] response) |
static Point2d |
phaseCorrelate(Mat src1,
Mat src2,
Mat window,
DoubleBuffer response) |
static Point2d |
phaseCorrelate(Mat src1,
Mat src2,
Mat window,
DoublePointer response)
\brief The function is used to detect translational shifts that occur between two images.
|
static Point2d |
phaseCorrelate(UMat src1,
UMat src2) |
static Point2d |
phaseCorrelate(UMat src1,
UMat src2,
UMat window,
double[] response) |
static Point2d |
phaseCorrelate(UMat src1,
UMat src2,
UMat window,
DoubleBuffer response) |
static Point2d |
phaseCorrelate(UMat src1,
UMat src2,
UMat window,
DoublePointer response) |
static double |
pointPolygonTest(GpuMat contour,
Point2f pt,
boolean measureDist) |
static double |
pointPolygonTest(Mat contour,
Point2f pt,
boolean measureDist)
\brief Performs a point-in-contour test.
|
static double |
pointPolygonTest(UMat contour,
Point2f pt,
boolean measureDist) |
static void |
polylines(GpuMat img,
GpuMatVector pts,
boolean isClosed,
Scalar color) |
static void |
polylines(GpuMat img,
GpuMatVector pts,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(GpuMat img,
MatVector pts,
boolean isClosed,
Scalar color) |
static void |
polylines(GpuMat img,
MatVector pts,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(GpuMat img,
Point pts,
int[] npts,
int ncontours,
boolean isClosed,
Scalar color) |
static void |
polylines(GpuMat img,
Point pts,
int[] npts,
int ncontours,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(GpuMat img,
Point pts,
IntBuffer npts,
int ncontours,
boolean isClosed,
Scalar color) |
static void |
polylines(GpuMat img,
Point pts,
IntBuffer npts,
int ncontours,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(GpuMat img,
Point pts,
IntPointer npts,
int ncontours,
boolean isClosed,
Scalar color) |
static void |
polylines(GpuMat img,
Point pts,
IntPointer npts,
int ncontours,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(GpuMat img,
UMatVector pts,
boolean isClosed,
Scalar color) |
static void |
polylines(GpuMat img,
UMatVector pts,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(Mat img,
GpuMatVector pts,
boolean isClosed,
Scalar color) |
static void |
polylines(Mat img,
GpuMatVector pts,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(Mat img,
MatVector pts,
boolean isClosed,
Scalar color) |
static void |
polylines(Mat img,
MatVector pts,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift)
\brief Draws several polygonal curves.
|
static void |
polylines(Mat img,
PointerPointer pts,
IntPointer npts,
int ncontours,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift)
\overload
|
static void |
polylines(Mat img,
Point pts,
int[] npts,
int ncontours,
boolean isClosed,
Scalar color) |
static void |
polylines(Mat img,
Point pts,
int[] npts,
int ncontours,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(Mat img,
Point pts,
IntBuffer npts,
int ncontours,
boolean isClosed,
Scalar color) |
static void |
polylines(Mat img,
Point pts,
IntBuffer npts,
int ncontours,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(Mat img,
Point pts,
IntPointer npts,
int ncontours,
boolean isClosed,
Scalar color) |
static void |
polylines(Mat img,
Point pts,
IntPointer npts,
int ncontours,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(Mat img,
UMatVector pts,
boolean isClosed,
Scalar color) |
static void |
polylines(Mat img,
UMatVector pts,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(UMat img,
GpuMatVector pts,
boolean isClosed,
Scalar color) |
static void |
polylines(UMat img,
GpuMatVector pts,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(UMat img,
MatVector pts,
boolean isClosed,
Scalar color) |
static void |
polylines(UMat img,
MatVector pts,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(UMat img,
Point pts,
int[] npts,
int ncontours,
boolean isClosed,
Scalar color) |
static void |
polylines(UMat img,
Point pts,
int[] npts,
int ncontours,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(UMat img,
Point pts,
IntBuffer npts,
int ncontours,
boolean isClosed,
Scalar color) |
static void |
polylines(UMat img,
Point pts,
IntBuffer npts,
int ncontours,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(UMat img,
Point pts,
IntPointer npts,
int ncontours,
boolean isClosed,
Scalar color) |
static void |
polylines(UMat img,
Point pts,
IntPointer npts,
int ncontours,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
polylines(UMat img,
UMatVector pts,
boolean isClosed,
Scalar color) |
static void |
polylines(UMat img,
UMatVector pts,
boolean isClosed,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
preCornerDetect(GpuMat src,
GpuMat dst,
int ksize) |
static void |
preCornerDetect(GpuMat src,
GpuMat dst,
int ksize,
int borderType) |
static void |
preCornerDetect(Mat src,
Mat dst,
int ksize) |
static void |
preCornerDetect(Mat src,
Mat dst,
int ksize,
int borderType)
\brief Calculates a feature map for corner detection.
|
static void |
preCornerDetect(UMat src,
UMat dst,
int ksize) |
static void |
preCornerDetect(UMat src,
UMat dst,
int ksize,
int borderType) |
static void |
putText(GpuMat img,
BytePointer text,
Point org,
int fontFace,
double fontScale,
Scalar color) |
static void |
putText(GpuMat img,
BytePointer text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness,
int lineType,
boolean bottomLeftOrigin) |
static void |
putText(GpuMat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color) |
static void |
putText(GpuMat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness,
int lineType,
boolean bottomLeftOrigin) |
static void |
putText(Mat img,
BytePointer text,
Point org,
int fontFace,
double fontScale,
Scalar color) |
static void |
putText(Mat img,
BytePointer text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness,
int lineType,
boolean bottomLeftOrigin)
\brief Draws a text string.
|
static void |
putText(Mat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color) |
static void |
putText(Mat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness,
int lineType,
boolean bottomLeftOrigin) |
static void |
putText(UMat img,
BytePointer text,
Point org,
int fontFace,
double fontScale,
Scalar color) |
static void |
putText(UMat img,
BytePointer text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness,
int lineType,
boolean bottomLeftOrigin) |
static void |
putText(UMat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color) |
static void |
putText(UMat img,
String text,
Point org,
int fontFace,
double fontScale,
Scalar color,
int thickness,
int lineType,
boolean bottomLeftOrigin) |
static void |
pyrDown(GpuMat src,
GpuMat dst) |
static void |
pyrDown(GpuMat src,
GpuMat dst,
Size dstsize,
int borderType) |
static void |
pyrDown(Mat src,
Mat dst) |
static void |
pyrDown(Mat src,
Mat dst,
Size dstsize,
int borderType)
\brief Blurs an image and downsamples it.
|
static void |
pyrDown(UMat src,
UMat dst) |
static void |
pyrDown(UMat src,
UMat dst,
Size dstsize,
int borderType) |
static void |
pyrMeanShiftFiltering(GpuMat src,
GpuMat dst,
double sp,
double sr) |
static void |
pyrMeanShiftFiltering(GpuMat src,
GpuMat dst,
double sp,
double sr,
int maxLevel,
TermCriteria termcrit) |
static void |
pyrMeanShiftFiltering(Mat src,
Mat dst,
double sp,
double sr) |
static void |
pyrMeanShiftFiltering(Mat src,
Mat dst,
double sp,
double sr,
int maxLevel,
TermCriteria termcrit)
\addtogroup imgproc_filter
\{
|
static void |
pyrMeanShiftFiltering(UMat src,
UMat dst,
double sp,
double sr) |
static void |
pyrMeanShiftFiltering(UMat src,
UMat dst,
double sp,
double sr,
int maxLevel,
TermCriteria termcrit) |
static void |
pyrUp(GpuMat src,
GpuMat dst) |
static void |
pyrUp(GpuMat src,
GpuMat dst,
Size dstsize,
int borderType) |
static void |
pyrUp(Mat src,
Mat dst) |
static void |
pyrUp(Mat src,
Mat dst,
Size dstsize,
int borderType)
\brief Upsamples an image and then blurs it.
|
static void |
pyrUp(UMat src,
UMat dst) |
static void |
pyrUp(UMat src,
UMat dst,
Size dstsize,
int borderType) |
static void |
rectangle(GpuMat img,
Point pt1,
Point pt2,
Scalar color) |
static void |
rectangle(GpuMat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
rectangle(GpuMat img,
Rect rec,
Scalar color) |
static void |
rectangle(GpuMat img,
Rect rec,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
rectangle(Mat img,
Point pt1,
Point pt2,
Scalar color) |
static void |
rectangle(Mat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType,
int shift)
\brief Draws a simple, thick, or filled up-right rectangle.
|
static void |
rectangle(Mat img,
Rect rec,
Scalar color) |
static void |
rectangle(Mat img,
Rect rec,
Scalar color,
int thickness,
int lineType,
int shift)
\overload
|
static void |
rectangle(UMat img,
Point pt1,
Point pt2,
Scalar color) |
static void |
rectangle(UMat img,
Point pt1,
Point pt2,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
rectangle(UMat img,
Rect rec,
Scalar color) |
static void |
rectangle(UMat img,
Rect rec,
Scalar color,
int thickness,
int lineType,
int shift) |
static void |
remap(GpuMat src,
GpuMat dst,
GpuMat map1,
GpuMat map2,
int interpolation) |
static void |
remap(GpuMat src,
GpuMat dst,
GpuMat map1,
GpuMat map2,
int interpolation,
int borderMode,
Scalar borderValue) |
static void |
remap(Mat src,
Mat dst,
Mat map1,
Mat map2,
int interpolation) |
static void |
remap(Mat src,
Mat dst,
Mat map1,
Mat map2,
int interpolation,
int borderMode,
Scalar borderValue)
\brief Applies a generic geometrical transformation to an image.
|
static void |
remap(UMat src,
UMat dst,
UMat map1,
UMat map2,
int interpolation) |
static void |
remap(UMat src,
UMat dst,
UMat map1,
UMat map2,
int interpolation,
int borderMode,
Scalar borderValue) |
static void |
resize(GpuMat src,
GpuMat dst,
Size dsize) |
static void |
resize(GpuMat src,
GpuMat dst,
Size dsize,
double fx,
double fy,
int interpolation) |
static void |
resize(Mat src,
Mat dst,
Size dsize) |
static void |
resize(Mat src,
Mat dst,
Size dsize,
double fx,
double fy,
int interpolation)
\} imgproc_filter
|
static void |
resize(UMat src,
UMat dst,
Size dsize) |
static void |
resize(UMat src,
UMat dst,
Size dsize,
double fx,
double fy,
int interpolation) |
static int |
rotatedRectangleIntersection(RotatedRect rect1,
RotatedRect rect2,
GpuMat intersectingRegion) |
static int |
rotatedRectangleIntersection(RotatedRect rect1,
RotatedRect rect2,
Mat intersectingRegion)
\brief Finds out if there is any intersection between two rotated rectangles.
|
static int |
rotatedRectangleIntersection(RotatedRect rect1,
RotatedRect rect2,
UMat intersectingRegion) |
static void |
Scharr(GpuMat src,
GpuMat dst,
int ddepth,
int dx,
int dy) |
static void |
Scharr(GpuMat src,
GpuMat dst,
int ddepth,
int dx,
int dy,
double scale,
double delta,
int borderType) |
static void |
Scharr(Mat src,
Mat dst,
int ddepth,
int dx,
int dy) |
static void |
Scharr(Mat src,
Mat dst,
int ddepth,
int dx,
int dy,
double scale,
double delta,
int borderType)
\brief Calculates the first x- or y- image derivative using Scharr operator.
|
static void |
Scharr(UMat src,
UMat dst,
int ddepth,
int dx,
int dy) |
static void |
Scharr(UMat src,
UMat dst,
int ddepth,
int dx,
int dy,
double scale,
double delta,
int borderType) |
static void |
sepFilter2D(GpuMat src,
GpuMat dst,
int ddepth,
GpuMat kernelX,
GpuMat kernelY) |
static void |
sepFilter2D(GpuMat src,
GpuMat dst,
int ddepth,
GpuMat kernelX,
GpuMat kernelY,
Point anchor,
double delta,
int borderType) |
static void |
sepFilter2D(Mat src,
Mat dst,
int ddepth,
Mat kernelX,
Mat kernelY) |
static void |
sepFilter2D(Mat src,
Mat dst,
int ddepth,
Mat kernelX,
Mat kernelY,
Point anchor,
double delta,
int borderType)
\brief Applies a separable linear filter to an image.
|
static void |
sepFilter2D(UMat src,
UMat dst,
int ddepth,
UMat kernelX,
UMat kernelY) |
static void |
sepFilter2D(UMat src,
UMat dst,
int ddepth,
UMat kernelX,
UMat kernelY,
Point anchor,
double delta,
int borderType) |
static void |
Sobel(GpuMat src,
GpuMat dst,
int ddepth,
int dx,
int dy) |
static void |
Sobel(GpuMat src,
GpuMat dst,
int ddepth,
int dx,
int dy,
int ksize,
double scale,
double delta,
int borderType) |
static void |
Sobel(Mat src,
Mat dst,
int ddepth,
int dx,
int dy) |
static void |
Sobel(Mat src,
Mat dst,
int ddepth,
int dx,
int dy,
int ksize,
double scale,
double delta,
int borderType)
\brief Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
|
static void |
Sobel(UMat src,
UMat dst,
int ddepth,
int dx,
int dy) |
static void |
Sobel(UMat src,
UMat dst,
int ddepth,
int dx,
int dy,
int ksize,
double scale,
double delta,
int borderType) |
static void |
spatialGradient(GpuMat src,
GpuMat dx,
GpuMat dy) |
static void |
spatialGradient(GpuMat src,
GpuMat dx,
GpuMat dy,
int ksize,
int borderType) |
static void |
spatialGradient(Mat src,
Mat dx,
Mat dy) |
static void |
spatialGradient(Mat src,
Mat dx,
Mat dy,
int ksize,
int borderType)
\brief Calculates the first order image derivative in both x and y using a Sobel operator
|
static void |
spatialGradient(UMat src,
UMat dx,
UMat dy) |
static void |
spatialGradient(UMat src,
UMat dx,
UMat dy,
int ksize,
int borderType) |
static void |
sqrBoxFilter(GpuMat src,
GpuMat dst,
int ddepth,
Size ksize) |
static void |
sqrBoxFilter(GpuMat src,
GpuMat dst,
int ddepth,
Size ksize,
Point anchor,
boolean normalize,
int borderType) |
static void |
sqrBoxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize) |
static void |
sqrBoxFilter(Mat src,
Mat dst,
int ddepth,
Size ksize,
Point anchor,
boolean normalize,
int borderType)
\brief Calculates the normalized sum of squares of the pixel values overlapping the filter.
|
static void |
sqrBoxFilter(UMat src,
UMat dst,
int ddepth,
Size ksize) |
static void |
sqrBoxFilter(UMat src,
UMat dst,
int ddepth,
Size ksize,
Point anchor,
boolean normalize,
int borderType) |
static double |
threshold(GpuMat src,
GpuMat dst,
double thresh,
double maxval,
int type) |
static double |
threshold(Mat src,
Mat dst,
double thresh,
double maxval,
int type)
\} imgproc_motion
|
static double |
threshold(UMat src,
UMat dst,
double thresh,
double maxval,
int type) |
static void |
warpAffine(GpuMat src,
GpuMat dst,
GpuMat M,
Size dsize) |
static void |
warpAffine(GpuMat src,
GpuMat dst,
GpuMat M,
Size dsize,
int flags,
int borderMode,
Scalar borderValue) |
static void |
warpAffine(Mat src,
Mat dst,
Mat M,
Size dsize) |
static void |
warpAffine(Mat src,
Mat dst,
Mat M,
Size dsize,
int flags,
int borderMode,
Scalar borderValue)
\brief Applies an affine transformation to an image.
|
static void |
warpAffine(UMat src,
UMat dst,
UMat M,
Size dsize) |
static void |
warpAffine(UMat src,
UMat dst,
UMat M,
Size dsize,
int flags,
int borderMode,
Scalar borderValue) |
static void |
warpPerspective(GpuMat src,
GpuMat dst,
GpuMat M,
Size dsize) |
static void |
warpPerspective(GpuMat src,
GpuMat dst,
GpuMat M,
Size dsize,
int flags,
int borderMode,
Scalar borderValue) |
static void |
warpPerspective(Mat src,
Mat dst,
Mat M,
Size dsize) |
static void |
warpPerspective(Mat src,
Mat dst,
Mat M,
Size dsize,
int flags,
int borderMode,
Scalar borderValue)
\brief Applies a perspective transformation to an image.
|
static void |
warpPerspective(UMat src,
UMat dst,
UMat M,
Size dsize) |
static void |
warpPerspective(UMat src,
UMat dst,
UMat M,
Size dsize,
int flags,
int borderMode,
Scalar borderValue) |
static void |
warpPolar(GpuMat src,
GpuMat dst,
Size dsize,
Point2f center,
double maxRadius,
int flags) |
static void |
warpPolar(Mat src,
Mat dst,
Size dsize,
Point2f center,
double maxRadius,
int flags)
\brief Remaps an image to polar or semilog-polar coordinates space
|
static void |
warpPolar(UMat src,
UMat dst,
Size dsize,
Point2f center,
double maxRadius,
int flags) |
static void |
watershed(GpuMat image,
GpuMat markers) |
static void |
watershed(Mat image,
Mat markers)
\brief Performs a marker-based image segmentation using the watershed algorithm.
|
static void |
watershed(UMat image,
UMat markers) |
cvCalcArrBackProject, cvCalcArrBackProjectPatch, cvCalcArrHist, cvCalcBackProject, cvCalcBackProject, cvCalcBackProjectPatch, cvCalcBackProjectPatch, cvCalcHist, cvCalcHist, cvCreateHist, cvDrawContours, cvDrawPolyLine, cvFillPoly, cvFindContours, cvMakeHistHeaderForArray, cvMakeHistHeaderForArray, cvPolyLine, cvSetHistBinRanges, cvStartFindContours
map
public static final int CV_BLUR_NO_SCALE
public static final int CV_BLUR
public static final int CV_GAUSSIAN
public static final int CV_MEDIAN
public static final int CV_BILATERAL
public static final int CV_GAUSSIAN_5x5
public static final int CV_SCHARR
public static final int CV_MAX_SOBEL_KSIZE
public static final int CV_BGR2BGRA
public static final int CV_RGB2RGBA
public static final int CV_BGRA2BGR
public static final int CV_RGBA2RGB
public static final int CV_BGR2RGBA
public static final int CV_RGB2BGRA
public static final int CV_RGBA2BGR
public static final int CV_BGRA2RGB
public static final int CV_BGR2RGB
public static final int CV_RGB2BGR
public static final int CV_BGRA2RGBA
public static final int CV_RGBA2BGRA
public static final int CV_BGR2GRAY
public static final int CV_RGB2GRAY
public static final int CV_GRAY2BGR
public static final int CV_GRAY2RGB
public static final int CV_GRAY2BGRA
public static final int CV_GRAY2RGBA
public static final int CV_BGRA2GRAY
public static final int CV_RGBA2GRAY
public static final int CV_BGR2BGR565
public static final int CV_RGB2BGR565
public static final int CV_BGR5652BGR
public static final int CV_BGR5652RGB
public static final int CV_BGRA2BGR565
public static final int CV_RGBA2BGR565
public static final int CV_BGR5652BGRA
public static final int CV_BGR5652RGBA
public static final int CV_GRAY2BGR565
public static final int CV_BGR5652GRAY
public static final int CV_BGR2BGR555
public static final int CV_RGB2BGR555
public static final int CV_BGR5552BGR
public static final int CV_BGR5552RGB
public static final int CV_BGRA2BGR555
public static final int CV_RGBA2BGR555
public static final int CV_BGR5552BGRA
public static final int CV_BGR5552RGBA
public static final int CV_GRAY2BGR555
public static final int CV_BGR5552GRAY
public static final int CV_BGR2XYZ
public static final int CV_RGB2XYZ
public static final int CV_XYZ2BGR
public static final int CV_XYZ2RGB
public static final int CV_BGR2YCrCb
public static final int CV_RGB2YCrCb
public static final int CV_YCrCb2BGR
public static final int CV_YCrCb2RGB
public static final int CV_BGR2HSV
public static final int CV_RGB2HSV
public static final int CV_BGR2Lab
public static final int CV_RGB2Lab
public static final int CV_BayerBG2BGR
public static final int CV_BayerGB2BGR
public static final int CV_BayerRG2BGR
public static final int CV_BayerGR2BGR
public static final int CV_BayerBG2RGB
public static final int CV_BayerGB2RGB
public static final int CV_BayerRG2RGB
public static final int CV_BayerGR2RGB
public static final int CV_BGR2Luv
public static final int CV_RGB2Luv
public static final int CV_BGR2HLS
public static final int CV_RGB2HLS
public static final int CV_HSV2BGR
public static final int CV_HSV2RGB
public static final int CV_Lab2BGR
public static final int CV_Lab2RGB
public static final int CV_Luv2BGR
public static final int CV_Luv2RGB
public static final int CV_HLS2BGR
public static final int CV_HLS2RGB
public static final int CV_BayerBG2BGR_VNG
public static final int CV_BayerGB2BGR_VNG
public static final int CV_BayerRG2BGR_VNG
public static final int CV_BayerGR2BGR_VNG
public static final int CV_BayerBG2RGB_VNG
public static final int CV_BayerGB2RGB_VNG
public static final int CV_BayerRG2RGB_VNG
public static final int CV_BayerGR2RGB_VNG
public static final int CV_BGR2HSV_FULL
public static final int CV_RGB2HSV_FULL
public static final int CV_BGR2HLS_FULL
public static final int CV_RGB2HLS_FULL
public static final int CV_HSV2BGR_FULL
public static final int CV_HSV2RGB_FULL
public static final int CV_HLS2BGR_FULL
public static final int CV_HLS2RGB_FULL
public static final int CV_LBGR2Lab
public static final int CV_LRGB2Lab
public static final int CV_LBGR2Luv
public static final int CV_LRGB2Luv
public static final int CV_Lab2LBGR
public static final int CV_Lab2LRGB
public static final int CV_Luv2LBGR
public static final int CV_Luv2LRGB
public static final int CV_BGR2YUV
public static final int CV_RGB2YUV
public static final int CV_YUV2BGR
public static final int CV_YUV2RGB
public static final int CV_BayerBG2GRAY
public static final int CV_BayerGB2GRAY
public static final int CV_BayerRG2GRAY
public static final int CV_BayerGR2GRAY
public static final int CV_YUV2RGB_NV12
public static final int CV_YUV2BGR_NV12
public static final int CV_YUV2RGB_NV21
public static final int CV_YUV2BGR_NV21
public static final int CV_YUV420sp2RGB
public static final int CV_YUV420sp2BGR
public static final int CV_YUV2RGBA_NV12
public static final int CV_YUV2BGRA_NV12
public static final int CV_YUV2RGBA_NV21
public static final int CV_YUV2BGRA_NV21
public static final int CV_YUV420sp2RGBA
public static final int CV_YUV420sp2BGRA
public static final int CV_YUV2RGB_YV12
public static final int CV_YUV2BGR_YV12
public static final int CV_YUV2RGB_IYUV
public static final int CV_YUV2BGR_IYUV
public static final int CV_YUV2RGB_I420
public static final int CV_YUV2BGR_I420
public static final int CV_YUV420p2RGB
public static final int CV_YUV420p2BGR
public static final int CV_YUV2RGBA_YV12
public static final int CV_YUV2BGRA_YV12
public static final int CV_YUV2RGBA_IYUV
public static final int CV_YUV2BGRA_IYUV
public static final int CV_YUV2RGBA_I420
public static final int CV_YUV2BGRA_I420
public static final int CV_YUV420p2RGBA
public static final int CV_YUV420p2BGRA
public static final int CV_YUV2GRAY_420
public static final int CV_YUV2GRAY_NV21
public static final int CV_YUV2GRAY_NV12
public static final int CV_YUV2GRAY_YV12
public static final int CV_YUV2GRAY_IYUV
public static final int CV_YUV2GRAY_I420
public static final int CV_YUV420sp2GRAY
public static final int CV_YUV420p2GRAY
public static final int CV_YUV2RGB_UYVY
public static final int CV_YUV2BGR_UYVY
public static final int CV_YUV2RGB_Y422
public static final int CV_YUV2BGR_Y422
public static final int CV_YUV2RGB_UYNV
public static final int CV_YUV2BGR_UYNV
public static final int CV_YUV2RGBA_UYVY
public static final int CV_YUV2BGRA_UYVY
public static final int CV_YUV2RGBA_Y422
public static final int CV_YUV2BGRA_Y422
public static final int CV_YUV2RGBA_UYNV
public static final int CV_YUV2BGRA_UYNV
public static final int CV_YUV2RGB_YUY2
public static final int CV_YUV2BGR_YUY2
public static final int CV_YUV2RGB_YVYU
public static final int CV_YUV2BGR_YVYU
public static final int CV_YUV2RGB_YUYV
public static final int CV_YUV2BGR_YUYV
public static final int CV_YUV2RGB_YUNV
public static final int CV_YUV2BGR_YUNV
public static final int CV_YUV2RGBA_YUY2
public static final int CV_YUV2BGRA_YUY2
public static final int CV_YUV2RGBA_YVYU
public static final int CV_YUV2BGRA_YVYU
public static final int CV_YUV2RGBA_YUYV
public static final int CV_YUV2BGRA_YUYV
public static final int CV_YUV2RGBA_YUNV
public static final int CV_YUV2BGRA_YUNV
public static final int CV_YUV2GRAY_UYVY
public static final int CV_YUV2GRAY_YUY2
public static final int CV_YUV2GRAY_Y422
public static final int CV_YUV2GRAY_UYNV
public static final int CV_YUV2GRAY_YVYU
public static final int CV_YUV2GRAY_YUYV
public static final int CV_YUV2GRAY_YUNV
public static final int CV_RGBA2mRGBA
public static final int CV_mRGBA2RGBA
public static final int CV_RGB2YUV_I420
public static final int CV_BGR2YUV_I420
public static final int CV_RGB2YUV_IYUV
public static final int CV_BGR2YUV_IYUV
public static final int CV_RGBA2YUV_I420
public static final int CV_BGRA2YUV_I420
public static final int CV_RGBA2YUV_IYUV
public static final int CV_BGRA2YUV_IYUV
public static final int CV_RGB2YUV_YV12
public static final int CV_BGR2YUV_YV12
public static final int CV_RGBA2YUV_YV12
public static final int CV_BGRA2YUV_YV12
public static final int CV_BayerBG2BGR_EA
public static final int CV_BayerGB2BGR_EA
public static final int CV_BayerRG2BGR_EA
public static final int CV_BayerGR2BGR_EA
public static final int CV_BayerBG2RGB_EA
public static final int CV_BayerGB2RGB_EA
public static final int CV_BayerRG2RGB_EA
public static final int CV_BayerGR2RGB_EA
public static final int CV_BayerBG2BGRA
public static final int CV_BayerGB2BGRA
public static final int CV_BayerRG2BGRA
public static final int CV_BayerGR2BGRA
public static final int CV_BayerBG2RGBA
public static final int CV_BayerGB2RGBA
public static final int CV_BayerRG2RGBA
public static final int CV_BayerGR2RGBA
public static final int CV_COLORCVT_MAX
public static final int CV_INTER_NN
public static final int CV_INTER_LINEAR
public static final int CV_INTER_CUBIC
public static final int CV_INTER_AREA
public static final int CV_INTER_LANCZOS4
public static final int CV_WARP_FILL_OUTLIERS
public static final int CV_WARP_INVERSE_MAP
public static final int CV_SHAPE_RECT
public static final int CV_SHAPE_CROSS
public static final int CV_SHAPE_ELLIPSE
public static final int CV_SHAPE_CUSTOM
public static final int CV_MOP_ERODE
public static final int CV_MOP_DILATE
public static final int CV_MOP_OPEN
public static final int CV_MOP_CLOSE
public static final int CV_MOP_GRADIENT
public static final int CV_MOP_TOPHAT
public static final int CV_MOP_BLACKHAT
public static final int CV_TM_SQDIFF
public static final int CV_TM_SQDIFF_NORMED
public static final int CV_TM_CCORR
public static final int CV_TM_CCORR_NORMED
public static final int CV_TM_CCOEFF
public static final int CV_TM_CCOEFF_NORMED
public static final int CV_RETR_EXTERNAL
public static final int CV_RETR_LIST
public static final int CV_RETR_CCOMP
public static final int CV_RETR_TREE
public static final int CV_RETR_FLOODFILL
public static final int CV_CHAIN_CODE
public static final int CV_CHAIN_APPROX_NONE
public static final int CV_CHAIN_APPROX_SIMPLE
public static final int CV_CHAIN_APPROX_TC89_L1
public static final int CV_CHAIN_APPROX_TC89_KCOS
public static final int CV_LINK_RUNS
public static final int CV_POLY_APPROX_DP
public static final int CV_CONTOURS_MATCH_I1
public static final int CV_CONTOURS_MATCH_I2
public static final int CV_CONTOURS_MATCH_I3
public static final int CV_CLOCKWISE
public static final int CV_COUNTER_CLOCKWISE
public static final int CV_COMP_CORREL
public static final int CV_COMP_CHISQR
public static final int CV_COMP_INTERSECT
public static final int CV_COMP_BHATTACHARYYA
public static final int CV_COMP_HELLINGER
public static final int CV_COMP_CHISQR_ALT
public static final int CV_COMP_KL_DIV
public static final int CV_DIST_MASK_3
public static final int CV_DIST_MASK_5
public static final int CV_DIST_MASK_PRECISE
public static final int CV_DIST_LABEL_CCOMP
public static final int CV_DIST_LABEL_PIXEL
public static final int CV_DIST_USER
public static final int CV_DIST_L1
public static final int CV_DIST_L2
public static final int CV_DIST_C
public static final int CV_DIST_L12
public static final int CV_DIST_FAIR
public static final int CV_DIST_WELSCH
public static final int CV_DIST_HUBER
public static final int CV_THRESH_BINARY
public static final int CV_THRESH_BINARY_INV
public static final int CV_THRESH_TRUNC
public static final int CV_THRESH_TOZERO
public static final int CV_THRESH_TOZERO_INV
public static final int CV_THRESH_MASK
public static final int CV_THRESH_OTSU
public static final int CV_THRESH_TRIANGLE
public static final int CV_ADAPTIVE_THRESH_MEAN_C
public static final int CV_ADAPTIVE_THRESH_GAUSSIAN_C
public static final int CV_FLOODFILL_FIXED_RANGE
public static final int CV_FLOODFILL_MASK_ONLY
public static final int CV_CANNY_L2_GRADIENT
public static final int CV_HOUGH_STANDARD
public static final int CV_HOUGH_PROBABILISTIC
public static final int CV_HOUGH_MULTI_SCALE
public static final int CV_HOUGH_GRADIENT
public static final int CV_FILLED
public static final int CV_AA
public static final int CV_FONT_HERSHEY_SIMPLEX
public static final int CV_FONT_HERSHEY_PLAIN
public static final int CV_FONT_HERSHEY_DUPLEX
public static final int CV_FONT_HERSHEY_COMPLEX
public static final int CV_FONT_HERSHEY_TRIPLEX
public static final int CV_FONT_HERSHEY_COMPLEX_SMALL
public static final int CV_FONT_HERSHEY_SCRIPT_SIMPLEX
public static final int CV_FONT_HERSHEY_SCRIPT_COMPLEX
public static final int CV_FONT_ITALIC
public static final int CV_FONT_VECTOR0
public static final int FILTER_SCHARR
public static final int MORPH_ERODE
public static final int MORPH_DILATE
public static final int MORPH_OPEN
public static final int MORPH_CLOSE
public static final int MORPH_GRADIENT
public static final int MORPH_TOPHAT
public static final int MORPH_BLACKHAT
public static final int MORPH_HITMISS
public static final int MORPH_RECT
public static final int MORPH_CROSS
public static final int MORPH_ELLIPSE
public static final int INTER_NEAREST
public static final int INTER_LINEAR
public static final int INTER_CUBIC
public static final int INTER_AREA
public static final int INTER_LANCZOS4
public static final int INTER_LINEAR_EXACT
public static final int INTER_MAX
public static final int WARP_FILL_OUTLIERS
public static final int WARP_INVERSE_MAP
public static final int WARP_POLAR_LINEAR
public static final int WARP_POLAR_LOG
public static final int INTER_BITS
public static final int INTER_BITS2
public static final int INTER_TAB_SIZE
public static final int INTER_TAB_SIZE2
public static final int DIST_USER
public static final int DIST_L1
public static final int DIST_L2
public static final int DIST_C
public static final int DIST_L12
public static final int DIST_FAIR
public static final int DIST_WELSCH
public static final int DIST_HUBER
public static final int DIST_MASK_3
public static final int DIST_MASK_5
public static final int DIST_MASK_PRECISE
public static final int THRESH_BINARY
public static final int THRESH_BINARY_INV
public static final int THRESH_TRUNC
public static final int THRESH_TOZERO
public static final int THRESH_TOZERO_INV
public static final int THRESH_MASK
public static final int THRESH_OTSU
public static final int THRESH_TRIANGLE
public static final int ADAPTIVE_THRESH_MEAN_C
public static final int ADAPTIVE_THRESH_GAUSSIAN_C
public static final int GC_BGD
public static final int GC_FGD
public static final int GC_PR_BGD
public static final int GC_PR_FGD
public static final int GC_INIT_WITH_RECT
public static final int GC_INIT_WITH_MASK
public static final int GC_EVAL
public static final int GC_EVAL_FREEZE_MODEL
public static final int DIST_LABEL_CCOMP
public static final int DIST_LABEL_PIXEL
public static final int FLOODFILL_FIXED_RANGE
public static final int FLOODFILL_MASK_ONLY
public static final int CC_STAT_LEFT
public static final int CC_STAT_TOP
public static final int CC_STAT_WIDTH
public static final int CC_STAT_HEIGHT
public static final int CC_STAT_AREA
public static final int CC_STAT_MAX
public static final int CCL_WU
public static final int CCL_DEFAULT
public static final int CCL_GRANA
public static final int RETR_EXTERNAL
public static final int RETR_LIST
public static final int RETR_CCOMP
public static final int RETR_TREE
public static final int RETR_FLOODFILL
public static final int CHAIN_APPROX_NONE
public static final int CHAIN_APPROX_SIMPLE
public static final int CHAIN_APPROX_TC89_L1
public static final int CHAIN_APPROX_TC89_KCOS
public static final int CONTOURS_MATCH_I1
public static final int CONTOURS_MATCH_I2
public static final int CONTOURS_MATCH_I3
public static final int HOUGH_STANDARD
public static final int HOUGH_PROBABILISTIC
public static final int HOUGH_MULTI_SCALE
public static final int HOUGH_GRADIENT
public static final int HOUGH_GRADIENT_ALT
public static final int LSD_REFINE_NONE
public static final int LSD_REFINE_STD
public static final int LSD_REFINE_ADV
public static final int HISTCMP_CORREL
public static final int HISTCMP_CHISQR
public static final int HISTCMP_INTERSECT
public static final int HISTCMP_BHATTACHARYYA
public static final int HISTCMP_HELLINGER
public static final int HISTCMP_CHISQR_ALT
public static final int HISTCMP_KL_DIV
public static final int COLOR_BGR2BGRA
public static final int COLOR_RGB2RGBA
public static final int COLOR_BGRA2BGR
public static final int COLOR_RGBA2RGB
public static final int COLOR_BGR2RGBA
public static final int COLOR_RGB2BGRA
public static final int COLOR_RGBA2BGR
public static final int COLOR_BGRA2RGB
public static final int COLOR_BGR2RGB
public static final int COLOR_RGB2BGR
public static final int COLOR_BGRA2RGBA
public static final int COLOR_RGBA2BGRA
public static final int COLOR_BGR2GRAY
public static final int COLOR_RGB2GRAY
public static final int COLOR_GRAY2BGR
public static final int COLOR_GRAY2RGB
public static final int COLOR_GRAY2BGRA
public static final int COLOR_GRAY2RGBA
public static final int COLOR_BGRA2GRAY
public static final int COLOR_RGBA2GRAY
public static final int COLOR_BGR2BGR565
public static final int COLOR_RGB2BGR565
public static final int COLOR_BGR5652BGR
public static final int COLOR_BGR5652RGB
public static final int COLOR_BGRA2BGR565
public static final int COLOR_RGBA2BGR565
public static final int COLOR_BGR5652BGRA
public static final int COLOR_BGR5652RGBA
public static final int COLOR_GRAY2BGR565
public static final int COLOR_BGR5652GRAY
public static final int COLOR_BGR2BGR555
public static final int COLOR_RGB2BGR555
public static final int COLOR_BGR5552BGR
public static final int COLOR_BGR5552RGB
public static final int COLOR_BGRA2BGR555
public static final int COLOR_RGBA2BGR555
public static final int COLOR_BGR5552BGRA
public static final int COLOR_BGR5552RGBA
public static final int COLOR_GRAY2BGR555
public static final int COLOR_BGR5552GRAY
public static final int COLOR_BGR2XYZ
public static final int COLOR_RGB2XYZ
public static final int COLOR_XYZ2BGR
public static final int COLOR_XYZ2RGB
public static final int COLOR_BGR2YCrCb
public static final int COLOR_RGB2YCrCb
public static final int COLOR_YCrCb2BGR
public static final int COLOR_YCrCb2RGB
public static final int COLOR_BGR2HSV
public static final int COLOR_RGB2HSV
public static final int COLOR_BGR2Lab
public static final int COLOR_RGB2Lab
public static final int COLOR_BGR2Luv
public static final int COLOR_RGB2Luv
public static final int COLOR_BGR2HLS
public static final int COLOR_RGB2HLS
public static final int COLOR_HSV2BGR
public static final int COLOR_HSV2RGB
public static final int COLOR_Lab2BGR
public static final int COLOR_Lab2RGB
public static final int COLOR_Luv2BGR
public static final int COLOR_Luv2RGB
public static final int COLOR_HLS2BGR
public static final int COLOR_HLS2RGB
public static final int COLOR_BGR2HSV_FULL
public static final int COLOR_RGB2HSV_FULL
public static final int COLOR_BGR2HLS_FULL
public static final int COLOR_RGB2HLS_FULL
public static final int COLOR_HSV2BGR_FULL
public static final int COLOR_HSV2RGB_FULL
public static final int COLOR_HLS2BGR_FULL
public static final int COLOR_HLS2RGB_FULL
public static final int COLOR_LBGR2Lab
public static final int COLOR_LRGB2Lab
public static final int COLOR_LBGR2Luv
public static final int COLOR_LRGB2Luv
public static final int COLOR_Lab2LBGR
public static final int COLOR_Lab2LRGB
public static final int COLOR_Luv2LBGR
public static final int COLOR_Luv2LRGB
public static final int COLOR_BGR2YUV
public static final int COLOR_RGB2YUV
public static final int COLOR_YUV2BGR
public static final int COLOR_YUV2RGB
public static final int COLOR_YUV2RGB_NV12
public static final int COLOR_YUV2BGR_NV12
public static final int COLOR_YUV2RGB_NV21
public static final int COLOR_YUV2BGR_NV21
public static final int COLOR_YUV420sp2RGB
public static final int COLOR_YUV420sp2BGR
public static final int COLOR_YUV2RGBA_NV12
public static final int COLOR_YUV2BGRA_NV12
public static final int COLOR_YUV2RGBA_NV21
public static final int COLOR_YUV2BGRA_NV21
public static final int COLOR_YUV420sp2RGBA
public static final int COLOR_YUV420sp2BGRA
public static final int COLOR_YUV2RGB_YV12
public static final int COLOR_YUV2BGR_YV12
public static final int COLOR_YUV2RGB_IYUV
public static final int COLOR_YUV2BGR_IYUV
public static final int COLOR_YUV2RGB_I420
public static final int COLOR_YUV2BGR_I420
public static final int COLOR_YUV420p2RGB
public static final int COLOR_YUV420p2BGR
public static final int COLOR_YUV2RGBA_YV12
public static final int COLOR_YUV2BGRA_YV12
public static final int COLOR_YUV2RGBA_IYUV
public static final int COLOR_YUV2BGRA_IYUV
public static final int COLOR_YUV2RGBA_I420
public static final int COLOR_YUV2BGRA_I420
public static final int COLOR_YUV420p2RGBA
public static final int COLOR_YUV420p2BGRA
public static final int COLOR_YUV2GRAY_420
public static final int COLOR_YUV2GRAY_NV21
public static final int COLOR_YUV2GRAY_NV12
public static final int COLOR_YUV2GRAY_YV12
public static final int COLOR_YUV2GRAY_IYUV
public static final int COLOR_YUV2GRAY_I420
public static final int COLOR_YUV420sp2GRAY
public static final int COLOR_YUV420p2GRAY
public static final int COLOR_YUV2RGB_UYVY
public static final int COLOR_YUV2BGR_UYVY
public static final int COLOR_YUV2RGB_Y422
public static final int COLOR_YUV2BGR_Y422
public static final int COLOR_YUV2RGB_UYNV
public static final int COLOR_YUV2BGR_UYNV
public static final int COLOR_YUV2RGBA_UYVY
public static final int COLOR_YUV2BGRA_UYVY
public static final int COLOR_YUV2RGBA_Y422
public static final int COLOR_YUV2BGRA_Y422
public static final int COLOR_YUV2RGBA_UYNV
public static final int COLOR_YUV2BGRA_UYNV
public static final int COLOR_YUV2RGB_YUY2
public static final int COLOR_YUV2BGR_YUY2
public static final int COLOR_YUV2RGB_YVYU
public static final int COLOR_YUV2BGR_YVYU
public static final int COLOR_YUV2RGB_YUYV
public static final int COLOR_YUV2BGR_YUYV
public static final int COLOR_YUV2RGB_YUNV
public static final int COLOR_YUV2BGR_YUNV
public static final int COLOR_YUV2RGBA_YUY2
public static final int COLOR_YUV2BGRA_YUY2
public static final int COLOR_YUV2RGBA_YVYU
public static final int COLOR_YUV2BGRA_YVYU
public static final int COLOR_YUV2RGBA_YUYV
public static final int COLOR_YUV2BGRA_YUYV
public static final int COLOR_YUV2RGBA_YUNV
public static final int COLOR_YUV2BGRA_YUNV
public static final int COLOR_YUV2GRAY_UYVY
public static final int COLOR_YUV2GRAY_YUY2
public static final int COLOR_YUV2GRAY_Y422
public static final int COLOR_YUV2GRAY_UYNV
public static final int COLOR_YUV2GRAY_YVYU
public static final int COLOR_YUV2GRAY_YUYV
public static final int COLOR_YUV2GRAY_YUNV
public static final int COLOR_RGBA2mRGBA
public static final int COLOR_mRGBA2RGBA
public static final int COLOR_RGB2YUV_I420
public static final int COLOR_BGR2YUV_I420
public static final int COLOR_RGB2YUV_IYUV
public static final int COLOR_BGR2YUV_IYUV
public static final int COLOR_RGBA2YUV_I420
public static final int COLOR_BGRA2YUV_I420
public static final int COLOR_RGBA2YUV_IYUV
public static final int COLOR_BGRA2YUV_IYUV
public static final int COLOR_RGB2YUV_YV12
public static final int COLOR_BGR2YUV_YV12
public static final int COLOR_RGBA2YUV_YV12
public static final int COLOR_BGRA2YUV_YV12
public static final int COLOR_BayerBG2BGR
public static final int COLOR_BayerGB2BGR
public static final int COLOR_BayerRG2BGR
public static final int COLOR_BayerGR2BGR
public static final int COLOR_BayerBG2RGB
public static final int COLOR_BayerGB2RGB
public static final int COLOR_BayerRG2RGB
public static final int COLOR_BayerGR2RGB
public static final int COLOR_BayerBG2GRAY
public static final int COLOR_BayerGB2GRAY
public static final int COLOR_BayerRG2GRAY
public static final int COLOR_BayerGR2GRAY
public static final int COLOR_BayerBG2BGR_VNG
public static final int COLOR_BayerGB2BGR_VNG
public static final int COLOR_BayerRG2BGR_VNG
public static final int COLOR_BayerGR2BGR_VNG
public static final int COLOR_BayerBG2RGB_VNG
public static final int COLOR_BayerGB2RGB_VNG
public static final int COLOR_BayerRG2RGB_VNG
public static final int COLOR_BayerGR2RGB_VNG
public static final int COLOR_BayerBG2BGR_EA
public static final int COLOR_BayerGB2BGR_EA
public static final int COLOR_BayerRG2BGR_EA
public static final int COLOR_BayerGR2BGR_EA
public static final int COLOR_BayerBG2RGB_EA
public static final int COLOR_BayerGB2RGB_EA
public static final int COLOR_BayerRG2RGB_EA
public static final int COLOR_BayerGR2RGB_EA
public static final int COLOR_BayerBG2BGRA
public static final int COLOR_BayerGB2BGRA
public static final int COLOR_BayerRG2BGRA
public static final int COLOR_BayerGR2BGRA
public static final int COLOR_BayerBG2RGBA
public static final int COLOR_BayerGB2RGBA
public static final int COLOR_BayerRG2RGBA
public static final int COLOR_BayerGR2RGBA
public static final int COLOR_COLORCVT_MAX
public static final int INTERSECT_NONE
public static final int INTERSECT_PARTIAL
public static final int INTERSECT_FULL
public static final int FILLED
public static final int LINE_4
public static final int LINE_8
public static final int LINE_AA
public static final int FONT_HERSHEY_SIMPLEX
public static final int FONT_HERSHEY_PLAIN
public static final int FONT_HERSHEY_DUPLEX
public static final int FONT_HERSHEY_COMPLEX
public static final int FONT_HERSHEY_TRIPLEX
public static final int FONT_HERSHEY_COMPLEX_SMALL
public static final int FONT_HERSHEY_SCRIPT_SIMPLEX
public static final int FONT_HERSHEY_SCRIPT_COMPLEX
public static final int FONT_ITALIC
public static final int MARKER_CROSS
public static final int MARKER_TILTED_CROSS
public static final int MARKER_STAR
public static final int MARKER_DIAMOND
public static final int MARKER_SQUARE
public static final int MARKER_TRIANGLE_UP
public static final int MARKER_TRIANGLE_DOWN
public static final int TM_SQDIFF
public static final int TM_SQDIFF_NORMED
public static final int TM_CCORR
public static final int TM_CCORR_NORMED
public static final int TM_CCOEFF
public static final int TM_CCOEFF_NORMED
public static final int COLORMAP_AUTUMN
public static final int COLORMAP_BONE
public static final int COLORMAP_JET
public static final int COLORMAP_WINTER
public static final int COLORMAP_RAINBOW
public static final int COLORMAP_OCEAN
public static final int COLORMAP_SUMMER
public static final int COLORMAP_SPRING
public static final int COLORMAP_COOL
public static final int COLORMAP_HSV
public static final int COLORMAP_PINK
public static final int COLORMAP_HOT
public static final int COLORMAP_PARULA
public static final int COLORMAP_MAGMA
public static final int COLORMAP_INFERNO
public static final int COLORMAP_PLASMA
public static final int COLORMAP_VIRIDIS
public static final int COLORMAP_CIVIDIS
public static final int COLORMAP_TWILIGHT
public static final int COLORMAP_TWILIGHT_SHIFTED
public static final int COLORMAP_TURBO
public static void cvAcc(@Const CvArr image, CvArr sum, @Const CvArr mask)
cv::accumulate
public static void cvSquareAcc(@Const CvArr image, CvArr sqsum, @Const CvArr mask)
cv::accumulateSquare
public static void cvMultiplyAcc(@Const CvArr image1, @Const CvArr image2, CvArr acc, @Const CvArr mask)
cv::accumulateProduct
public static void cvRunningAvg(@Const CvArr image, CvArr acc, double alpha, @Const CvArr mask)
cv::accumulateWeighted
public static void cvCopyMakeBorder(@Const CvArr src, CvArr dst, @ByVal CvPoint offset, int bordertype, @ByVal(nullValue="CvScalar(cvScalarAll(0))") CvScalar value)
public static void cvCopyMakeBorder(@Const CvArr src, CvArr dst, @ByVal CvPoint offset, int bordertype)
public static void cvCopyMakeBorder(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint*") IntBuffer offset, int bordertype, @ByVal(nullValue="CvScalar(cvScalarAll(0))") CvScalar value)
public static void cvCopyMakeBorder(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint*") IntBuffer offset, int bordertype)
public static void cvCopyMakeBorder(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint*") int[] offset, int bordertype, @ByVal(nullValue="CvScalar(cvScalarAll(0))") CvScalar value)
public static void cvCopyMakeBorder(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint*") int[] offset, int bordertype)
public static void cvSmooth(@Const CvArr src, CvArr dst, int smoothtype, int size1, int size2, double sigma1, double sigma2)
src
- The source imagedst
- The destination imagesmoothtype
- Type of the smoothing, see SmoothMethod_csize1
- The first parameter of the smoothing operation, the aperture width. Must be a
positive odd number (1, 3, 5, ...)size2
- The second parameter of the smoothing operation, the aperture height. Ignored by
CV_MEDIAN and CV_BILATERAL methods. In the case of simple scaled/non-scaled and Gaussian blur if
size2 is zero, it is set to size1. Otherwise it must be a positive odd number.sigma1
- In the case of a Gaussian parameter this parameter may specify Gaussian \sigma
(standard deviation). If it is zero, it is calculated from the kernel size:
\[\sigma = 0.3 (n/2 - 1) + 0.8 \quad \text{where} \quad n= \begin{array}{l l} \mbox{\texttt{size1} for horizontal kernel} \\ \mbox{\texttt{size2} for vertical kernel} \end{array}\]
Using standard sigma for small kernels ( 3\times 3
to 7\times 7
) gives better speed. If
sigma1 is not zero, while size1 and size2 are zeros, the kernel size is calculated from the
sigma (to provide accurate enough operation).sigma2
- additional parameter for bilateral filtering
cv::GaussianBlur, cv::blur, cv::medianBlur, cv::bilateralFilter.
public static void cvFilter2D(@Const CvArr src, CvArr dst, @Const CvMat kernel, @ByVal(nullValue="CvPoint(cvPoint(-1,-1))") CvPoint anchor)
src
- input image.dst
- output image of the same size and the same number of channels as src.kernel
- convolution kernel (or rather a correlation kernel), a single-channel floating point
matrix; if you want to apply different kernels to different channels, split the image into
separate color planes using split and process them individually.anchor
- anchor of the kernel that indicates the relative position of a filtered point within
the kernel; the anchor should lie within the kernel; default value (-1,-1) means that the anchor
is at the kernel center.
cv::filter2D
public static void cvFilter2D(@Const CvArr src, CvArr dst, @Const CvMat kernel, @ByVal(nullValue="CvPoint(cvPoint(-1,-1))") @Cast(value="CvPoint*") IntBuffer anchor)
public static void cvFilter2D(@Const CvArr src, CvArr dst, @Const CvMat kernel, @ByVal(nullValue="CvPoint(cvPoint(-1,-1))") @Cast(value="CvPoint*") int[] anchor)
public static void cvIntegral(@Const CvArr image, CvArr sum, CvArr sqsum, CvArr tilted_sum)
cv::integral
public static void cvPyrDown(@Const CvArr src, CvArr dst, int filter)
dst_width = floor(src_width/2)[+1], dst_height = floor(src_height/2)[+1]
cv::pyrDown
public static void cvPyrUp(@Const CvArr src, CvArr dst, int filter)
dst_width = src_width*2, dst_height = src_height*2
cv::pyrUp
@Cast(value="CvMat**") public static PointerPointer cvCreatePyramid(@Const CvArr img, int extra_layers, double rate, @Const CvSize layer_sizes, CvArr bufarr, int calc, int filter)
buildPyramid
@ByPtrPtr public static CvMat cvCreatePyramid(@Const CvArr img, int extra_layers, double rate)
public static void cvReleasePyramid(@Cast(value="CvMat***") @ByPtrPtr PointerPointer pyramid, int extra_layers)
public static void cvPyrMeanShiftFiltering(@Const CvArr src, CvArr dst, double sp, double sr, int max_level, @ByVal(nullValue="CvTermCriteria(cvTermCriteria(CV_TERMCRIT_ITER+CV_TERMCRIT_EPS,5,1))") CvTermCriteria termcrit)
cv::pyrMeanShiftFiltering
public static void cvPyrMeanShiftFiltering(@Const CvArr src, CvArr dst, double sp, double sr)
public static void cvWatershed(@Const CvArr image, CvArr markers)
cv::watershed
public static void cvSobel(@Const CvArr src, CvArr dst, int xorder, int yorder, int aperture_size)
(aperture_size = 1,3,5,7) or Scharr (aperture_size = -1) operator. Scharr can be used only for the first dx or dy derivative
cv::Sobel
public static void cvLaplace(@Const CvArr src, CvArr dst, int aperture_size)
cv::Laplacian
public static void cvCvtColor(@Const CvArr src, CvArr dst, int code)
cv::cvtColor
public static void cvResize(@Const CvArr src, CvArr dst, int interpolation)
cv::resize
public static void cvWarpAffine(@Const CvArr src, CvArr dst, @Const CvMat map_matrix, int flags, @ByVal(nullValue="CvScalar(cvScalarAll(0))") CvScalar fillval)
cv::warpAffine
public static CvMat cvGetAffineTransform(@Const CvPoint2D32f src, @Const CvPoint2D32f dst, CvMat map_matrix)
cv::getAffineTransform
public static CvMat cvGetAffineTransform(@Cast(value="const CvPoint2D32f*") FloatBuffer src, @Cast(value="const CvPoint2D32f*") FloatBuffer dst, CvMat map_matrix)
public static CvMat cvGetAffineTransform(@Cast(value="const CvPoint2D32f*") float[] src, @Cast(value="const CvPoint2D32f*") float[] dst, CvMat map_matrix)
public static CvMat cv2DRotationMatrix(@ByVal CvPoint2D32f center, double angle, double scale, CvMat map_matrix)
cv::getRotationMatrix2D
public static CvMat cv2DRotationMatrix(@ByVal @Cast(value="CvPoint2D32f*") FloatBuffer center, double angle, double scale, CvMat map_matrix)
public static CvMat cv2DRotationMatrix(@ByVal @Cast(value="CvPoint2D32f*") float[] center, double angle, double scale, CvMat map_matrix)
public static void cvWarpPerspective(@Const CvArr src, CvArr dst, @Const CvMat map_matrix, int flags, @ByVal(nullValue="CvScalar(cvScalarAll(0))") CvScalar fillval)
cv::warpPerspective
public static void cvWarpPerspective(@Const CvArr src, CvArr dst, @Const CvMat map_matrix)
public static CvMat cvGetPerspectiveTransform(@Const CvPoint2D32f src, @Const CvPoint2D32f dst, CvMat map_matrix)
cv::getPerspectiveTransform
public static CvMat cvGetPerspectiveTransform(@Cast(value="const CvPoint2D32f*") FloatBuffer src, @Cast(value="const CvPoint2D32f*") FloatBuffer dst, CvMat map_matrix)
public static CvMat cvGetPerspectiveTransform(@Cast(value="const CvPoint2D32f*") float[] src, @Cast(value="const CvPoint2D32f*") float[] dst, CvMat map_matrix)
public static void cvRemap(@Const CvArr src, CvArr dst, @Const CvArr mapx, @Const CvArr mapy, int flags, @ByVal(nullValue="CvScalar(cvScalarAll(0))") CvScalar fillval)
cv::remap
public static void cvRemap(@Const CvArr src, CvArr dst, @Const CvArr mapx, @Const CvArr mapy)
public static void cvConvertMaps(@Const CvArr mapx, @Const CvArr mapy, CvArr mapxy, CvArr mapalpha)
cv::convertMaps
public static void cvLogPolar(@Const CvArr src, CvArr dst, @ByVal CvPoint2D32f center, double M, int flags)
cv::warpPolar
public static void cvLogPolar(@Const CvArr src, CvArr dst, @ByVal CvPoint2D32f center, double M)
public static void cvLogPolar(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint2D32f*") FloatBuffer center, double M, int flags)
public static void cvLogPolar(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint2D32f*") FloatBuffer center, double M)
public static void cvLogPolar(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint2D32f*") float[] center, double M, int flags)
public static void cvLogPolar(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint2D32f*") float[] center, double M)
public static void cvLinearPolar(@Const CvArr src, CvArr dst, @ByVal CvPoint2D32f center, double maxRadius, int flags)
cv::warpPolar
public static void cvLinearPolar(@Const CvArr src, CvArr dst, @ByVal CvPoint2D32f center, double maxRadius)
public static void cvLinearPolar(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint2D32f*") FloatBuffer center, double maxRadius, int flags)
public static void cvLinearPolar(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint2D32f*") FloatBuffer center, double maxRadius)
public static void cvLinearPolar(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint2D32f*") float[] center, double maxRadius, int flags)
public static void cvLinearPolar(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint2D32f*") float[] center, double maxRadius)
public static IplConvKernel cvCreateStructuringElementEx(int cols, int rows, int anchor_x, int anchor_y, int shape, IntPointer values)
\note the created structuring element IplConvKernel\* element must be released in the end using
cvReleaseStructuringElement(&element)
.
cols
- Width of the structuring elementrows
- Height of the structuring elementanchor_x
- x-coordinate of the anchoranchor_y
- y-coordinate of the anchorshape
- element shape that could be one of the cv::MorphShapes_cvalues
- integer array of cols*rows elements that specifies the custom shape of the
structuring element, when shape=CV_SHAPE_CUSTOM.
cv::getStructuringElement
public static IplConvKernel cvCreateStructuringElementEx(int cols, int rows, int anchor_x, int anchor_y, int shape)
public static IplConvKernel cvCreateStructuringElementEx(int cols, int rows, int anchor_x, int anchor_y, int shape, IntBuffer values)
public static IplConvKernel cvCreateStructuringElementEx(int cols, int rows, int anchor_x, int anchor_y, int shape, int[] values)
public static void cvReleaseStructuringElement(@Cast(value="IplConvKernel**") PointerPointer element)
cvCreateStructuringElementEx
public static void cvReleaseStructuringElement(@ByPtrPtr IplConvKernel element)
public static void cvErode(@Const CvArr src, CvArr dst, IplConvKernel element, int iterations)
cv::erode
public static void cvDilate(@Const CvArr src, CvArr dst, IplConvKernel element, int iterations)
If element pointer is NULL, 3x3 rectangular element is used
cv::dilate
public static void cvMorphologyEx(@Const CvArr src, CvArr dst, CvArr temp, IplConvKernel element, int operation, int iterations)
cv::morphologyEx
public static void cvMorphologyEx(@Const CvArr src, CvArr dst, CvArr temp, IplConvKernel element, int operation)
public static void cvMoments(@Const CvArr arr, CvMoments moments, int binary)
cv::moments
public static double cvGetSpatialMoment(CvMoments moments, int x_order, int y_order)
public static double cvGetCentralMoment(CvMoments moments, int x_order, int y_order)
public static double cvGetNormalizedCentralMoment(CvMoments moments, int x_order, int y_order)
public static void cvGetHuMoments(CvMoments moments, CvHuMoments hu_moments)
cv::HuMoments
public static int cvSampleLine(@Const CvArr image, @ByVal CvPoint pt1, @ByVal CvPoint pt2, Pointer buffer, int connectivity)
Returns the number of retrieved points.
cv::LineSegmentDetector
public static int cvSampleLine(@Const CvArr image, @ByVal CvPoint pt1, @ByVal CvPoint pt2, Pointer buffer)
public static int cvSampleLine(@Const CvArr image, @ByVal @Cast(value="CvPoint*") IntBuffer pt1, @ByVal @Cast(value="CvPoint*") IntBuffer pt2, Pointer buffer, int connectivity)
public static int cvSampleLine(@Const CvArr image, @ByVal @Cast(value="CvPoint*") IntBuffer pt1, @ByVal @Cast(value="CvPoint*") IntBuffer pt2, Pointer buffer)
public static int cvSampleLine(@Const CvArr image, @ByVal @Cast(value="CvPoint*") int[] pt1, @ByVal @Cast(value="CvPoint*") int[] pt2, Pointer buffer, int connectivity)
public static int cvSampleLine(@Const CvArr image, @ByVal @Cast(value="CvPoint*") int[] pt1, @ByVal @Cast(value="CvPoint*") int[] pt2, Pointer buffer)
public static void cvGetRectSubPix(@Const CvArr src, CvArr dst, @ByVal CvPoint2D32f center)
dst(x,y) <- src(x + center.x - dst_width/2, y + center.y - dst_height/2). Values of pixels with fractional coordinates are retrieved using bilinear interpolation
cv::getRectSubPix
public static void cvGetRectSubPix(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint2D32f*") FloatBuffer center)
public static void cvGetRectSubPix(@Const CvArr src, CvArr dst, @ByVal @Cast(value="CvPoint2D32f*") float[] center)
public static void cvGetQuadrangleSubPix(@Const CvArr src, CvArr dst, @Const CvMat map_matrix)
matrixarr = ( a11 a12 | b1 ) dst(x,y) <- src(A[x y]' + b) ( a21 a22 | b2 ) (bilinear interpolation is used to retrieve pixels with fractional coordinates)
cvWarpAffine
public static void cvMatchTemplate(@Const CvArr image, @Const CvArr templ, CvArr result, int method)
cv::matchTemplate
public static float cvCalcEMD2(@Const CvArr signature1, @Const CvArr signature2, int distance_type, CvDistanceFunction distance_func, @Const CvArr cost_matrix, CvArr flow, FloatPointer lower_bound, Pointer userdata)
cv::EMD
public static float cvCalcEMD2(@Const CvArr signature1, @Const CvArr signature2, int distance_type)
public static float cvCalcEMD2(@Const CvArr signature1, @Const CvArr signature2, int distance_type, CvDistanceFunction distance_func, @Const CvArr cost_matrix, CvArr flow, FloatBuffer lower_bound, Pointer userdata)
public static float cvCalcEMD2(@Const CvArr signature1, @Const CvArr signature2, int distance_type, CvDistanceFunction distance_func, @Const CvArr cost_matrix, CvArr flow, float[] lower_bound, Pointer userdata)
public static int cvFindContours(CvArr image, CvMemStorage storage, @Cast(value="CvSeq**") PointerPointer first_contour, int header_size, int mode, int method, @ByVal(nullValue="CvPoint(cvPoint(0,0))") CvPoint offset)
cv::findContours, cvStartFindContours, cvFindNextContour, cvSubstituteContour, cvEndFindContours
public static int cvFindContours(CvArr image, CvMemStorage storage, @ByPtrPtr CvSeq first_contour)
public static int cvFindContours(CvArr image, CvMemStorage storage, @ByPtrPtr CvSeq first_contour, int header_size, int mode, int method, @ByVal(nullValue="CvPoint(cvPoint(0,0))") CvPoint offset)
public static int cvFindContours(CvArr image, CvMemStorage storage, @ByPtrPtr CvSeq first_contour, int header_size, int mode, int method, @ByVal(nullValue="CvPoint(cvPoint(0,0))") @Cast(value="CvPoint*") IntBuffer offset)
public static int cvFindContours(CvArr image, CvMemStorage storage, @ByPtrPtr CvSeq first_contour, int header_size, int mode, int method, @ByVal(nullValue="CvPoint(cvPoint(0,0))") @Cast(value="CvPoint*") int[] offset)
public static CvContourScanner cvStartFindContours(CvArr image, CvMemStorage storage, int header_size, int mode, int method, @ByVal(nullValue="CvPoint(cvPoint(0,0))") CvPoint offset)
Calls cvStartFindContours. Calls cvFindNextContour until null pointer is returned or some other condition becomes true. Calls cvEndFindContours at the end.
cvFindContours
public static CvContourScanner cvStartFindContours(CvArr image, CvMemStorage storage)
public static CvContourScanner cvStartFindContours(CvArr image, CvMemStorage storage, int header_size, int mode, int method, @ByVal(nullValue="CvPoint(cvPoint(0,0))") @Cast(value="CvPoint*") IntBuffer offset)
public static CvContourScanner cvStartFindContours(CvArr image, CvMemStorage storage, int header_size, int mode, int method, @ByVal(nullValue="CvPoint(cvPoint(0,0))") @Cast(value="CvPoint*") int[] offset)
public static CvSeq cvFindNextContour(CvContourScanner scanner)
cvFindContours
public static void cvSubstituteContour(CvContourScanner scanner, CvSeq new_contour)
(if the substitutor is null, the last retrieved contour is removed from the tree)
cvFindContours
public static CvSeq cvEndFindContours(@ByPtrPtr CvContourScanner scanner)
cvFindContours
public static CvSeq cvApproxChains(CvSeq src_seq, CvMemStorage storage, int method, double parameter, int minimal_perimeter, int recursive)
This is a standalone contour approximation routine, not represented in the new interface. When cvFindContours retrieves contours as Freeman chains, it calls the function to get approximated contours, represented as polygons.
src_seq
- Pointer to the approximated Freeman chain that can refer to other chains.storage
- Storage location for the resulting polylines.method
- Approximation method (see the description of the function :ocvFindContours ).parameter
- Method parameter (not used now).minimal_perimeter
- Approximates only those contours whose perimeters are not less than
minimal_perimeter . Other chains are removed from the resulting structure.recursive
- Recursion flag. If it is non-zero, the function approximates all chains that can
be obtained from chain by using the h_next or v_next links. Otherwise, the single input chain is
approximated.cvStartReadChainPoints, cvReadChainPoint
public static CvSeq cvApproxChains(CvSeq src_seq, CvMemStorage storage)
public static void cvStartReadChainPoints(CvChain chain, CvChainPtReader reader)
The reader is used to iteratively get coordinates of all the chain points. If the Freeman codes should be read as is, a simple sequence reader should be used
cvApproxChains
@ByVal public static CvPoint cvReadChainPoint(CvChainPtReader reader)
cvApproxChains
public static CvSeq cvApproxPoly(@Const Pointer src_seq, int header_size, CvMemStorage storage, int method, double eps, int recursive)
cv::approxPolyDP
public static CvSeq cvApproxPoly(@Const Pointer src_seq, int header_size, CvMemStorage storage, int method, double eps)
public static double cvArcLength(@Const Pointer curve, @ByVal(nullValue="CvSlice(CV_WHOLE_SEQ)") CvSlice slice, int is_closed)
cv::arcLength
public static double cvContourPerimeter(@Const Pointer contour)
@ByVal public static CvRect cvBoundingRect(CvArr points, int update)
cv::boundingRect
public static double cvContourArea(@Const CvArr contour, @ByVal(nullValue="CvSlice(CV_WHOLE_SEQ)") CvSlice slice, int oriented)
cv::contourArea
@ByVal public static CvBox2D cvMinAreaRect2(@Const CvArr points, CvMemStorage storage)
cv::minAreaRect
public static int cvMinEnclosingCircle(@Const CvArr points, CvPoint2D32f center, FloatPointer radius)
cv::minEnclosingCircle
public static int cvMinEnclosingCircle(@Const CvArr points, @Cast(value="CvPoint2D32f*") FloatBuffer center, FloatBuffer radius)
public static int cvMinEnclosingCircle(@Const CvArr points, @Cast(value="CvPoint2D32f*") float[] center, float[] radius)
public static double cvMatchShapes(@Const Pointer object1, @Const Pointer object2, int method, double parameter)
cv::matchShapes
public static double cvMatchShapes(@Const Pointer object1, @Const Pointer object2, int method)
public static CvSeq cvConvexHull2(@Const CvArr input, Pointer hull_storage, int orientation, int return_points)
cv::convexHull
public static int cvCheckContourConvexity(@Const CvArr contour)
cv::isContourConvex
public static CvSeq cvConvexityDefects(@Const CvArr contour, @Const CvArr convexhull, CvMemStorage storage)
cv::convexityDefects
public static CvSeq cvConvexityDefects(@Const CvArr contour, @Const CvArr convexhull)
@ByVal public static CvBox2D cvFitEllipse2(@Const CvArr points)
cv::fitEllipse
@ByVal public static CvRect cvMaxRect(@Const CvRect rect1, @Const CvRect rect2)
public static void cvBoxPoints(@ByVal CvBox2D box, CvPoint2D32f pt)
public static void cvBoxPoints(@ByVal CvBox2D box, @Cast(value="CvPoint2D32f*") FloatBuffer pt)
public static void cvBoxPoints(@ByVal CvBox2D box, @Cast(value="CvPoint2D32f*") float[] pt)
public static CvSeq cvPointSeqFromMat(int seq_kind, @Const CvArr mat, CvContour contour_header, CvSeqBlock block)
a wrapper for cvMakeSeqHeaderForArray (it does not initialize bounding rectangle!!!)
public static double cvPointPolygonTest(@Const CvArr contour, @ByVal CvPoint2D32f pt, int measure_dist)
Returns positive, negative or zero value, correspondingly. Optionally, measures a signed distance between the point and the nearest polygon edge (measure_dist=1)
cv::pointPolygonTest
public static double cvPointPolygonTest(@Const CvArr contour, @ByVal @Cast(value="CvPoint2D32f*") FloatBuffer pt, int measure_dist)
public static double cvPointPolygonTest(@Const CvArr contour, @ByVal @Cast(value="CvPoint2D32f*") float[] pt, int measure_dist)
public static CvHistogram cvCreateHist(int dims, IntPointer sizes, int type, @Cast(value="float**") PointerPointer ranges, int uniform)
The function creates a histogram of the specified size and returns a pointer to the created histogram. If the array ranges is 0, the histogram bin ranges must be specified later via the function cvSetHistBinRanges. Though cvCalcHist and cvCalcBackProject may process 8-bit images without setting bin ranges, they assume they are equally spaced in 0 to 255 bins.
dims
- Number of histogram dimensions.sizes
- Array of the histogram dimension sizes.type
- Histogram representation format. CV_HIST_ARRAY means that the histogram data is
represented as a multi-dimensional dense array CvMatND. CV_HIST_SPARSE means that histogram data
is represented as a multi-dimensional sparse array CvSparseMat.ranges
- Array of ranges for the histogram bins. Its meaning depends on the uniform parameter
value. The ranges are used when the histogram is calculated or backprojected to determine which
histogram bin corresponds to which value/tuple of values from the input image(s).uniform
- Uniformity flag. If not zero, the histogram has evenly spaced bins and for every
0<=i<cDims
ranges[i] is an array of two numbers: lower and upper boundaries for the i-th
histogram dimension. The whole range [lower,upper] is then split into dims[i] equal parts to
determine the i-th input tuple value ranges for every histogram bin. And if uniform=0 , then the
i-th element of the ranges array contains dims[i]+1 elements: \texttt{lower}_0,
\texttt{upper}_0, \texttt{lower}_1, \texttt{upper}_1 = \texttt{lower}_2,
...
\texttt{upper}_{dims[i]-1}
where \texttt{lower}_j
and \texttt{upper}_j
are lower
and upper boundaries of the i-th input tuple value for the j-th bin, respectively. In either
case, the input values that are beyond the specified range for a histogram bin are not counted
by cvCalcHist and filled with 0 by cvCalcBackProject.public static CvHistogram cvCreateHist(int dims, IntPointer sizes, int type)
public static CvHistogram cvCreateHist(int dims, IntPointer sizes, int type, @ByPtrPtr FloatPointer ranges, int uniform)
public static CvHistogram cvCreateHist(int dims, IntBuffer sizes, int type, @ByPtrPtr FloatBuffer ranges, int uniform)
public static CvHistogram cvCreateHist(int dims, IntBuffer sizes, int type)
public static CvHistogram cvCreateHist(int dims, int[] sizes, int type, @ByPtrPtr float[] ranges, int uniform)
public static CvHistogram cvCreateHist(int dims, int[] sizes, int type)
public static void cvSetHistBinRanges(CvHistogram hist, @Cast(value="float**") PointerPointer ranges, int uniform)
This is a standalone function for setting bin ranges in the histogram. For a more detailed description of the parameters ranges and uniform, see the :ocvCalcHist function that can initialize the ranges as well. Ranges for the histogram bins must be set before the histogram is calculated or the backproject of the histogram is calculated.
hist
- Histogram.ranges
- Array of bin ranges arrays. See :ocvCreateHist for details.uniform
- Uniformity flag. See :ocvCreateHist for details.public static void cvSetHistBinRanges(CvHistogram hist, @ByPtrPtr FloatPointer ranges)
public static void cvSetHistBinRanges(CvHistogram hist, @ByPtrPtr FloatPointer ranges, int uniform)
public static void cvSetHistBinRanges(CvHistogram hist, @ByPtrPtr FloatBuffer ranges, int uniform)
public static void cvSetHistBinRanges(CvHistogram hist, @ByPtrPtr FloatBuffer ranges)
public static void cvSetHistBinRanges(CvHistogram hist, @ByPtrPtr float[] ranges, int uniform)
public static void cvSetHistBinRanges(CvHistogram hist, @ByPtrPtr float[] ranges)
public static CvHistogram cvMakeHistHeaderForArray(int dims, IntPointer sizes, CvHistogram hist, FloatPointer data, @Cast(value="float**") PointerPointer ranges, int uniform)
The function initializes the histogram, whose header and bins are allocated by the user. cvReleaseHist does not need to be called afterwards. Only dense histograms can be initialized this way. The function returns hist.
dims
- Number of the histogram dimensions.sizes
- Array of the histogram dimension sizes.hist
- Histogram header initialized by the function.data
- Array used to store histogram bins.ranges
- Histogram bin ranges. See cvCreateHist for details.uniform
- Uniformity flag. See cvCreateHist for details.public static CvHistogram cvMakeHistHeaderForArray(int dims, IntPointer sizes, CvHistogram hist, FloatPointer data)
public static CvHistogram cvMakeHistHeaderForArray(int dims, IntPointer sizes, CvHistogram hist, FloatPointer data, @ByPtrPtr FloatPointer ranges, int uniform)
public static CvHistogram cvMakeHistHeaderForArray(int dims, IntBuffer sizes, CvHistogram hist, FloatBuffer data, @ByPtrPtr FloatBuffer ranges, int uniform)
public static CvHistogram cvMakeHistHeaderForArray(int dims, IntBuffer sizes, CvHistogram hist, FloatBuffer data)
public static CvHistogram cvMakeHistHeaderForArray(int dims, int[] sizes, CvHistogram hist, float[] data, @ByPtrPtr float[] ranges, int uniform)
public static CvHistogram cvMakeHistHeaderForArray(int dims, int[] sizes, CvHistogram hist, float[] data)
public static void cvReleaseHist(@Cast(value="CvHistogram**") PointerPointer hist)
The function releases the histogram (header and the data). The pointer to the histogram is cleared by the function. If \*hist pointer is already NULL, the function does nothing.
hist
- Double pointer to the released histogram.public static void cvReleaseHist(@ByPtrPtr CvHistogram hist)
public static void cvClearHist(CvHistogram hist)
The function sets all of the histogram bins to 0 in case of a dense histogram and removes all histogram bins in case of a sparse array.
hist
- Histogram.public static void cvGetMinMaxHistValue(@Const CvHistogram hist, FloatPointer min_value, FloatPointer max_value, IntPointer min_idx, IntPointer max_idx)
The function finds the minimum and maximum histogram bins and their positions. All of output arguments are optional. Among several extremas with the same value the ones with the minimum index (in the lexicographical order) are returned. In case of several maximums or minimums, the earliest in the lexicographical order (extrema locations) is returned.
hist
- Histogram.min_value
- Pointer to the minimum value of the histogram.max_value
- Pointer to the maximum value of the histogram.min_idx
- Pointer to the array of coordinates for the minimum.max_idx
- Pointer to the array of coordinates for the maximum.public static void cvGetMinMaxHistValue(@Const CvHistogram hist, FloatPointer min_value, FloatPointer max_value)
public static void cvGetMinMaxHistValue(@Const CvHistogram hist, FloatBuffer min_value, FloatBuffer max_value, IntBuffer min_idx, IntBuffer max_idx)
public static void cvGetMinMaxHistValue(@Const CvHistogram hist, FloatBuffer min_value, FloatBuffer max_value)
public static void cvGetMinMaxHistValue(@Const CvHistogram hist, float[] min_value, float[] max_value, int[] min_idx, int[] max_idx)
public static void cvGetMinMaxHistValue(@Const CvHistogram hist, float[] min_value, float[] max_value)
public static void cvNormalizeHist(CvHistogram hist, double factor)
The function normalizes the histogram bins by scaling them so that the sum of the bins becomes equal to factor.
hist
- Pointer to the histogram.factor
- Normalization factor.public static void cvThreshHist(CvHistogram hist, double threshold)
The function clears histogram bins that are below the specified threshold.
hist
- Pointer to the histogram.threshold
- Threshold level.public static double cvCompareHist(@Const CvHistogram hist1, @Const CvHistogram hist2, int method)
public static void cvCopyHist(@Const CvHistogram src, @Cast(value="CvHistogram**") PointerPointer dst)
The function makes a copy of the histogram. If the second histogram pointer \*dst is NULL, a new histogram of the same size as src is created. Otherwise, both histograms must have equal types and sizes. Then the function copies the bin values of the source histogram to the destination histogram and sets the same bin value ranges as in src.
src
- Source histogram.dst
- Pointer to the destination histogram.public static void cvCopyHist(@Const CvHistogram src, @ByPtrPtr CvHistogram dst)
public static void cvCalcBayesianProb(@Cast(value="CvHistogram**") PointerPointer src, int number, @Cast(value="CvHistogram**") PointerPointer dst)
public static void cvCalcBayesianProb(@ByPtrPtr CvHistogram src, int number, @ByPtrPtr CvHistogram dst)
public static void cvCalcArrHist(@Cast(value="CvArr**") PointerPointer arr, CvHistogram hist, int accumulate, @Const CvArr mask)
cv::calcHist
public static void cvCalcArrHist(@ByPtrPtr CvArr arr, CvHistogram hist)
public static void cvCalcArrHist(@ByPtrPtr CvArr arr, CvHistogram hist, int accumulate, @Const CvArr mask)
public static void cvCalcHist(@Cast(value="IplImage**") PointerPointer image, CvHistogram hist, int accumulate, @Const CvArr mask)
public static void cvCalcHist(@ByPtrPtr IplImage image, CvHistogram hist)
public static void cvCalcHist(@ByPtrPtr IplImage image, CvHistogram hist, int accumulate, @Const CvArr mask)
public static void cvCalcArrBackProject(@Cast(value="CvArr**") PointerPointer image, CvArr dst, @Const CvHistogram hist)
cvCalcBackProject, cv::calcBackProject
public static void cvCalcArrBackProject(@ByPtrPtr CvArr image, CvArr dst, @Const CvHistogram hist)
public static void cvCalcBackProject(@Cast(value="IplImage**") PointerPointer image, CvArr dst, CvHistogram hist)
public static void cvCalcBackProject(@ByPtrPtr IplImage image, CvArr dst, CvHistogram hist)
public static void cvCalcArrBackProjectPatch(@Cast(value="CvArr**") PointerPointer image, CvArr dst, @ByVal CvSize range, CvHistogram hist, int method, double factor)
The function calculates the back projection by comparing histograms of the source image patches with the given histogram. The function is similar to matchTemplate, but instead of comparing the raster patch with all its possible positions within the search window, the function CalcBackProjectPatch compares histograms. See the algorithm diagram below:
![image](pics/backprojectpatch.png)
image
- Source images (though, you may pass CvMat\*\* as well).dst
- Destination image.range
- hist
- Histogram.method
- Comparison method passed to cvCompareHist (see the function description).factor
- Normalization factor for histograms that affects the normalization scale of the
destination image. Pass 1 if not sure.
cvCalcBackProjectPatch
public static void cvCalcArrBackProjectPatch(@ByPtrPtr CvArr image, CvArr dst, @ByVal CvSize range, CvHistogram hist, int method, double factor)
public static void cvCalcBackProjectPatch(@Cast(value="IplImage**") PointerPointer image, CvArr dst, @ByVal CvSize range, CvHistogram hist, int method, double factor)
public static void cvCalcBackProjectPatch(@ByPtrPtr IplImage image, CvArr dst, @ByVal CvSize range, CvHistogram hist, int method, double factor)
public static void cvCalcProbDensity(@Const CvHistogram hist1, @Const CvHistogram hist2, CvHistogram dst_hist, double scale)
The function calculates the object probability density from two histograms as:
\[\texttt{disthist} (I)= \forkthree{0}{if \(\texttt{hist1}(I)=0\)}{\texttt{scale}}{if \(\texttt{hist1}(I) \ne 0\) and \(\texttt{hist2}(I) > \texttt{hist1}(I)\)}{\frac{\texttt{hist2}(I) \cdot \texttt{scale}}{\texttt{hist1}(I)}}{if \(\texttt{hist1}(I) \ne 0\) and \(\texttt{hist2}(I) \le \texttt{hist1}(I)\)}\]
hist1
- First histogram (the divisor).hist2
- Second histogram.dst_hist
- Destination histogram.scale
- Scale factor for the destination histogram.public static void cvCalcProbDensity(@Const CvHistogram hist1, @Const CvHistogram hist2, CvHistogram dst_hist)
public static void cvEqualizeHist(@Const CvArr src, CvArr dst)
cv::equalizeHist
public static void cvDistTransform(@Const CvArr src, CvArr dst, int distance_type, int mask_size, @Const FloatPointer mask, CvArr labels, int labelType)
cv::distanceTransform
public static void cvDistTransform(@Const CvArr src, CvArr dst, int distance_type, int mask_size, @Const FloatBuffer mask, CvArr labels, int labelType)
public static void cvDistTransform(@Const CvArr src, CvArr dst, int distance_type, int mask_size, @Const float[] mask, CvArr labels, int labelType)
public static double cvThreshold(@Const CvArr src, CvArr dst, double threshold, double max_value, int threshold_type)
This is a basic operation applied before retrieving contours
cv::threshold
public static void cvAdaptiveThreshold(@Const CvArr src, CvArr dst, double max_value, int adaptive_method, int threshold_type, int block_size, double param1)
The two parameters for methods CV_ADAPTIVE_THRESH_MEAN_C and CV_ADAPTIVE_THRESH_GAUSSIAN_C are: neighborhood size (3, 5, 7 etc.), and a constant subtracted from mean (...,-3,-2,-1,0,1,2,3,...)
cv::adaptiveThreshold
public static void cvAdaptiveThreshold(@Const CvArr src, CvArr dst, double max_value)
public static void cvFloodFill(CvArr image, @ByVal CvPoint seed_point, @ByVal CvScalar new_val, @ByVal(nullValue="CvScalar(cvScalarAll(0))") CvScalar lo_diff, @ByVal(nullValue="CvScalar(cvScalarAll(0))") CvScalar up_diff, CvConnectedComp comp, int flags, CvArr mask)
cv::floodFill
public static void cvFloodFill(CvArr image, @ByVal CvPoint seed_point, @ByVal CvScalar new_val)
public static void cvFloodFill(CvArr image, @ByVal @Cast(value="CvPoint*") IntBuffer seed_point, @ByVal CvScalar new_val, @ByVal(nullValue="CvScalar(cvScalarAll(0))") CvScalar lo_diff, @ByVal(nullValue="CvScalar(cvScalarAll(0))") CvScalar up_diff, CvConnectedComp comp, int flags, CvArr mask)
public static void cvFloodFill(CvArr image, @ByVal @Cast(value="CvPoint*") IntBuffer seed_point, @ByVal CvScalar new_val)
public static void cvFloodFill(CvArr image, @ByVal @Cast(value="CvPoint*") int[] seed_point, @ByVal CvScalar new_val, @ByVal(nullValue="CvScalar(cvScalarAll(0))") CvScalar lo_diff, @ByVal(nullValue="CvScalar(cvScalarAll(0))") CvScalar up_diff, CvConnectedComp comp, int flags, CvArr mask)
public static void cvFloodFill(CvArr image, @ByVal @Cast(value="CvPoint*") int[] seed_point, @ByVal CvScalar new_val)
public static void cvCanny(@Const CvArr image, CvArr edges, double threshold1, double threshold2, int aperture_size)
cv::Canny
public static void cvCanny(@Const CvArr image, CvArr edges, double threshold1, double threshold2)
public static void cvPreCornerDetect(@Const CvArr image, CvArr corners, int aperture_size)
Dx^2 * Dyy + Dxx * Dy^2 - 2 * Dx * Dy * Dxy. Applying threshold to the result gives coordinates of corners
cv::preCornerDetect
public static void cvCornerEigenValsAndVecs(@Const CvArr image, CvArr eigenvv, int block_size, int aperture_size)
cv::cornerEigenValsAndVecs
public static void cvCornerEigenValsAndVecs(@Const CvArr image, CvArr eigenvv, int block_size)
public static void cvCornerMinEigenVal(@Const CvArr image, CvArr eigenval, int block_size, int aperture_size)
cv::cornerMinEigenVal
public static void cvCornerMinEigenVal(@Const CvArr image, CvArr eigenval, int block_size)
public static void cvCornerHarris(@Const CvArr image, CvArr harris_response, int block_size, int aperture_size, double k)
Calculates det(M) - k*(trace(M)^2), where M is 2x2 gradient covariation matrix for each pixel
cv::cornerHarris
public static void cvCornerHarris(@Const CvArr image, CvArr harris_response, int block_size)
public static void cvFindCornerSubPix(@Const CvArr image, CvPoint2D32f corners, int count, @ByVal CvSize win, @ByVal CvSize zero_zone, @ByVal CvTermCriteria criteria)
cv::cornerSubPix
public static void cvFindCornerSubPix(@Const CvArr image, @Cast(value="CvPoint2D32f*") FloatBuffer corners, int count, @ByVal CvSize win, @ByVal CvSize zero_zone, @ByVal CvTermCriteria criteria)
public static void cvFindCornerSubPix(@Const CvArr image, @Cast(value="CvPoint2D32f*") float[] corners, int count, @ByVal CvSize win, @ByVal CvSize zero_zone, @ByVal CvTermCriteria criteria)
public static void cvGoodFeaturesToTrack(@Const CvArr image, CvArr eig_image, CvArr temp_image, CvPoint2D32f corners, IntPointer corner_count, double quality_level, double min_distance, @Const CvArr mask, int block_size, int use_harris, double k)
cv::goodFeaturesToTrack
public static void cvGoodFeaturesToTrack(@Const CvArr image, CvArr eig_image, CvArr temp_image, CvPoint2D32f corners, IntPointer corner_count, double quality_level, double min_distance)
public static void cvGoodFeaturesToTrack(@Const CvArr image, CvArr eig_image, CvArr temp_image, @Cast(value="CvPoint2D32f*") FloatBuffer corners, IntBuffer corner_count, double quality_level, double min_distance, @Const CvArr mask, int block_size, int use_harris, double k)
public static void cvGoodFeaturesToTrack(@Const CvArr image, CvArr eig_image, CvArr temp_image, @Cast(value="CvPoint2D32f*") FloatBuffer corners, IntBuffer corner_count, double quality_level, double min_distance)
public static void cvGoodFeaturesToTrack(@Const CvArr image, CvArr eig_image, CvArr temp_image, @Cast(value="CvPoint2D32f*") float[] corners, int[] corner_count, double quality_level, double min_distance, @Const CvArr mask, int block_size, int use_harris, double k)
public static void cvGoodFeaturesToTrack(@Const CvArr image, CvArr eig_image, CvArr temp_image, @Cast(value="CvPoint2D32f*") float[] corners, int[] corner_count, double quality_level, double min_distance)
public static CvSeq cvHoughLines2(CvArr image, Pointer line_storage, int method, double rho, double theta, int threshold, double param1, double param2, double min_theta, double max_theta)
line_storage is either memory storage or 1 x _max number of lines_ CvMat, its number of columns is changed by the function. method is one of CV_HOUGH_*; rho, theta and threshold are used for each of those methods; param1 ~ line length, param2 ~ line gap - for probabilistic, param1 ~ srn, param2 ~ stn - for multi-scale
cv::HoughLines
public static CvSeq cvHoughLines2(CvArr image, Pointer line_storage, int method, double rho, double theta, int threshold)
public static CvSeq cvHoughCircles(CvArr image, Pointer circle_storage, int method, double dp, double min_dist, double param1, double param2, int min_radius, int max_radius)
cv::HoughCircles
public static CvSeq cvHoughCircles(CvArr image, Pointer circle_storage, int method, double dp, double min_dist)
public static void cvFitLine(@Const CvArr points, int dist_type, double param, double reps, double aeps, FloatPointer line)
cv::fitLine
public static void cvFitLine(@Const CvArr points, int dist_type, double param, double reps, double aeps, FloatBuffer line)
public static void cvFitLine(@Const CvArr points, int dist_type, double param, double reps, double aeps, float[] line)
public static void cvLine(CvArr img, @ByVal CvPoint pt1, @ByVal CvPoint pt2, @ByVal CvScalar color, int thickness, int line_type, int shift)
cv::line
public static void cvLine(CvArr img, @ByVal CvPoint pt1, @ByVal CvPoint pt2, @ByVal CvScalar color)
public static void cvLine(CvArr img, @ByVal @Cast(value="CvPoint*") IntBuffer pt1, @ByVal @Cast(value="CvPoint*") IntBuffer pt2, @ByVal CvScalar color, int thickness, int line_type, int shift)
public static void cvLine(CvArr img, @ByVal @Cast(value="CvPoint*") IntBuffer pt1, @ByVal @Cast(value="CvPoint*") IntBuffer pt2, @ByVal CvScalar color)
public static void cvLine(CvArr img, @ByVal @Cast(value="CvPoint*") int[] pt1, @ByVal @Cast(value="CvPoint*") int[] pt2, @ByVal CvScalar color, int thickness, int line_type, int shift)
public static void cvLine(CvArr img, @ByVal @Cast(value="CvPoint*") int[] pt1, @ByVal @Cast(value="CvPoint*") int[] pt2, @ByVal CvScalar color)
public static void cvRectangle(CvArr img, @ByVal CvPoint pt1, @ByVal CvPoint pt2, @ByVal CvScalar color, int thickness, int line_type, int shift)
if thickness<0 (e.g. thickness == CV_FILLED), the filled box is drawn
cv::rectangle
public static void cvRectangle(CvArr img, @ByVal CvPoint pt1, @ByVal CvPoint pt2, @ByVal CvScalar color)
public static void cvRectangle(CvArr img, @ByVal @Cast(value="CvPoint*") IntBuffer pt1, @ByVal @Cast(value="CvPoint*") IntBuffer pt2, @ByVal CvScalar color, int thickness, int line_type, int shift)
public static void cvRectangle(CvArr img, @ByVal @Cast(value="CvPoint*") IntBuffer pt1, @ByVal @Cast(value="CvPoint*") IntBuffer pt2, @ByVal CvScalar color)
public static void cvRectangle(CvArr img, @ByVal @Cast(value="CvPoint*") int[] pt1, @ByVal @Cast(value="CvPoint*") int[] pt2, @ByVal CvScalar color, int thickness, int line_type, int shift)
public static void cvRectangle(CvArr img, @ByVal @Cast(value="CvPoint*") int[] pt1, @ByVal @Cast(value="CvPoint*") int[] pt2, @ByVal CvScalar color)
public static void cvRectangleR(CvArr img, @ByVal CvRect r, @ByVal CvScalar color, int thickness, int line_type, int shift)
cv::rectangle
public static void cvCircle(CvArr img, @ByVal CvPoint center, int radius, @ByVal CvScalar color, int thickness, int line_type, int shift)
Thickness works in the same way as with cvRectangle
cv::circle
public static void cvCircle(CvArr img, @ByVal CvPoint center, int radius, @ByVal CvScalar color)
public static void cvCircle(CvArr img, @ByVal @Cast(value="CvPoint*") IntBuffer center, int radius, @ByVal CvScalar color, int thickness, int line_type, int shift)
public static void cvCircle(CvArr img, @ByVal @Cast(value="CvPoint*") IntBuffer center, int radius, @ByVal CvScalar color)
public static void cvCircle(CvArr img, @ByVal @Cast(value="CvPoint*") int[] center, int radius, @ByVal CvScalar color, int thickness, int line_type, int shift)
public static void cvCircle(CvArr img, @ByVal @Cast(value="CvPoint*") int[] center, int radius, @ByVal CvScalar color)
public static void cvEllipse(CvArr img, @ByVal CvPoint center, @ByVal CvSize axes, double angle, double start_angle, double end_angle, @ByVal CvScalar color, int thickness, int line_type, int shift)
depending on _thickness_, _start_angle_ and _end_angle_ parameters. The resultant figure is rotated by _angle_. All the angles are in degrees
cv::ellipse
public static void cvEllipse(CvArr img, @ByVal CvPoint center, @ByVal CvSize axes, double angle, double start_angle, double end_angle, @ByVal CvScalar color)
public static void cvEllipse(CvArr img, @ByVal @Cast(value="CvPoint*") IntBuffer center, @ByVal CvSize axes, double angle, double start_angle, double end_angle, @ByVal CvScalar color, int thickness, int line_type, int shift)
public static void cvEllipse(CvArr img, @ByVal @Cast(value="CvPoint*") IntBuffer center, @ByVal CvSize axes, double angle, double start_angle, double end_angle, @ByVal CvScalar color)
public static void cvEllipse(CvArr img, @ByVal @Cast(value="CvPoint*") int[] center, @ByVal CvSize axes, double angle, double start_angle, double end_angle, @ByVal CvScalar color, int thickness, int line_type, int shift)
public static void cvEllipse(CvArr img, @ByVal @Cast(value="CvPoint*") int[] center, @ByVal CvSize axes, double angle, double start_angle, double end_angle, @ByVal CvScalar color)
public static void cvEllipseBox(CvArr img, @ByVal CvBox2D box, @ByVal CvScalar color, int thickness, int line_type, int shift)
public static void cvFillConvexPoly(CvArr img, @Const CvPoint pts, int npts, @ByVal CvScalar color, int line_type, int shift)
cv::fillConvexPoly
public static void cvFillConvexPoly(CvArr img, @Const CvPoint pts, int npts, @ByVal CvScalar color)
public static void cvFillConvexPoly(CvArr img, @Cast(value="const CvPoint*") IntBuffer pts, int npts, @ByVal CvScalar color, int line_type, int shift)
public static void cvFillConvexPoly(CvArr img, @Cast(value="const CvPoint*") IntBuffer pts, int npts, @ByVal CvScalar color)
public static void cvFillConvexPoly(CvArr img, @Cast(value="const CvPoint*") int[] pts, int npts, @ByVal CvScalar color, int line_type, int shift)
public static void cvFillConvexPoly(CvArr img, @Cast(value="const CvPoint*") int[] pts, int npts, @ByVal CvScalar color)
public static void cvFillPoly(CvArr img, @Cast(value="CvPoint**") PointerPointer pts, @Const IntPointer npts, int contours, @ByVal CvScalar color, int line_type, int shift)
cv::fillPoly
public static void cvFillPoly(CvArr img, @ByPtrPtr CvPoint pts, @Const IntPointer npts, int contours, @ByVal CvScalar color)
public static void cvFillPoly(CvArr img, @ByPtrPtr CvPoint pts, @Const IntPointer npts, int contours, @ByVal CvScalar color, int line_type, int shift)
public static void cvFillPoly(CvArr img, @Cast(value="CvPoint**") @ByPtrPtr IntBuffer pts, @Const IntBuffer npts, int contours, @ByVal CvScalar color, int line_type, int shift)
public static void cvFillPoly(CvArr img, @Cast(value="CvPoint**") @ByPtrPtr IntBuffer pts, @Const IntBuffer npts, int contours, @ByVal CvScalar color)
public static void cvFillPoly(CvArr img, @Cast(value="CvPoint**") @ByPtrPtr int[] pts, @Const int[] npts, int contours, @ByVal CvScalar color, int line_type, int shift)
public static void cvFillPoly(CvArr img, @Cast(value="CvPoint**") @ByPtrPtr int[] pts, @Const int[] npts, int contours, @ByVal CvScalar color)
public static void cvPolyLine(CvArr img, @Cast(value="CvPoint**") PointerPointer pts, @Const IntPointer npts, int contours, int is_closed, @ByVal CvScalar color, int thickness, int line_type, int shift)
cv::polylines
public static void cvPolyLine(CvArr img, @ByPtrPtr CvPoint pts, @Const IntPointer npts, int contours, int is_closed, @ByVal CvScalar color)
public static void cvPolyLine(CvArr img, @ByPtrPtr CvPoint pts, @Const IntPointer npts, int contours, int is_closed, @ByVal CvScalar color, int thickness, int line_type, int shift)
public static void cvPolyLine(CvArr img, @Cast(value="CvPoint**") @ByPtrPtr IntBuffer pts, @Const IntBuffer npts, int contours, int is_closed, @ByVal CvScalar color, int thickness, int line_type, int shift)
public static void cvPolyLine(CvArr img, @Cast(value="CvPoint**") @ByPtrPtr IntBuffer pts, @Const IntBuffer npts, int contours, int is_closed, @ByVal CvScalar color)
public static void cvPolyLine(CvArr img, @Cast(value="CvPoint**") @ByPtrPtr int[] pts, @Const int[] npts, int contours, int is_closed, @ByVal CvScalar color, int thickness, int line_type, int shift)
public static void cvPolyLine(CvArr img, @Cast(value="CvPoint**") @ByPtrPtr int[] pts, @Const int[] npts, int contours, int is_closed, @ByVal CvScalar color)
public static void cvDrawRect(CvArr arg1, @ByVal CvPoint arg2, @ByVal CvPoint arg3, @ByVal CvScalar arg4, int arg5, int arg6, int arg7)
public static void cvDrawRect(CvArr arg1, @ByVal @Cast(value="CvPoint*") IntBuffer arg2, @ByVal @Cast(value="CvPoint*") IntBuffer arg3, @ByVal CvScalar arg4, int arg5, int arg6, int arg7)
public static void cvDrawRect(CvArr arg1, @ByVal @Cast(value="CvPoint*") int[] arg2, @ByVal @Cast(value="CvPoint*") int[] arg3, @ByVal CvScalar arg4, int arg5, int arg6, int arg7)
public static void cvDrawLine(CvArr arg1, @ByVal CvPoint arg2, @ByVal CvPoint arg3, @ByVal CvScalar arg4, int arg5, int arg6, int arg7)
public static void cvDrawLine(CvArr arg1, @ByVal @Cast(value="CvPoint*") IntBuffer arg2, @ByVal @Cast(value="CvPoint*") IntBuffer arg3, @ByVal CvScalar arg4, int arg5, int arg6, int arg7)
public static void cvDrawLine(CvArr arg1, @ByVal @Cast(value="CvPoint*") int[] arg2, @ByVal @Cast(value="CvPoint*") int[] arg3, @ByVal CvScalar arg4, int arg5, int arg6, int arg7)
public static void cvDrawCircle(CvArr arg1, @ByVal CvPoint arg2, int arg3, @ByVal CvScalar arg4, int arg5, int arg6, int arg7)
public static void cvDrawCircle(CvArr arg1, @ByVal @Cast(value="CvPoint*") IntBuffer arg2, int arg3, @ByVal CvScalar arg4, int arg5, int arg6, int arg7)
public static void cvDrawCircle(CvArr arg1, @ByVal @Cast(value="CvPoint*") int[] arg2, int arg3, @ByVal CvScalar arg4, int arg5, int arg6, int arg7)
public static void cvDrawEllipse(CvArr arg1, @ByVal CvPoint arg2, @ByVal CvSize arg3, double arg4, double arg5, double arg6, @ByVal CvScalar arg7, int arg8, int arg9, int arg10)
public static void cvDrawEllipse(CvArr arg1, @ByVal @Cast(value="CvPoint*") IntBuffer arg2, @ByVal CvSize arg3, double arg4, double arg5, double arg6, @ByVal CvScalar arg7, int arg8, int arg9, int arg10)
public static void cvDrawEllipse(CvArr arg1, @ByVal @Cast(value="CvPoint*") int[] arg2, @ByVal CvSize arg3, double arg4, double arg5, double arg6, @ByVal CvScalar arg7, int arg8, int arg9, int arg10)
public static void cvDrawPolyLine(CvArr arg1, @Cast(value="CvPoint**") PointerPointer arg2, IntPointer arg3, int arg4, int arg5, @ByVal CvScalar arg6, int arg7, int arg8, int arg9)
public static void cvDrawPolyLine(CvArr arg1, @ByPtrPtr CvPoint arg2, IntPointer arg3, int arg4, int arg5, @ByVal CvScalar arg6, int arg7, int arg8, int arg9)
public static void cvDrawPolyLine(CvArr arg1, @Cast(value="CvPoint**") @ByPtrPtr IntBuffer arg2, IntBuffer arg3, int arg4, int arg5, @ByVal CvScalar arg6, int arg7, int arg8, int arg9)
public static void cvDrawPolyLine(CvArr arg1, @Cast(value="CvPoint**") @ByPtrPtr int[] arg2, int[] arg3, int arg4, int arg5, @ByVal CvScalar arg6, int arg7, int arg8, int arg9)
public static int cvClipLine(@ByVal CvSize img_size, CvPoint pt1, CvPoint pt2)
(0<=x
Initially, line_iterator->ptr will point to pt1 (or pt2, see left_to_right description) location in
the image. Returns the number of pixels on the line between the ending points.
The function initializes the font structure that can be passed to text rendering functions.
if arrtype is CV_8UC?, _color_ is treated as packed color value, otherwise the first channels
(depending on arrtype) of destination scalar are set to the same value = _color_
The ellipse is define by the box of size 'axes' rotated 'angle' around the 'center'. A partial
sweep of the ellipse arc can be done by specifying arc_start and arc_end to be something other than
0 and 360, respectively. The input array 'pts' must be large enough to hold the result. The total
number of points stored into 'pts' is returned by this function.
The LineSegmentDetector algorithm is defined using the standard values. Only advanced users may want
to edit those, as to tailor it for their own application.
\note Implementation has been removed due original code license conflict
\addtogroup imgproc_filter
\{
/** \brief Returns Gaussian filter coefficients.
The function computes and returns the
where
Two of such generated kernels can be passed to sepFilter2D. Those functions automatically recognize
smoothing kernels (a symmetrical kernel with sum of weights equal to 1) and handle them accordingly.
You may also use the higher-level GaussianBlur.
The function computes and returns the filter coefficients for spatial image derivatives. When
For more details about gabor filter equations and parameters, see: [Gabor
Filter](http://en.wikipedia.org/wiki/Gabor_filter).
The function constructs and returns the structuring element that can be further passed to #erode,
#dilate or #morphologyEx. But you can also construct an arbitrary binary mask yourself and use it as
the structuring element.
The function smoothes an image using the median filter with the
\note The median filter uses #BORDER_REPLICATE internally to cope with border pixels, see #BorderTypes
The function convolves the source image with the specified Gaussian kernel. In-place filtering is
supported.
The function applies bilateral filtering to the input image, as described in
http://www.dai.ed.ac.uk/CVonline/LOCAL_COPIES/MANDUCHI1/Bilateral_Filtering.html
bilateralFilter can reduce unwanted noise very well while keeping edges fairly sharp. However, it is
very slow compared to most filters.
_Sigma values_: For simplicity, you can set the 2 sigma values to be the same. If they are small (\<
10), the filter will not have much effect, whereas if they are large (\> 150), they will have a very
strong effect, making the image look "cartoonish".
_Filter size_: Large filters (d \> 5) are very slow, so it is recommended to use d=5 for real-time
applications, and perhaps d=9 for offline applications that need heavy noise filtering.
This filter does not work inplace.
The function smooths an image using the kernel:
where
Unnormalized box filter is useful for computing various integral characteristics over each pixel
neighborhood, such as covariance matrices of image derivatives (used in dense optical flow
algorithms, and so on). If you need to compute pixel sums over variable-size windows, use #integral.
For every pixel
The unnormalized square box filter can be useful in computing local image statistics such as the the local
variance and standard deviation around the neighborhood of a pixel.
The function smooths an image using the kernel:
The call
The function applies an arbitrary linear filter to an image. In-place operation is supported. When
the aperture is partially outside the image, the function interpolates outlier pixel values
according to the specified border mode.
The function does actually compute correlation, not the convolution:
That is, the kernel is not mirrored around the anchor point. If you need a real convolution, flip
the kernel using #flip and set the new anchor to
The function uses the DFT-based algorithm in case of sufficiently large kernels (~
The function applies a separable linear filter to the image. That is, first, every row of src is
filtered with the 1D kernel kernelX. Then, every column of the result is filtered with the 1D
kernel kernelY. The final result shifted by delta is stored in dst .
In all cases except one, the
There is also the special value
for the x-derivative, or transposed for the y-derivative.
The function calculates an image derivative by convolving the image with the appropriate kernel:
The Sobel operators combine Gaussian smoothing and differentiation, so the result is more or less
resistant to the noise. Most often, the function is called with ( xorder = 1, yorder = 0, ksize = 3)
or ( xorder = 0, yorder = 1, ksize = 3) to calculate the first x- or y- image derivative. The first
case corresponds to a kernel of:
The second case corresponds to a kernel of:
Equivalent to calling:
The function computes the first x- or y- spatial image derivative using the Scharr operator. The
call
is equivalent to
The function calculates the Laplacian of the source image by adding up the second x and y
derivatives calculated using the Sobel operator:
This is done when
The function finds edges in the input image and marks them in the output map edges using the
Canny algorithm. The smallest value between threshold1 and threshold2 is used for edge linking. The
largest value is used to find initial segments of strong edges. See
Finds edges in an image using the Canny algorithm with custom image gradient.
The function is similar to cornerEigenValsAndVecs but it calculates and stores only the minimal
eigenvalue of the covariance matrix of derivatives, that is,
The function runs the Harris corner detector on the image. Similarly to cornerMinEigenVal and
cornerEigenValsAndVecs , for each pixel
Corners in the image can be found as the local maxima of this response map.
For every pixel
where the derivatives are computed using the Sobel operator.
After that, it finds eigenvectors and eigenvalues of
-
The output of the function can be used for robust edge or corner detection.
The function calculates the complex spatial derivative-based function of the source image
where
The corners can be found as local maximums of the functions, as shown below:
The function iterates to find the sub-pixel accurate location of corners or radial saddle points, as
shown on the figure below.
![image](pics/cornersubpix.png)
Sub-pixel accurate corner locator is based on the observation that every vector from the center
where
where the gradients are summed within a neighborhood ("search window") of
The algorithm sets the center of the neighborhood window at this new center
The function finds the most prominent corners in the image or in the specified image region, as
described in \cite Shi94
- Function calculates the corner quality measure at every source image pixel using the
#cornerMinEigenVal or #cornerHarris .
- Function performs a non-maximum suppression (the local maximums in *3 x 3* neighborhood are
retained).
- The corners with the minimal eigenvalue less than
The function can be used to initialize a point-based tracker of an object.
\note If the function is called with different values A and B of the parameter qualityLevel , and
A \> B, the vector of returned corners with qualityLevel=A will be the prefix of the output vector
with qualityLevel=B .
The function implements the standard or standard multi-scale Hough transform algorithm for line
detection. See
The function implements the probabilistic Hough transform algorithm for line detection, described
in \cite Matas00
See the line detection example below:
\include snippets/imgproc_HoughLinesP.cpp
This is a sample picture the function parameters have been tuned for:
![image](pics/building.jpg)
And this is the output of the above program in case of the probabilistic Hough transform:
![image](pics/houghp.png)
The function finds lines in a set of points using a modification of the Hough transform.
\include snippets/imgproc_HoughLinesPointSet.cpp
The function finds circles in a grayscale image using a modification of the Hough transform.
Example: :
\include snippets/imgproc_HoughLinesCircles.cpp
\note Usually the function detects the centers of circles well. However, it may fail to find correct
radii. You can assist to the function by specifying the radius range ( minRadius and maxRadius ) if
you know it. Or, in the case of #HOUGH_GRADIENT method you may set maxRadius to a negative number
to return centers only without radius search, and find the correct radius using an additional procedure.
It also helps to smooth image a bit unless it's already soft. For example,
GaussianBlur() with 7x7 kernel and 1.5x1.5 sigma or similar blurring may help.
The function erodes the source image using the specified structuring element that determines the
shape of a pixel neighborhood over which the minimum is taken:
The function supports the in-place mode. Erosion can be applied several ( iterations ) times. In
case of multi-channel images, each channel is processed independently.
The function dilates the source image using the specified structuring element that determines the
shape of a pixel neighborhood over which the maximum is taken:
The function supports the in-place mode. Dilation can be applied several ( iterations ) times. In
case of multi-channel images, each channel is processed independently.
The function cv::morphologyEx can perform advanced morphological transformations using an erosion and dilation as
basic operations.
Any of the operations can be done in-place. In case of multi-channel images, each channel is
processed independently.
\addtogroup imgproc_transform
\{
/** \brief Resizes an image.
The function resize resizes the image src down to or up to the specified size. Note that the
initial dst type or size are not taken into account. Instead, the size and type are derived from
the
The function warpAffine transforms the source image using the specified matrix:
when the flag #WARP_INVERSE_MAP is set. Otherwise, the transformation is first inverted
with #invertAffineTransform and then put in the formula above instead of M. The function cannot
operate in-place.
The function warpPerspective transforms the source image using the specified matrix:
when the flag #WARP_INVERSE_MAP is set. Otherwise, the transformation is first inverted with invert
and then put in the formula above instead of M. The function cannot operate in-place.
The function remap transforms the source image using the specified map:
where values of pixels with non-integer coordinates are computed using one of available
interpolation methods.
This function cannot operate in-place.
The function converts a pair of maps for remap from one representation to another. The following
options ( (map1.type(), map2.type())
-
-
- Reverse conversion. Obviously, the reconstructed floating-point maps will not be exactly the same
as the originals.
The function calculates the following matrix:
where
The transformation maps the rotation center to itself. If this is not the target, adjust the shift.
The function calculates the
where
The function computes an inverse affine transformation represented by
The result is also a
The function calculates the
where
The function getRectSubPix extracts pixels from src:
where the values of the pixels at non-integer coordinates are retrieved using bilinear
interpolation. Every channel of multi-channel images is processed independently. Also
the image should be a single channel or three channel image. While the center of the
rectangle must be inside the image, parts of the rectangle may be outside.
\internal
Transform the source image using the following transformation (See \ref polar_remaps_reference_image "Polar remaps reference image d)"):
where
and
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.
\note
- The function can not operate in-place.
- To calculate magnitude and angle in degrees #cartToPolar is used internally thus angles are measured from 0 to 360 with accuracy about 0.3 degrees.
\internal
Transform the source image using the following transformation (See \ref polar_remaps_reference_image "Polar remaps reference image c)"):
where
and
\note
- The function can not operate in-place.
- To calculate magnitude and angle in degrees #cartToPolar is used internally thus angles are measured from 0 to 360 with accuracy about 0.3 degrees.
\anchor polar_remaps_reference_image
![Polar remaps reference](pics/polar_remap_doc.png)
Transform the source image using the following transformation:
where
and
\par Linear vs semilog mapping
Polar mapping can be linear or semi-log. Add one of #WarpPolarMode to {@code flags} to specify the polar mapping mode.
Linear is the default mode.
The semilog mapping emulates the human "foveal" vision that permit very high acuity on the line of sight (central vision)
in contrast to peripheral vision where acuity is minor.
\par Option on {@code dsize}:
- if both values in {@code dsize <=0 } (default),
the destination image will have (almost) same area of source bounding circle:
- if only {@code dsize.height <= 0},
the destination image area will be proportional to the bounding circle area but scaled by {@code Kx * Kx}:
- if both values in {@code dsize > 0 },
the destination image will have the given size therefore the area of the bounding circle will be scaled to {@code dsize}.
\par Reverse mapping
You can get reverse mapping adding #WARP_INVERSE_MAP to {@code flags}
\snippet polar_transforms.cpp InverseMap
In addiction, to calculate the original coordinate from a polar mapped coordinate {@code (rho, phi)->(x, y)}:
\snippet polar_transforms.cpp InverseCoordinate
\addtogroup imgproc_misc
\{
/** \overload
The function calculates one or more integral images for the source image as follows:
Using these integral images, you can calculate sum, mean, and standard deviation over a specific
up-right or rotated rectangular region of the image in a constant time, for example:
It makes possible to do a fast blurring or fast block correlation with a variable window size, for
example. In case of multi-channel images, sums for each channel are accumulated independently.
As a practical example, the next figure shows the calculation of the integral of a straight
rectangle Rect(3,3,3,2) and of a tilted rectangle Rect(5,1,2,3) . The selected pixels in the
original image are shown, as well as the relative pixels in the integral images sum and tilted .
![integral calculation example](pics/integral.png)
\addtogroup imgproc_motion
\{
/** \brief Adds an image to the accumulator image.
The function adds src or some of its elements to dst :
The function supports multi-channel images. Each channel is processed independently.
The function cv::accumulate can be used, for example, to collect statistics of a scene background
viewed by a still camera and for the further foreground-background segmentation.
The function adds the input image src or its selected region, raised to a power of 2, to the
accumulator dst :
The function supports multi-channel images. Each channel is processed independently.
The function adds the product of two images or their selected regions to the accumulator dst :
The function supports multi-channel images. Each channel is processed independently.
The function calculates the weighted sum of the input image src and the accumulator dst so that dst
becomes a running average of a frame sequence:
That is, alpha regulates the update speed (how fast the accumulator "forgets" about earlier images).
The function supports multi-channel images. Each channel is processed independently.
The operation takes advantage of the Fourier shift theorem for detecting the translational shift in
the frequency domain. It can be used for fast image registration as well as motion estimation. For
more information please see
Calculates the cross-power spectrum of two supplied source arrays. The arrays are padded if needed
with getOptimalDFTSize.
The function performs the following equations:
- First it applies a Hanning window (see
See (http://en.wikipedia.org/wiki/Hann_function) and (http://en.wikipedia.org/wiki/Window_function)
for more information.
An example is shown below:
\addtogroup imgproc_misc
\{
/** \brief Applies a fixed-level threshold to each array element.
The function applies fixed-level thresholding to a multiple-channel array. The function is typically
used to get a bi-level (binary) image out of a grayscale image ( #compare could be also used for
this purpose) or for removing a noise, that is, filtering out pixels with too small or too large
values. There are several types of thresholding supported by the function. They are determined by
type parameter.
Also, the special values #THRESH_OTSU or #THRESH_TRIANGLE may be combined with one of the
above values. In these cases, the function determines the optimal threshold value using the Otsu's
or Triangle algorithm and uses it instead of the specified thresh.
\note Currently, the Otsu's and Triangle methods are implemented only for 8-bit single-channel images.
The function transforms a grayscale image to a binary image according to the formulae:
- **THRESH_BINARY**
The function can process the image in-place.
By default, size of the output image is computed as
The function performs the downsampling step of the Gaussian pyramid construction. First, it
convolves the source image with the kernel:
Then, it downsamples the image by rejecting even rows and columns.
By default, size of the output image is computed as
The function performs the upsampling step of the Gaussian pyramid construction, though it can
actually be used to construct the Laplacian pyramid. First, it upsamples the source image by
injecting even zero rows and columns and then convolves the result with the same kernel as in
pyrDown multiplied by 4.
The function constructs a vector of images and builds the Gaussian pyramid by recursively applying
pyrDown to the previously built pyramid layers, starting from
The function cv::calcHist calculates the histogram of one or more arrays. The elements of a tuple used
to increment a histogram bin are taken from the corresponding input arrays at the same location. The
sample below shows how to compute a 2D Hue-Saturation histogram for a color image. :
\include snippets/imgproc_calcHist.cpp
this variant uses %SparseMat for output
The function cv::calcBackProject calculates the back project of the histogram. That is, similarly to
#calcHist , at each location (x, y) the function collects the values from the selected channels
in the input images and finds the corresponding histogram bin. But instead of incrementing it, the
function reads the bin value, scales it by scale , and stores in backProject(x,y) . In terms of
statistics, the function computes probability of each element value in respect with the empirical
probability distribution represented by the histogram. See how, for example, you can find and track
a bright-colored object in a scene:
- Before tracking, show the object to the camera so that it covers almost the whole frame.
Calculate a hue histogram. The histogram may have strong maximums, corresponding to the dominant
colors in the object.
- When tracking, calculate a back projection of a hue plane of each input video frame using that
pre-computed histogram. Threshold the back projection to suppress weak colors. It may also make
sense to suppress pixels with non-sufficient color saturation and too dark or too bright pixels.
- Find connected components in the resulting picture and choose, for example, the largest
component.
This is an approximate algorithm of the CamShift color object tracker.
The function cv::compareHist compares two dense or two sparse histograms using the specified method.
The function returns
While the function works well with 1-, 2-, 3-dimensional dense histograms, it may not be suitable
for high-dimensional sparse histograms. In such histograms, because of aliasing and sampling
problems, the coordinates of non-zero histogram bins can slightly shift. To compare such histograms
or more general sparse configurations of weighted points, consider using the #EMD function.
The function equalizes the histogram of the input image using the following algorithm:
- Calculate the histogram
The algorithm normalizes the brightness and increases the contrast of the image.
The function computes the earth mover distance and/or a lower boundary of the distance between the
two weighted point configurations. One of the applications described in \cite RubnerSept98,
\cite Rubner2000 is multi-dimensional histogram comparison for image retrieval. EMD is a transportation
problem that is solved using some modification of a simplex algorithm, thus the complexity is
exponential in the worst case, though, on average it is much faster. In the case of a real metric
the lower boundary can be calculated even faster (using linear-time algorithm) and it can be used
to determine roughly whether the two signatures are far enough so that they cannot relate to the
same object.
The function implements one of the variants of watershed, non-parametric marker-based segmentation
algorithm, described in \cite Meyer92 .
Before passing the image to the function, you have to roughly outline the desired regions in the
image markers with positive (\>0) indices. So, every region is represented as one or more connected
components with the pixel values 1, 2, 3, and so on. Such markers can be retrieved from a binary
mask using #findContours and #drawContours (see the watershed.cpp demo). The markers are "seeds" of
the future image regions. All the other pixels in markers , whose relation to the outlined regions
is not known and should be defined by the algorithm, should be set to 0's. In the function output,
each pixel in markers is set to a value of the "seed" components or to -1 at boundaries between the
regions.
\note Any two neighbor connected components are not necessarily separated by a watershed boundary
(-1's pixels); for example, they can touch each other in the initial marker image passed to the
function.
\ingroup imgproc_misc
/** \brief Performs initial step of meanshift segmentation of an image.
The function implements the filtering stage of meanshift segmentation, that is, the output of the
function is the filtered "posterized" image with color gradients and fine-grain texture flattened.
At every pixel (X,Y) of the input image (or down-sized input image, see below) the function executes
meanshift iterations, that is, the pixel (X,Y) neighborhood in the joint space-color hyperspace is
considered:
where (R,G,B) and (r,g,b) are the vectors of color components at (X,Y) and (x,y), respectively
(though, the algorithm does not depend on the color space used, so any 3-component color space can
be used instead). Over the neighborhood the average spatial value (X',Y') and average color vector
(R',G',B') are found and they act as the neighborhood center on the next iteration:
After the iterations over, the color components of the initial pixel (that is, the pixel from where
the iterations started) are set to the final value (average color at the last iteration):
When maxLevel \> 0, the gaussian pyramid of maxLevel+1 levels is built, and the above procedure is
run on the smallest layer first. After that, the results are propagated to the larger layer and the
iterations are run again only on those pixels where the layer colors differ by more than sr from the
lower-resolution layer of the pyramid. That makes boundaries of color regions sharper. Note that the
results will be actually different from the ones obtained by running the meanshift procedure on the
whole original image (i.e. when maxLevel==0).
The function implements the [GrabCut image segmentation algorithm](http://en.wikipedia.org/wiki/GrabCut).
The function cv::distanceTransform calculates the approximate or precise distance from every binary
image pixel to the nearest zero pixel. For zero image pixels, the distance will obviously be zero.
When maskSize == #DIST_MASK_PRECISE and distanceType == #DIST_L2 , the function runs the
algorithm described in \cite Felzenszwalb04 . This algorithm is parallelized with the TBB library.
In other cases, the algorithm \cite Borgefors86 is used. This means that for a pixel the function
finds the shortest path to the nearest zero pixel consisting of basic shifts: horizontal, vertical,
diagonal, or knight's move (the latest is available for a
Typically, for a fast, coarse distance estimation #DIST_L2, a
This variant of the function does not only compute the minimum distance for each pixel
In this mode, the complexity is still linear. That is, the function provides a very fast way to
compute the Voronoi diagram for a binary image. Currently, the second variant can use only the
approximate distance transform algorithm, i.e. maskSize=#DIST_MASK_PRECISE is not supported
yet.
variant without
The function cv::floodFill fills a connected component starting from the seed point with the specified
color. The connectivity is determined by the color/brightness closeness of the neighbor pixels. The
pixel at
- in case of a grayscale image and floating range
- in case of a grayscale image and fixed range
- in case of a color image and floating range
- in case of a color image and fixed range
where
Use these functions to either mark a connected component with the specified color in-place, or build
a mask and then extract the contour, or copy the region to another image, and so on.
\note Since the mask is larger than the filled image, a pixel
\addtogroup imgproc_color_conversions
\{
/** \brief Converts an image from one color space to another.
The function converts an input image from one color space to another. In case of a transformation
to-from RGB color space, the order of the channels should be specified explicitly (RGB or BGR). Note
that the default color format in OpenCV is often referred to as RGB but it is actually BGR (the
bytes are reversed). So the first byte in a standard (24-bit) color image will be an 8-bit Blue
component, the second byte will be Green, and the third byte will be Red. The fourth, fifth, and
sixth bytes would then be the second pixel (Blue, then Green, then Red), and so on.
The conventional ranges for R, G, and B channel values are:
- 0 to 255 for CV_8U images
- 0 to 65535 for CV_16U images
- 0 to 1 for CV_32F images
In case of linear transformations, the range does not matter. But in case of a non-linear
transformation, an input RGB image should be normalized to the proper value range to get the correct
results, for example, for RGB
If conversion adds the alpha channel, its value will set to the maximum of corresponding channel
range: 255 for CV_8U, 65535 for CV_16U, 1 for CV_32F.
This function only supports YUV420 to RGB conversion as of now.
The function can do the following transformations:
- Demosaicing using bilinear interpolation
#COLOR_BayerBG2BGR , #COLOR_BayerGB2BGR , #COLOR_BayerRG2BGR , #COLOR_BayerGR2BGR
#COLOR_BayerBG2GRAY , #COLOR_BayerGB2GRAY , #COLOR_BayerRG2GRAY , #COLOR_BayerGR2GRAY
- Demosaicing using Variable Number of Gradients.
#COLOR_BayerBG2BGR_VNG , #COLOR_BayerGB2BGR_VNG , #COLOR_BayerRG2BGR_VNG , #COLOR_BayerGR2BGR_VNG
- Edge-Aware Demosaicing.
#COLOR_BayerBG2BGR_EA , #COLOR_BayerGB2BGR_EA , #COLOR_BayerRG2BGR_EA , #COLOR_BayerGR2BGR_EA
- Demosaicing with alpha channel
#COLOR_BayerBG2BGRA , #COLOR_BayerGB2BGRA , #COLOR_BayerRG2BGRA , #COLOR_BayerGR2BGRA
\addtogroup imgproc_shape
\{
/** \brief Calculates all of the moments up to the third order of a polygon or rasterized shape.
The function computes moments, up to the 3rd order, of a vector shape or a rasterized shape. The
results are returned in the structure cv::Moments.
\note Only applicable to contour moments calculations from Python bindings: Note that the numpy
type for the input array should be either np.int32 or np.float32.
The function calculates seven Hu invariants (introduced in \cite Hu62; see also
where
These values are proved to be invariants to the image scale, rotation, and reflection except the
seventh one, whose sign is changed by reflection. This invariance is proved with the assumption of
infinite image resolution. In case of raster images, the computed Hu invariants for the original and
transformed images are a bit different.
The function slides through image , compares the overlapped patches of size
After the function finishes the comparison, the best matches can be found as global minimums (when
#TM_SQDIFF was used) or maximums (when #TM_CCORR or #TM_CCOEFF was used) using the
#minMaxLoc function. In case of a color image, template summation in the numerator and each sum in
the denominator is done over all of the channels and separate mean values are used for each channel.
That is, the function can take a color template and a color image. The result will still be a
single-channel image, which is easier to analyze.
image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0
represents the background label. ltype specifies the output label image type, an important
consideration based on the total number of labels or alternatively the total number of pixels in
the source image. ccltype specifies the connected components labeling algorithm to use, currently
Grana (BBDT) and Wu's (SAUF) algorithms are supported, see the #ConnectedComponentsAlgorithmsTypes
for details. Note that SAUF algorithm forces a row major ordering of labels while BBDT does not.
This function uses parallel version of both Grana and Wu's algorithms if at least one allowed
parallel framework is enabled and if the rows of the image are at least twice the number returned by #getNumberOfCPUs.
image with 4 or 8 way connectivity - returns N, the total number of labels [0, N-1] where 0
represents the background label. ltype specifies the output label image type, an important
consideration based on the total number of labels or alternatively the total number of pixels in
the source image. ccltype specifies the connected components labeling algorithm to use, currently
Grana's (BBDT) and Wu's (SAUF) algorithms are supported, see the #ConnectedComponentsAlgorithmsTypes
for details. Note that SAUF algorithm forces a row major ordering of labels while BBDT does not.
This function uses parallel version of both Grana and Wu's algorithms (statistics included) if at least one allowed
parallel framework is enabled and if the rows of the image are at least twice the number returned by #getNumberOfCPUs.
The function retrieves contours from the binary image using the algorithm \cite Suzuki85 . The contours
are a useful tool for shape analysis and object detection and recognition. See squares.cpp in the
OpenCV sample directory.
\note Since opencv 3.2 source image is not modified by this function.
The function cv::approxPolyDP approximates a curve or a polygon with another curve/polygon with less
vertices so that the distance between them is less or equal to the specified precision. It uses the
Douglas-Peucker algorithm
The function computes a curve length or a closed contour perimeter.
The function calculates and returns the minimal up-right bounding rectangle for the specified point set or
non-zero pixels of gray-scale image.
The function computes a contour area. Similarly to moments , the area is computed using the Green
formula. Thus, the returned area and the number of non-zero pixels, if you draw the contour using
#drawContours or #fillPoly , can be different. Also, the function will most certainly give a wrong
results for contours with self-intersections.
Example:
The function calculates and returns the minimum-area bounding rectangle (possibly rotated) for a
specified point set. Developer should keep in mind that the returned RotatedRect can contain negative
indices when data is close to the containing Mat element boundary.
The function finds the four vertices of a rotated rectangle. This function is useful to draw the
rectangle. In C++, instead of using this function, you can directly use RotatedRect::points method. Please
visit the \ref tutorial_bounding_rotated_ellipses "tutorial on Creating Bounding rotated boxes and ellipses for contours" for more information.
The function finds the minimal enclosing circle of a 2D point set using an iterative algorithm.
The function finds a triangle of minimum area enclosing the given set of 2D points and returns its
area. The output for a given 2D point set is shown in the image below. 2D points are depicted in
red* and the enclosing triangle in *yellow*.
![Sample output of the minimum enclosing triangle function](pics/minenclosingtriangle.png)
The implementation of the algorithm is based on O'Rourke's \cite ORourke86 and Klee and Laskowski's
\cite KleeLaskowski85 papers. O'Rourke provides a
The function compares two shapes. All three implemented methods use the Hu invariants (see #HuMoments)
The function cv::convexHull finds the convex hull of a 2D point set using the Sklansky's algorithm \cite Sklansky82
that has *O(N logN)* complexity in the current implementation.
\note
Check \ref tutorial_hull "the corresponding tutorial" for more details.
useful links:
https://www.learnopencv.com/convex-hull-using-opencv-in-python-and-c/
The figure below displays convexity defects of a hand contour:
![image](pics/defects.png)
The function tests whether the input contour is convex or not. The contour must be simple, that is,
without self-intersections. Otherwise, the function output is undefined.
\note intersectConvexConvex doesn't confirm that both polygons are convex and will return invalid results if they aren't.
The function calculates the ellipse that fits (in a least-squares sense) a set of 2D points best of
all. It returns the rotated rectangle in which the ellipse is inscribed. The first algorithm described by \cite Fitzgibbon95
is used. Developer should keep in mind that it is possible that the returned
ellipse/rotatedRect data contains negative indices, due to the data points being close to the
border of the containing Mat element.
The function calculates the ellipse that fits a set of 2D points.
It returns the rotated rectangle in which the ellipse is inscribed.
The Approximate Mean Square (AMS) proposed by \cite Taubin1991 is used.
For an ellipse, this basis set is
The minimum cost is found by solving the generalized eigenvalue problem.
The function calculates the ellipse that fits a set of 2D points.
It returns the rotated rectangle in which the ellipse is inscribed.
The Direct least square (Direct) method by \cite Fitzgibbon1999 is used.
For an ellipse, this basis set is
The minimum cost is found by solving the generalized eigenvalue problem.
The system produces only one positive eigenvalue
The function fitLine fits a line to a 2D or 3D point set by minimizing
The algorithm is based on the M-estimator (
The function determines whether the point is inside a contour, outside, or lies on an edge (or
coincides with a vertex). It returns positive (inside), negative (outside), or zero (on an edge)
value, correspondingly. When measureDist=false , the return value is +1, -1, and 0, respectively.
Otherwise, the return value is a signed distance between the point and the nearest contour edge.
See below a sample output of the function where each image pixel is tested against the contour:
![sample output](pics/pointpolygon.png)
If there is then the vertices of the intersecting region are returned as well.
Below are some examples of intersection configurations. The hatched pattern indicates the
intersecting region and the red vertices are returned by the function.
![intersection examples](pics/intersection.png)
The function line draws the line segment between pt1 and pt2 points in the image. The line is
clipped by the image boundaries. For non-antialiased lines with integer coordinates, the 8-connected
or 4-connected Bresenham algorithm is used. Thick lines are drawn with rounding endings. Antialiased
lines are drawn using Gaussian filtering.
The function cv::arrowedLine draws an arrow between pt1 and pt2 points in the image. See also #line.
The function cv::rectangle draws a rectangle outline or a filled rectangle whose two opposite corners
are pt1 and pt2.
use
The function cv::circle draws a simple or filled circle with a given center and radius.
The function cv::ellipse with more parameters draws an ellipse outline, a filled ellipse, an elliptic
arc, or a filled ellipse sector. The drawing code uses general parametric form.
A piecewise-linear curve is used to approximate the elliptic arc
boundary. If you need more control of the ellipse rendering, you can retrieve the curve using
#ellipse2Poly and then render it with #polylines or fill it with #fillPoly. If you use the first
variant of the function and want to draw the whole ellipse, not an arc, pass
![Parameters of Elliptic Arc](pics/ellipse.svg)
The function cv::drawMarker draws a marker on a given position in the image. For the moment several
marker types are supported, see #MarkerTypes for more information.
The function cv::fillConvexPoly draws a filled convex polygon. This function is much faster than the
function #fillPoly . It can fill not only convex polygons but any monotonic polygon without
self-intersections, that is, a polygon whose contour intersects every horizontal line (scan line)
twice at the most (though, its top-most and/or the bottom edge could be horizontal).
The function cv::fillPoly fills an area bounded by several polygonal contours. The function can fill
complex areas, for example, areas with holes, contours with self-intersections (some of their
parts), and so forth.
The function cv::polylines draws one or more polygonal curves.
The function draws contour outlines in the image if
The function cv::clipLine calculates a part of the line segment that is entirely within the specified
rectangle. it returns false if the line segment is completely outside the rectangle. Otherwise,
it returns true .
The function ellipse2Poly computes the vertices of a polyline that approximates the specified
elliptic arc. It is used by #ellipse. If
The function cv::putText renders the specified text string in the image. Symbols that cannot be rendered
using the specified font are replaced by question marks. See #getTextSize for a text rendering code
example.
The function cv::getTextSize calculates and returns the size of a box that contains the specified text.
That is, the following code renders some text, the tight box surrounding it, and the baseline: :
cv::clipLine
cvClipLine
public static int cvClipLine(@ByVal
CvSize img_size,
@Cast(value="CvPoint*")
IntBuffer pt1,
@Cast(value="CvPoint*")
IntBuffer pt2)
cvClipLine
public static int cvClipLine(@ByVal
CvSize img_size,
@Cast(value="CvPoint*")
int[] pt1,
@Cast(value="CvPoint*")
int[] pt2)
cvInitLineIterator
public static int cvInitLineIterator(@Const
CvArr image,
@ByVal
CvPoint pt1,
@ByVal
CvPoint pt2,
CvLineIterator line_iterator,
int connectivity,
int left_to_right)
cv::LineIterator
cvInitLineIterator
public static int cvInitLineIterator(@Const
CvArr image,
@ByVal
CvPoint pt1,
@ByVal
CvPoint pt2,
CvLineIterator line_iterator)
cvInitLineIterator
public static int cvInitLineIterator(@Const
CvArr image,
@ByVal @Cast(value="CvPoint*")
IntBuffer pt1,
@ByVal @Cast(value="CvPoint*")
IntBuffer pt2,
CvLineIterator line_iterator,
int connectivity,
int left_to_right)
cvInitLineIterator
public static int cvInitLineIterator(@Const
CvArr image,
@ByVal @Cast(value="CvPoint*")
IntBuffer pt1,
@ByVal @Cast(value="CvPoint*")
IntBuffer pt2,
CvLineIterator line_iterator)
cvInitLineIterator
public static int cvInitLineIterator(@Const
CvArr image,
@ByVal @Cast(value="CvPoint*")
int[] pt1,
@ByVal @Cast(value="CvPoint*")
int[] pt2,
CvLineIterator line_iterator,
int connectivity,
int left_to_right)
cvInitLineIterator
public static int cvInitLineIterator(@Const
CvArr image,
@ByVal @Cast(value="CvPoint*")
int[] pt1,
@ByVal @Cast(value="CvPoint*")
int[] pt2,
CvLineIterator line_iterator)
cvInitFont
public static void cvInitFont(CvFont font,
int font_face,
double hscale,
double vscale,
double shear,
int thickness,
int line_type)
font
- Pointer to the font structure initialized by the functionfont_face
- Font name identifier. See cv::HersheyFonts and corresponding old CV_* identifiers.hscale
- Horizontal scale. If equal to 1.0f , the characters have the original width
depending on the font type. If equal to 0.5f , the characters are of half the original width.vscale
- Vertical scale. If equal to 1.0f , the characters have the original height depending
on the font type. If equal to 0.5f , the characters are of half the original height.shear
- Approximate tangent of the character slope relative to the vertical line. A zero
value means a non-italic font, 1.0f means about a 45 degree slope, etc.thickness
- Thickness of the text strokesline_type
- Type of the strokes, see line description
cvPutText
cvInitFont
public static void cvInitFont(CvFont font,
int font_face,
double hscale,
double vscale)
cvPutText
public static void cvPutText(CvArr img,
@Cast(value="const char*")
BytePointer text,
@ByVal
CvPoint org,
@Const
CvFont font,
@ByVal
CvScalar color)
cvInitFont, cvGetTextSize, cvFont, cv::putText
cvPutText
public static void cvPutText(CvArr img,
String text,
@ByVal @Cast(value="CvPoint*")
IntBuffer org,
@Const
CvFont font,
@ByVal
CvScalar color)
cvPutText
public static void cvPutText(CvArr img,
@Cast(value="const char*")
BytePointer text,
@ByVal @Cast(value="CvPoint*")
int[] org,
@Const
CvFont font,
@ByVal
CvScalar color)
cvPutText
public static void cvPutText(CvArr img,
String text,
@ByVal
CvPoint org,
@Const
CvFont font,
@ByVal
CvScalar color)
cvPutText
public static void cvPutText(CvArr img,
@Cast(value="const char*")
BytePointer text,
@ByVal @Cast(value="CvPoint*")
IntBuffer org,
@Const
CvFont font,
@ByVal
CvScalar color)
cvPutText
public static void cvPutText(CvArr img,
String text,
@ByVal @Cast(value="CvPoint*")
int[] org,
@Const
CvFont font,
@ByVal
CvScalar color)
cvGetTextSize
public static void cvGetTextSize(@Cast(value="const char*")
BytePointer text_string,
@Const
CvFont font,
CvSize text_size,
IntPointer baseline)
cv::getTextSize
cvGetTextSize
public static void cvGetTextSize(String text_string,
@Const
CvFont font,
CvSize text_size,
IntBuffer baseline)
cvGetTextSize
public static void cvGetTextSize(@Cast(value="const char*")
BytePointer text_string,
@Const
CvFont font,
CvSize text_size,
int[] baseline)
cvGetTextSize
public static void cvGetTextSize(String text_string,
@Const
CvFont font,
CvSize text_size,
IntPointer baseline)
cvGetTextSize
public static void cvGetTextSize(@Cast(value="const char*")
BytePointer text_string,
@Const
CvFont font,
CvSize text_size,
IntBuffer baseline)
cvGetTextSize
public static void cvGetTextSize(String text_string,
@Const
CvFont font,
CvSize text_size,
int[] baseline)
cvColorToScalar
@ByVal
public static CvScalar cvColorToScalar(double packed_color,
int arrtype)
cvEllipse2Poly
public static int cvEllipse2Poly(@ByVal
CvPoint center,
@ByVal
CvSize axes,
int angle,
int arc_start,
int arc_end,
CvPoint pts,
int delta)
cv::ellipse2Poly
cvEllipse2Poly
public static int cvEllipse2Poly(@ByVal @Cast(value="CvPoint*")
IntBuffer center,
@ByVal
CvSize axes,
int angle,
int arc_start,
int arc_end,
@Cast(value="CvPoint*")
IntBuffer pts,
int delta)
cvEllipse2Poly
public static int cvEllipse2Poly(@ByVal @Cast(value="CvPoint*")
int[] center,
@ByVal
CvSize axes,
int angle,
int arc_start,
int arc_end,
@Cast(value="CvPoint*")
int[] pts,
int delta)
cvDrawContours
public static void cvDrawContours(CvArr img,
CvSeq contour,
@ByVal
CvScalar external_color,
@ByVal
CvScalar hole_color,
int max_level,
int thickness,
int line_type,
@ByVal(nullValue="CvPoint(cvPoint(0,0))")
CvPoint offset)
cv::drawContours
cvDrawContours
public static void cvDrawContours(CvArr img,
CvSeq contour,
@ByVal
CvScalar external_color,
@ByVal
CvScalar hole_color,
int max_level)
cvDrawContours
public static void cvDrawContours(CvArr img,
CvSeq contour,
@ByVal
CvScalar external_color,
@ByVal
CvScalar hole_color,
int max_level,
int thickness,
int line_type,
@ByVal(nullValue="CvPoint(cvPoint(0,0))") @Cast(value="CvPoint*")
IntBuffer offset)
cvDrawContours
public static void cvDrawContours(CvArr img,
CvSeq contour,
@ByVal
CvScalar external_color,
@ByVal
CvScalar hole_color,
int max_level,
int thickness,
int line_type,
@ByVal(nullValue="CvPoint(cvPoint(0,0))") @Cast(value="CvPoint*")
int[] offset)
createLineSegmentDetector
@Namespace(value="cv")
@opencv_core.Ptr
public static LineSegmentDetector createLineSegmentDetector(int _refine,
double _scale,
double _sigma_scale,
double _quant,
double _ang_th,
double _log_eps,
double _density_th,
int _n_bins)
_refine
- The way found lines will be refined, see #LineSegmentDetectorModes_scale
- The scale of the image that will be used to find the lines. Range (0..1]._sigma_scale
- Sigma for Gaussian filter. It is computed as sigma = _sigma_scale/_scale._quant
- Bound to the quantization error on the gradient norm._ang_th
- Gradient angle tolerance in degrees._log_eps
- Detection threshold: -log10(NFA) \> log_eps. Used only when advance refinement
is chosen._density_th
- Minimal density of aligned region points in the enclosing rectangle._n_bins
- Number of bins in pseudo-ordering of gradient modulus.
createLineSegmentDetector
@Namespace(value="cv")
@opencv_core.Ptr
public static LineSegmentDetector createLineSegmentDetector()
getGaussianKernel
@Namespace(value="cv")
@ByVal
public static Mat getGaussianKernel(int ksize,
double sigma,
int ktype)
\texttt{ksize} \times 1
matrix of Gaussian filter
coefficients:
\[G_i= \alpha *e^{-(i-( \texttt{ksize} -1)/2)^2/(2* \texttt{sigma}^2)},\]
i=0..\texttt{ksize}-1
and \alpha
is the scale factor chosen so that \sum_i G_i=1
.
ksize
- Aperture size. It should be odd ( \texttt{ksize} \mod 2 = 1
) and positive.sigma
- Gaussian standard deviation. If it is non-positive, it is computed from ksize as
sigma = 0.3*((ksize-1)*0.5 - 1) + 0.8
.ktype
- Type of filter coefficients. It can be CV_32F or CV_64F .sepFilter2D, getDerivKernels, getStructuringElement, GaussianBlur
getGaussianKernel
@Namespace(value="cv")
@ByVal
public static Mat getGaussianKernel(int ksize,
double sigma)
getDerivKernels
@Namespace(value="cv")
public static void getDerivKernels(@ByVal
Mat kx,
@ByVal
Mat ky,
int dx,
int dy,
int ksize,
@Cast(value="bool")
boolean normalize,
int ktype)
ksize=FILTER_SCHARR
, the Scharr 3 \times 3
kernels are generated (see #Scharr). Otherwise, Sobel
kernels are generated (see #Sobel). The filters are normally passed to #sepFilter2D or to
kx
- Output matrix of row filter coefficients. It has the type ktype .ky
- Output matrix of column filter coefficients. It has the type ktype .dx
- Derivative order in respect of x.dy
- Derivative order in respect of y.ksize
- Aperture size. It can be FILTER_SCHARR, 1, 3, 5, or 7.normalize
- Flag indicating whether to normalize (scale down) the filter coefficients or not.
Theoretically, the coefficients should have the denominator =2^{ksize*2-dx-dy-2}
. If you are
going to filter floating-point images, you are likely to use the normalized kernels. But if you
compute derivatives of an 8-bit image, store the results in a 16-bit image, and wish to preserve
all the fractional bits, you may want to set normalize=false .ktype
- Type of filter coefficients. It can be CV_32f or CV_64F .
getDerivKernels
@Namespace(value="cv")
public static void getDerivKernels(@ByVal
Mat kx,
@ByVal
Mat ky,
int dx,
int dy,
int ksize)
getDerivKernels
@Namespace(value="cv")
public static void getDerivKernels(@ByVal
UMat kx,
@ByVal
UMat ky,
int dx,
int dy,
int ksize,
@Cast(value="bool")
boolean normalize,
int ktype)
getDerivKernels
@Namespace(value="cv")
public static void getDerivKernels(@ByVal
UMat kx,
@ByVal
UMat ky,
int dx,
int dy,
int ksize)
getDerivKernels
@Namespace(value="cv")
public static void getDerivKernels(@ByVal
GpuMat kx,
@ByVal
GpuMat ky,
int dx,
int dy,
int ksize,
@Cast(value="bool")
boolean normalize,
int ktype)
getDerivKernels
@Namespace(value="cv")
public static void getDerivKernels(@ByVal
GpuMat kx,
@ByVal
GpuMat ky,
int dx,
int dy,
int ksize)
getGaborKernel
@Namespace(value="cv")
@ByVal
public static Mat getGaborKernel(@ByVal
Size ksize,
double sigma,
double theta,
double lambd,
double gamma,
double psi,
int ktype)
ksize
- Size of the filter returned.sigma
- Standard deviation of the gaussian envelope.theta
- Orientation of the normal to the parallel stripes of a Gabor function.lambd
- Wavelength of the sinusoidal factor.gamma
- Spatial aspect ratio.psi
- Phase offset.ktype
- Type of filter coefficients. It can be CV_32F or CV_64F .
getGaborKernel
@Namespace(value="cv")
@ByVal
public static Mat getGaborKernel(@ByVal
Size ksize,
double sigma,
double theta,
double lambd,
double gamma)
morphologyDefaultBorderValue
@Namespace(value="cv")
@ByVal
public static Scalar morphologyDefaultBorderValue()
getStructuringElement
@Namespace(value="cv")
@ByVal
public static Mat getStructuringElement(int shape,
@ByVal
Size ksize,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor)
shape
- Element shape that could be one of #MorphShapesksize
- Size of the structuring element.anchor
- Anchor position within the element. The default value (-1, -1)
means that the
anchor is at the center. Note that only the shape of a cross-shaped element depends on the anchor
position. In other cases the anchor just regulates how much the result of the morphological
operation is shifted.
getStructuringElement
@Namespace(value="cv")
@ByVal
public static Mat getStructuringElement(int shape,
@ByVal
Size ksize)
medianBlur
@Namespace(value="cv")
public static void medianBlur(@ByVal
Mat src,
@ByVal
Mat dst,
int ksize)
\texttt{ksize} \times
\texttt{ksize}
aperture. Each channel of a multi-channel image is processed independently.
In-place operation is supported.
src
- input 1-, 3-, or 4-channel image; when ksize is 3 or 5, the image depth should be
CV_8U, CV_16U, or CV_32F, for larger aperture sizes, it can only be CV_8U.dst
- destination array of the same size and type as src.ksize
- aperture linear size; it must be odd and greater than 1, for example: 3, 5, 7 ...bilateralFilter, blur, boxFilter, GaussianBlur
medianBlur
@Namespace(value="cv")
public static void medianBlur(@ByVal
UMat src,
@ByVal
UMat dst,
int ksize)
medianBlur
@Namespace(value="cv")
public static void medianBlur(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ksize)
GaussianBlur
@Namespace(value="cv")
public static void GaussianBlur(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Size ksize,
double sigmaX,
double sigmaY,
int borderType)
src
- input image; the image can have any number of channels, which are processed
independently, but the depth should be CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.dst
- output image of the same size and type as src.ksize
- Gaussian kernel size. ksize.width and ksize.height can differ but they both must be
positive and odd. Or, they can be zero's and then they are computed from sigma.sigmaX
- Gaussian kernel standard deviation in X direction.sigmaY
- Gaussian kernel standard deviation in Y direction; if sigmaY is zero, it is set to be
equal to sigmaX, if both sigmas are zeros, they are computed from ksize.width and ksize.height,
respectively (see #getGaussianKernel for details); to fully control the result regardless of
possible future modifications of all this semantics, it is recommended to specify all of ksize,
sigmaX, and sigmaY.borderType
- pixel extrapolation method, see #BorderTypes. #BORDER_WRAP is not supported.
sepFilter2D, filter2D, blur, boxFilter, bilateralFilter, medianBlur
GaussianBlur
@Namespace(value="cv")
public static void GaussianBlur(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Size ksize,
double sigmaX)
GaussianBlur
@Namespace(value="cv")
public static void GaussianBlur(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
Size ksize,
double sigmaX,
double sigmaY,
int borderType)
GaussianBlur
@Namespace(value="cv")
public static void GaussianBlur(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
Size ksize,
double sigmaX)
GaussianBlur
@Namespace(value="cv")
public static void GaussianBlur(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
Size ksize,
double sigmaX,
double sigmaY,
int borderType)
GaussianBlur
@Namespace(value="cv")
public static void GaussianBlur(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
Size ksize,
double sigmaX)
bilateralFilter
@Namespace(value="cv")
public static void bilateralFilter(@ByVal
Mat src,
@ByVal
Mat dst,
int d,
double sigmaColor,
double sigmaSpace,
int borderType)
src
- Source 8-bit or floating-point, 1-channel or 3-channel image.dst
- Destination image of the same size and type as src .d
- Diameter of each pixel neighborhood that is used during filtering. If it is non-positive,
it is computed from sigmaSpace.sigmaColor
- Filter sigma in the color space. A larger value of the parameter means that
farther colors within the pixel neighborhood (see sigmaSpace) will be mixed together, resulting
in larger areas of semi-equal color.sigmaSpace
- Filter sigma in the coordinate space. A larger value of the parameter means that
farther pixels will influence each other as long as their colors are close enough (see sigmaColor
). When d\>0, it specifies the neighborhood size regardless of sigmaSpace. Otherwise, d is
proportional to sigmaSpace.borderType
- border mode used to extrapolate pixels outside of the image, see #BorderTypes
bilateralFilter
@Namespace(value="cv")
public static void bilateralFilter(@ByVal
Mat src,
@ByVal
Mat dst,
int d,
double sigmaColor,
double sigmaSpace)
bilateralFilter
@Namespace(value="cv")
public static void bilateralFilter(@ByVal
UMat src,
@ByVal
UMat dst,
int d,
double sigmaColor,
double sigmaSpace,
int borderType)
bilateralFilter
@Namespace(value="cv")
public static void bilateralFilter(@ByVal
UMat src,
@ByVal
UMat dst,
int d,
double sigmaColor,
double sigmaSpace)
bilateralFilter
@Namespace(value="cv")
public static void bilateralFilter(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int d,
double sigmaColor,
double sigmaSpace,
int borderType)
bilateralFilter
@Namespace(value="cv")
public static void bilateralFilter(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int d,
double sigmaColor,
double sigmaSpace)
boxFilter
@Namespace(value="cv")
public static void boxFilter(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth,
@ByVal
Size ksize,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
@Cast(value="bool")
boolean normalize,
int borderType)
\[\texttt{K} = \alpha \begin{bmatrix} 1 & 1 & 1 & \cdots & 1 & 1 \\ 1 & 1 & 1 & \cdots & 1 & 1 \\ \hdotsfor{6} \\ 1 & 1 & 1 & \cdots & 1 & 1 \end{bmatrix}\]
\[\alpha = \fork{\frac{1}{\texttt{ksize.width*ksize.height}}}{when \texttt{normalize=true}}{1}{otherwise}\]
src
- input image.dst
- output image of the same size and type as src.ddepth
- the output image depth (-1 to use src.depth()).ksize
- blurring kernel size.anchor
- anchor point; default value Point(-1,-1) means that the anchor is at the kernel
center.normalize
- flag, specifying whether the kernel is normalized by its area or not.borderType
- border mode used to extrapolate pixels outside of the image, see #BorderTypes. #BORDER_WRAP is not supported.blur, bilateralFilter, GaussianBlur, medianBlur, integral
boxFilter
@Namespace(value="cv")
public static void boxFilter(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth,
@ByVal
Size ksize)
boxFilter
@Namespace(value="cv")
public static void boxFilter(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth,
@ByVal
Size ksize,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
@Cast(value="bool")
boolean normalize,
int borderType)
boxFilter
@Namespace(value="cv")
public static void boxFilter(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth,
@ByVal
Size ksize)
boxFilter
@Namespace(value="cv")
public static void boxFilter(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth,
@ByVal
Size ksize,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
@Cast(value="bool")
boolean normalize,
int borderType)
boxFilter
@Namespace(value="cv")
public static void boxFilter(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth,
@ByVal
Size ksize)
sqrBoxFilter
@Namespace(value="cv")
public static void sqrBoxFilter(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth,
@ByVal
Size ksize,
@ByVal(nullValue="cv::Point(-1, -1)")
Point anchor,
@Cast(value="bool")
boolean normalize,
int borderType)
(x, y)
in the source image, the function calculates the sum of squares of those neighboring
pixel values which overlap the filter placed over the pixel (x, y)
.
src
- input imagedst
- output image of the same size and type as _srcddepth
- the output image depth (-1 to use src.depth())ksize
- kernel sizeanchor
- kernel anchor point. The default value of Point(-1, -1) denotes that the anchor is at the kernel
center.normalize
- flag, specifying whether the kernel is to be normalized by it's area or not.borderType
- border mode used to extrapolate pixels outside of the image, see #BorderTypes. #BORDER_WRAP is not supported.boxFilter
sqrBoxFilter
@Namespace(value="cv")
public static void sqrBoxFilter(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth,
@ByVal
Size ksize)
sqrBoxFilter
@Namespace(value="cv")
public static void sqrBoxFilter(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth,
@ByVal
Size ksize,
@ByVal(nullValue="cv::Point(-1, -1)")
Point anchor,
@Cast(value="bool")
boolean normalize,
int borderType)
sqrBoxFilter
@Namespace(value="cv")
public static void sqrBoxFilter(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth,
@ByVal
Size ksize)
sqrBoxFilter
@Namespace(value="cv")
public static void sqrBoxFilter(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth,
@ByVal
Size ksize,
@ByVal(nullValue="cv::Point(-1, -1)")
Point anchor,
@Cast(value="bool")
boolean normalize,
int borderType)
sqrBoxFilter
@Namespace(value="cv")
public static void sqrBoxFilter(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth,
@ByVal
Size ksize)
blur
@Namespace(value="cv")
public static void blur(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Size ksize,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
int borderType)
\[\texttt{K} = \frac{1}{\texttt{ksize.width*ksize.height}} \begin{bmatrix} 1 & 1 & 1 & \cdots & 1 & 1 \\ 1 & 1 & 1 & \cdots & 1 & 1 \\ \hdotsfor{6} \\ 1 & 1 & 1 & \cdots & 1 & 1 \\ \end{bmatrix}\]
blur(src, dst, ksize, anchor, borderType)
is equivalent to boxFilter(src, dst, src.type(),
anchor, true, borderType)
.
src
- input image; it can have any number of channels, which are processed independently, but
the depth should be CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.dst
- output image of the same size and type as src.ksize
- blurring kernel size.anchor
- anchor point; default value Point(-1,-1) means that the anchor is at the kernel
center.borderType
- border mode used to extrapolate pixels outside of the image, see #BorderTypes. #BORDER_WRAP is not supported.boxFilter, bilateralFilter, GaussianBlur, medianBlur
blur
@Namespace(value="cv")
public static void blur(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Size ksize)
blur
@Namespace(value="cv")
public static void blur(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
Size ksize,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
int borderType)
blur
@Namespace(value="cv")
public static void blur(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
Size ksize)
blur
@Namespace(value="cv")
public static void blur(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
Size ksize,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
int borderType)
blur
@Namespace(value="cv")
public static void blur(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
Size ksize)
filter2D
@Namespace(value="cv")
public static void filter2D(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth,
@ByVal
Mat kernel,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
double delta,
int borderType)
\[\texttt{dst} (x,y) = \sum _{ \stackrel{0\leq x' < \texttt{kernel.cols},}{0\leq y' < \texttt{kernel.rows}} } \texttt{kernel} (x',y')* \texttt{src} (x+x'- \texttt{anchor.x} ,y+y'- \texttt{anchor.y} )\]
(kernel.cols - anchor.x - 1, kernel.rows -
anchor.y - 1)
.
11 x 11
or
larger) and the direct algorithm for small kernels.
src
- input image.dst
- output image of the same size and the same number of channels as src.ddepth
- desired depth of the destination image, see \ref filter_depths "combinations"kernel
- convolution kernel (or rather a correlation kernel), a single-channel floating point
matrix; if you want to apply different kernels to different channels, split the image into
separate color planes using split and process them individually.anchor
- anchor of the kernel that indicates the relative position of a filtered point within
the kernel; the anchor should lie within the kernel; default value (-1,-1) means that the anchor
is at the kernel center.delta
- optional value added to the filtered pixels before storing them in dst.borderType
- pixel extrapolation method, see #BorderTypes. #BORDER_WRAP is not supported.sepFilter2D, dft, matchTemplate
filter2D
@Namespace(value="cv")
public static void filter2D(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth,
@ByVal
Mat kernel)
filter2D
@Namespace(value="cv")
public static void filter2D(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth,
@ByVal
UMat kernel,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
double delta,
int borderType)
filter2D
@Namespace(value="cv")
public static void filter2D(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth,
@ByVal
UMat kernel)
filter2D
@Namespace(value="cv")
public static void filter2D(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth,
@ByVal
GpuMat kernel,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
double delta,
int borderType)
filter2D
@Namespace(value="cv")
public static void filter2D(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth,
@ByVal
GpuMat kernel)
sepFilter2D
@Namespace(value="cv")
public static void sepFilter2D(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth,
@ByVal
Mat kernelX,
@ByVal
Mat kernelY,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
double delta,
int borderType)
src
- Source image.dst
- Destination image of the same size and the same number of channels as src .ddepth
- Destination image depth, see \ref filter_depths "combinations"kernelX
- Coefficients for filtering each row.kernelY
- Coefficients for filtering each column.anchor
- Anchor position within the kernel. The default value (-1,-1)
means that the anchor
is at the kernel center.delta
- Value added to the filtered results before storing them.borderType
- Pixel extrapolation method, see #BorderTypes. #BORDER_WRAP is not supported.filter2D, Sobel, GaussianBlur, boxFilter, blur
sepFilter2D
@Namespace(value="cv")
public static void sepFilter2D(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth,
@ByVal
Mat kernelX,
@ByVal
Mat kernelY)
sepFilter2D
@Namespace(value="cv")
public static void sepFilter2D(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth,
@ByVal
UMat kernelX,
@ByVal
UMat kernelY,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
double delta,
int borderType)
sepFilter2D
@Namespace(value="cv")
public static void sepFilter2D(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth,
@ByVal
UMat kernelX,
@ByVal
UMat kernelY)
sepFilter2D
@Namespace(value="cv")
public static void sepFilter2D(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth,
@ByVal
GpuMat kernelX,
@ByVal
GpuMat kernelY,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
double delta,
int borderType)
sepFilter2D
@Namespace(value="cv")
public static void sepFilter2D(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth,
@ByVal
GpuMat kernelX,
@ByVal
GpuMat kernelY)
Sobel
@Namespace(value="cv")
public static void Sobel(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth,
int dx,
int dy,
int ksize,
double scale,
double delta,
int borderType)
\texttt{ksize} \times \texttt{ksize}
separable kernel is used to
calculate the derivative. When \texttt{ksize = 1}
, the 3 \times 1
or 1 \times 3
kernel is used (that is, no Gaussian smoothing is done). ksize = 1
can only be used for the first
or the second x- or y- derivatives.
ksize = #FILTER_SCHARR (-1)
that corresponds to the 3\times3
Scharr
filter that may give more accurate results than the 3\times3
Sobel. The Scharr aperture is
\[\vecthreethree{-3}{0}{3}{-10}{0}{10}{-3}{0}{3}\]
\[\texttt{dst} = \frac{\partial^{xorder+yorder} \texttt{src}}{\partial x^{xorder} \partial y^{yorder}}\]
\[\vecthreethree{-1}{0}{1}{-2}{0}{2}{-1}{0}{1}\]
\[\vecthreethree{-1}{-2}{-1}{0}{0}{0}{1}{2}{1}\]
src
- input image.dst
- output image of the same size and the same number of channels as src .ddepth
- output image depth, see \ref filter_depths "combinations"; in the case of
8-bit input images it will result in truncated derivatives.dx
- order of the derivative x.dy
- order of the derivative y.ksize
- size of the extended Sobel kernel; it must be 1, 3, 5, or 7.scale
- optional scale factor for the computed derivative values; by default, no scaling is
applied (see #getDerivKernels for details).delta
- optional delta value that is added to the results prior to storing them in dst.borderType
- pixel extrapolation method, see #BorderTypes. #BORDER_WRAP is not supported.Scharr, Laplacian, sepFilter2D, filter2D, GaussianBlur, cartToPolar
Sobel
@Namespace(value="cv")
public static void Sobel(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth,
int dx,
int dy)
Sobel
@Namespace(value="cv")
public static void Sobel(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth,
int dx,
int dy,
int ksize,
double scale,
double delta,
int borderType)
Sobel
@Namespace(value="cv")
public static void Sobel(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth,
int dx,
int dy)
Sobel
@Namespace(value="cv")
public static void Sobel(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth,
int dx,
int dy,
int ksize,
double scale,
double delta,
int borderType)
Sobel
@Namespace(value="cv")
public static void Sobel(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth,
int dx,
int dy)
spatialGradient
@Namespace(value="cv")
public static void spatialGradient(@ByVal
Mat src,
@ByVal
Mat dx,
@ByVal
Mat dy,
int ksize,
int borderType)
Sobel( src, dx, CV_16SC1, 1, 0, 3 );
Sobel( src, dy, CV_16SC1, 0, 1, 3 );
src
- input image.dx
- output image with first-order derivative in x.dy
- output image with first-order derivative in y.ksize
- size of Sobel kernel. It must be 3.borderType
- pixel extrapolation method, see #BorderTypes.
Only #BORDER_DEFAULT=#BORDER_REFLECT_101 and #BORDER_REPLICATE are supported.
Sobel
spatialGradient
@Namespace(value="cv")
public static void spatialGradient(@ByVal
Mat src,
@ByVal
Mat dx,
@ByVal
Mat dy)
spatialGradient
@Namespace(value="cv")
public static void spatialGradient(@ByVal
UMat src,
@ByVal
UMat dx,
@ByVal
UMat dy,
int ksize,
int borderType)
spatialGradient
@Namespace(value="cv")
public static void spatialGradient(@ByVal
UMat src,
@ByVal
UMat dx,
@ByVal
UMat dy)
spatialGradient
@Namespace(value="cv")
public static void spatialGradient(@ByVal
GpuMat src,
@ByVal
GpuMat dx,
@ByVal
GpuMat dy,
int ksize,
int borderType)
spatialGradient
@Namespace(value="cv")
public static void spatialGradient(@ByVal
GpuMat src,
@ByVal
GpuMat dx,
@ByVal
GpuMat dy)
Scharr
@Namespace(value="cv")
public static void Scharr(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth,
int dx,
int dy,
double scale,
double delta,
int borderType)
\[\texttt{Scharr(src, dst, ddepth, dx, dy, scale, delta, borderType)}\]
\[\texttt{Sobel(src, dst, ddepth, dx, dy, FILTER_SCHARR, scale, delta, borderType)} .\]
src
- input image.dst
- output image of the same size and the same number of channels as src.ddepth
- output image depth, see \ref filter_depths "combinations"dx
- order of the derivative x.dy
- order of the derivative y.scale
- optional scale factor for the computed derivative values; by default, no scaling is
applied (see #getDerivKernels for details).delta
- optional delta value that is added to the results prior to storing them in dst.borderType
- pixel extrapolation method, see #BorderTypes. #BORDER_WRAP is not supported.cartToPolar
Scharr
@Namespace(value="cv")
public static void Scharr(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth,
int dx,
int dy)
Scharr
@Namespace(value="cv")
public static void Scharr(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth,
int dx,
int dy,
double scale,
double delta,
int borderType)
Scharr
@Namespace(value="cv")
public static void Scharr(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth,
int dx,
int dy)
Scharr
@Namespace(value="cv")
public static void Scharr(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth,
int dx,
int dy,
double scale,
double delta,
int borderType)
Scharr
@Namespace(value="cv")
public static void Scharr(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth,
int dx,
int dy)
Laplacian
@Namespace(value="cv")
public static void Laplacian(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth,
int ksize,
double scale,
double delta,
int borderType)
\[\texttt{dst} = \Delta \texttt{src} = \frac{\partial^2 \texttt{src}}{\partial x^2} + \frac{\partial^2 \texttt{src}}{\partial y^2}\]
ksize > 1
. When ksize == 1
, the Laplacian is computed by filtering the image
with the following 3 \times 3
aperture:
\[\vecthreethree {0}{1}{0}{1}{-4}{1}{0}{1}{0}\]
src
- Source image.dst
- Destination image of the same size and the same number of channels as src .ddepth
- Desired depth of the destination image.ksize
- Aperture size used to compute the second-derivative filters. See #getDerivKernels for
details. The size must be positive and odd.scale
- Optional scale factor for the computed Laplacian values. By default, no scaling is
applied. See #getDerivKernels for details.delta
- Optional delta value that is added to the results prior to storing them in dst .borderType
- Pixel extrapolation method, see #BorderTypes. #BORDER_WRAP is not supported.Sobel, Scharr
Laplacian
@Namespace(value="cv")
public static void Laplacian(@ByVal
Mat src,
@ByVal
Mat dst,
int ddepth)
Laplacian
@Namespace(value="cv")
public static void Laplacian(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth,
int ksize,
double scale,
double delta,
int borderType)
Laplacian
@Namespace(value="cv")
public static void Laplacian(@ByVal
UMat src,
@ByVal
UMat dst,
int ddepth)
Laplacian
@Namespace(value="cv")
public static void Laplacian(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth,
int ksize,
double scale,
double delta,
int borderType)
Laplacian
@Namespace(value="cv")
public static void Laplacian(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ddepth)
Canny
@Namespace(value="cv")
public static void Canny(@ByVal
Mat image,
@ByVal
Mat edges,
double threshold1,
double threshold2,
int apertureSize,
@Cast(value="bool")
boolean L2gradient)
image
- 8-bit input image.edges
- output edge map; single channels 8-bit image, which has the same size as image .threshold1
- first threshold for the hysteresis procedure.threshold2
- second threshold for the hysteresis procedure.apertureSize
- aperture size for the Sobel operator.L2gradient
- a flag, indicating whether a more accurate L_2
norm
=\sqrt{(dI/dx)^2 + (dI/dy)^2}
should be used to calculate the image gradient magnitude (
L2gradient=true ), or whether the default L_1
norm =|dI/dx|+|dI/dy|
is enough (
L2gradient=false ).
Canny
@Namespace(value="cv")
public static void Canny(@ByVal
Mat image,
@ByVal
Mat edges,
double threshold1,
double threshold2)
Canny
@Namespace(value="cv")
public static void Canny(@ByVal
UMat image,
@ByVal
UMat edges,
double threshold1,
double threshold2,
int apertureSize,
@Cast(value="bool")
boolean L2gradient)
Canny
@Namespace(value="cv")
public static void Canny(@ByVal
UMat image,
@ByVal
UMat edges,
double threshold1,
double threshold2)
Canny
@Namespace(value="cv")
public static void Canny(@ByVal
GpuMat image,
@ByVal
GpuMat edges,
double threshold1,
double threshold2,
int apertureSize,
@Cast(value="bool")
boolean L2gradient)
Canny
@Namespace(value="cv")
public static void Canny(@ByVal
GpuMat image,
@ByVal
GpuMat edges,
double threshold1,
double threshold2)
Canny
@Namespace(value="cv")
public static void Canny(@ByVal
Mat dx,
@ByVal
Mat dy,
@ByVal
Mat edges,
double threshold1,
double threshold2,
@Cast(value="bool")
boolean L2gradient)
dx
- 16-bit x derivative of input image (CV_16SC1 or CV_16SC3).dy
- 16-bit y derivative of input image (same type as dx).edges
- output edge map; single channels 8-bit image, which has the same size as image .threshold1
- first threshold for the hysteresis procedure.threshold2
- second threshold for the hysteresis procedure.L2gradient
- a flag, indicating whether a more accurate L_2
norm
=\sqrt{(dI/dx)^2 + (dI/dy)^2}
should be used to calculate the image gradient magnitude (
L2gradient=true ), or whether the default L_1
norm =|dI/dx|+|dI/dy|
is enough (
L2gradient=false ).
Canny
@Namespace(value="cv")
public static void Canny(@ByVal
Mat dx,
@ByVal
Mat dy,
@ByVal
Mat edges,
double threshold1,
double threshold2)
Canny
@Namespace(value="cv")
public static void Canny(@ByVal
UMat dx,
@ByVal
UMat dy,
@ByVal
UMat edges,
double threshold1,
double threshold2,
@Cast(value="bool")
boolean L2gradient)
Canny
@Namespace(value="cv")
public static void Canny(@ByVal
UMat dx,
@ByVal
UMat dy,
@ByVal
UMat edges,
double threshold1,
double threshold2)
Canny
@Namespace(value="cv")
public static void Canny(@ByVal
GpuMat dx,
@ByVal
GpuMat dy,
@ByVal
GpuMat edges,
double threshold1,
double threshold2,
@Cast(value="bool")
boolean L2gradient)
Canny
@Namespace(value="cv")
public static void Canny(@ByVal
GpuMat dx,
@ByVal
GpuMat dy,
@ByVal
GpuMat edges,
double threshold1,
double threshold2)
cornerMinEigenVal
@Namespace(value="cv")
public static void cornerMinEigenVal(@ByVal
Mat src,
@ByVal
Mat dst,
int blockSize,
int ksize,
int borderType)
\min(\lambda_1, \lambda_2)
in terms
of the formulae in the cornerEigenValsAndVecs description.
src
- Input single-channel 8-bit or floating-point image.dst
- Image to store the minimal eigenvalues. It has the type CV_32FC1 and the same size as
src .blockSize
- Neighborhood size (see the details on #cornerEigenValsAndVecs ).ksize
- Aperture parameter for the Sobel operator.borderType
- Pixel extrapolation method. See #BorderTypes. #BORDER_WRAP is not supported.
cornerMinEigenVal
@Namespace(value="cv")
public static void cornerMinEigenVal(@ByVal
Mat src,
@ByVal
Mat dst,
int blockSize)
cornerMinEigenVal
@Namespace(value="cv")
public static void cornerMinEigenVal(@ByVal
UMat src,
@ByVal
UMat dst,
int blockSize,
int ksize,
int borderType)
cornerMinEigenVal
@Namespace(value="cv")
public static void cornerMinEigenVal(@ByVal
UMat src,
@ByVal
UMat dst,
int blockSize)
cornerMinEigenVal
@Namespace(value="cv")
public static void cornerMinEigenVal(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int blockSize,
int ksize,
int borderType)
cornerMinEigenVal
@Namespace(value="cv")
public static void cornerMinEigenVal(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int blockSize)
cornerHarris
@Namespace(value="cv")
public static void cornerHarris(@ByVal
Mat src,
@ByVal
Mat dst,
int blockSize,
int ksize,
double k,
int borderType)
(x, y)
it calculates a 2\times2
gradient covariance
matrix M^{(x,y)}
over a \texttt{blockSize} \times \texttt{blockSize}
neighborhood. Then, it
computes the following characteristic:
\[\texttt{dst} (x,y) = \mathrm{det} M^{(x,y)} - k \cdot \left ( \mathrm{tr} M^{(x,y)} \right )^2\]
src
- Input single-channel 8-bit or floating-point image.dst
- Image to store the Harris detector responses. It has the type CV_32FC1 and the same
size as src .blockSize
- Neighborhood size (see the details on #cornerEigenValsAndVecs ).ksize
- Aperture parameter for the Sobel operator.k
- Harris detector free parameter. See the formula above.borderType
- Pixel extrapolation method. See #BorderTypes. #BORDER_WRAP is not supported.
cornerHarris
@Namespace(value="cv")
public static void cornerHarris(@ByVal
Mat src,
@ByVal
Mat dst,
int blockSize,
int ksize,
double k)
cornerHarris
@Namespace(value="cv")
public static void cornerHarris(@ByVal
UMat src,
@ByVal
UMat dst,
int blockSize,
int ksize,
double k,
int borderType)
cornerHarris
@Namespace(value="cv")
public static void cornerHarris(@ByVal
UMat src,
@ByVal
UMat dst,
int blockSize,
int ksize,
double k)
cornerHarris
@Namespace(value="cv")
public static void cornerHarris(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int blockSize,
int ksize,
double k,
int borderType)
cornerHarris
@Namespace(value="cv")
public static void cornerHarris(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int blockSize,
int ksize,
double k)
cornerEigenValsAndVecs
@Namespace(value="cv")
public static void cornerEigenValsAndVecs(@ByVal
Mat src,
@ByVal
Mat dst,
int blockSize,
int ksize,
int borderType)
p
, the function cornerEigenValsAndVecs considers a blockSize \times
blockSize
neighborhood S(p)
. It calculates the covariation matrix of derivatives over the neighborhood as:
\[M = \begin{bmatrix} \sum _{S(p)}(dI/dx)^2 & \sum _{S(p)}dI/dx dI/dy \\ \sum _{S(p)}dI/dx dI/dy & \sum _{S(p)}(dI/dy)^2 \end{bmatrix}\]
M
and stores them in the destination image as
(\lambda_1, \lambda_2, x_1, y_1, x_2, y_2)
where
\lambda_1, \lambda_2
are the non-sorted eigenvalues of M
- x_1, y_1
are the eigenvectors corresponding to \lambda_1
- x_2, y_2
are the eigenvectors corresponding to \lambda_2
src
- Input single-channel 8-bit or floating-point image.dst
- Image to store the results. It has the same size as src and the type CV_32FC(6) .blockSize
- Neighborhood size (see details below).ksize
- Aperture parameter for the Sobel operator.borderType
- Pixel extrapolation method. See #BorderTypes. #BORDER_WRAP is not supported.
cornerMinEigenVal, cornerHarris, preCornerDetect
cornerEigenValsAndVecs
@Namespace(value="cv")
public static void cornerEigenValsAndVecs(@ByVal
Mat src,
@ByVal
Mat dst,
int blockSize,
int ksize)
cornerEigenValsAndVecs
@Namespace(value="cv")
public static void cornerEigenValsAndVecs(@ByVal
UMat src,
@ByVal
UMat dst,
int blockSize,
int ksize,
int borderType)
cornerEigenValsAndVecs
@Namespace(value="cv")
public static void cornerEigenValsAndVecs(@ByVal
UMat src,
@ByVal
UMat dst,
int blockSize,
int ksize)
cornerEigenValsAndVecs
@Namespace(value="cv")
public static void cornerEigenValsAndVecs(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int blockSize,
int ksize,
int borderType)
cornerEigenValsAndVecs
@Namespace(value="cv")
public static void cornerEigenValsAndVecs(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int blockSize,
int ksize)
preCornerDetect
@Namespace(value="cv")
public static void preCornerDetect(@ByVal
Mat src,
@ByVal
Mat dst,
int ksize,
int borderType)
\[\texttt{dst} = (D_x \texttt{src} )^2 \cdot D_{yy} \texttt{src} + (D_y \texttt{src} )^2 \cdot D_{xx} \texttt{src} - 2 D_x \texttt{src} \cdot D_y \texttt{src} \cdot D_{xy} \texttt{src}\]
D_x
,D_y
are the first image derivatives, D_{xx}
,D_{yy}
are the second image
derivatives, and D_{xy}
is the mixed derivative.
Mat corners, dilated_corners;
preCornerDetect(image, corners, 3);
// dilation with 3x3 rectangular structuring element
dilate(corners, dilated_corners, Mat(), 1);
Mat corner_mask = corners == dilated_corners;
src
- Source single-channel 8-bit of floating-point image.dst
- Output image that has the type CV_32F and the same size as src .ksize
- %Aperture size of the Sobel .borderType
- Pixel extrapolation method. See #BorderTypes. #BORDER_WRAP is not supported.
preCornerDetect
@Namespace(value="cv")
public static void preCornerDetect(@ByVal
Mat src,
@ByVal
Mat dst,
int ksize)
preCornerDetect
@Namespace(value="cv")
public static void preCornerDetect(@ByVal
UMat src,
@ByVal
UMat dst,
int ksize,
int borderType)
preCornerDetect
@Namespace(value="cv")
public static void preCornerDetect(@ByVal
UMat src,
@ByVal
UMat dst,
int ksize)
preCornerDetect
@Namespace(value="cv")
public static void preCornerDetect(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ksize,
int borderType)
preCornerDetect
@Namespace(value="cv")
public static void preCornerDetect(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int ksize)
cornerSubPix
@Namespace(value="cv")
public static void cornerSubPix(@ByVal
Mat image,
@ByVal
Mat corners,
@ByVal
Size winSize,
@ByVal
Size zeroZone,
@ByVal
TermCriteria criteria)
q
to a point p
located within a neighborhood of q
is orthogonal to the image gradient at p
subject to image and measurement noise. Consider the expression:
\[\epsilon _i = {DI_{p_i}}^T \cdot (q - p_i)\]
{DI_{p_i}}
is an image gradient at one of the points p_i
in a neighborhood of q
. The
value of q
is to be found so that \epsilon_i
is minimized. A system of equations may be set up
with \epsilon_i
set to zero:
\[\sum _i(DI_{p_i} \cdot {DI_{p_i}}^T) \cdot q - \sum _i(DI_{p_i} \cdot {DI_{p_i}}^T \cdot p_i)\]
q
. Calling the first
gradient term G
and the second gradient term b
gives:
\[q = G^{-1} \cdot b\]
q
and then iterates
until the center stays within a set threshold.
image
- Input single-channel, 8-bit or float image.corners
- Initial coordinates of the input corners and refined coordinates provided for
output.winSize
- Half of the side length of the search window. For example, if winSize=Size(5,5) ,
then a (5*2+1) \times (5*2+1) = 11 \times 11
search window is used.zeroZone
- Half of the size of the dead region in the middle of the search zone over which
the summation in the formula below is not done. It is used sometimes to avoid possible
singularities of the autocorrelation matrix. The value of (-1,-1) indicates that there is no such
a size.criteria
- Criteria for termination of the iterative process of corner refinement. That is,
the process of corner position refinement stops either after criteria.maxCount iterations or when
the corner position moves by less than criteria.epsilon on some iteration.
cornerSubPix
@Namespace(value="cv")
public static void cornerSubPix(@ByVal
UMat image,
@ByVal
UMat corners,
@ByVal
Size winSize,
@ByVal
Size zeroZone,
@ByVal
TermCriteria criteria)
cornerSubPix
@Namespace(value="cv")
public static void cornerSubPix(@ByVal
GpuMat image,
@ByVal
GpuMat corners,
@ByVal
Size winSize,
@ByVal
Size zeroZone,
@ByVal
TermCriteria criteria)
goodFeaturesToTrack
@Namespace(value="cv")
public static void goodFeaturesToTrack(@ByVal
Mat image,
@ByVal
Mat corners,
int maxCorners,
double qualityLevel,
double minDistance,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat mask,
int blockSize,
@Cast(value="bool")
boolean useHarrisDetector,
double k)
\texttt{qualityLevel} \cdot \max_{x,y} qualityMeasureMap(x,y)
are rejected.
- The remaining corners are sorted by the quality measure in the descending order.
- Function throws away each corner for which there is a stronger corner at a distance less than
maxDistance.
image
- Input 8-bit or floating-point 32-bit, single-channel image.corners
- Output vector of detected corners.maxCorners
- Maximum number of corners to return. If there are more corners than are found,
the strongest of them is returned. maxCorners <= 0
implies that no limit on the maximum is set
and all detected corners are returned.qualityLevel
- Parameter characterizing the minimal accepted quality of image corners. The
parameter value is multiplied by the best corner quality measure, which is the minimal eigenvalue
(see #cornerMinEigenVal ) or the Harris function response (see #cornerHarris ). The corners with the
quality measure less than the product are rejected. For example, if the best corner has the
quality measure = 1500, and the qualityLevel=0.01 , then all the corners with the quality measure
less than 15 are rejected.minDistance
- Minimum possible Euclidean distance between the returned corners.mask
- Optional region of interest. If the image is not empty (it needs to have the type
CV_8UC1 and the same size as image ), it specifies the region in which the corners are detected.blockSize
- Size of an average block for computing a derivative covariation matrix over each
pixel neighborhood. See cornerEigenValsAndVecs .useHarrisDetector
- Parameter indicating whether to use a Harris detector (see #cornerHarris)
or #cornerMinEigenVal.k
- Free parameter of the Harris detector.
cornerMinEigenVal, cornerHarris, calcOpticalFlowPyrLK, estimateRigidTransform,
goodFeaturesToTrack
@Namespace(value="cv")
public static void goodFeaturesToTrack(@ByVal
Mat image,
@ByVal
Mat corners,
int maxCorners,
double qualityLevel,
double minDistance)
goodFeaturesToTrack
@Namespace(value="cv")
public static void goodFeaturesToTrack(@ByVal
UMat image,
@ByVal
UMat corners,
int maxCorners,
double qualityLevel,
double minDistance,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat mask,
int blockSize,
@Cast(value="bool")
boolean useHarrisDetector,
double k)
goodFeaturesToTrack
@Namespace(value="cv")
public static void goodFeaturesToTrack(@ByVal
UMat image,
@ByVal
UMat corners,
int maxCorners,
double qualityLevel,
double minDistance)
goodFeaturesToTrack
@Namespace(value="cv")
public static void goodFeaturesToTrack(@ByVal
GpuMat image,
@ByVal
GpuMat corners,
int maxCorners,
double qualityLevel,
double minDistance,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat mask,
int blockSize,
@Cast(value="bool")
boolean useHarrisDetector,
double k)
goodFeaturesToTrack
@Namespace(value="cv")
public static void goodFeaturesToTrack(@ByVal
GpuMat image,
@ByVal
GpuMat corners,
int maxCorners,
double qualityLevel,
double minDistance)
goodFeaturesToTrack
@Namespace(value="cv")
public static void goodFeaturesToTrack(@ByVal
Mat image,
@ByVal
Mat corners,
int maxCorners,
double qualityLevel,
double minDistance,
@ByVal
Mat mask,
int blockSize,
int gradientSize,
@Cast(value="bool")
boolean useHarrisDetector,
double k)
goodFeaturesToTrack
@Namespace(value="cv")
public static void goodFeaturesToTrack(@ByVal
Mat image,
@ByVal
Mat corners,
int maxCorners,
double qualityLevel,
double minDistance,
@ByVal
Mat mask,
int blockSize,
int gradientSize)
goodFeaturesToTrack
@Namespace(value="cv")
public static void goodFeaturesToTrack(@ByVal
UMat image,
@ByVal
UMat corners,
int maxCorners,
double qualityLevel,
double minDistance,
@ByVal
UMat mask,
int blockSize,
int gradientSize,
@Cast(value="bool")
boolean useHarrisDetector,
double k)
goodFeaturesToTrack
@Namespace(value="cv")
public static void goodFeaturesToTrack(@ByVal
UMat image,
@ByVal
UMat corners,
int maxCorners,
double qualityLevel,
double minDistance,
@ByVal
UMat mask,
int blockSize,
int gradientSize)
goodFeaturesToTrack
@Namespace(value="cv")
public static void goodFeaturesToTrack(@ByVal
GpuMat image,
@ByVal
GpuMat corners,
int maxCorners,
double qualityLevel,
double minDistance,
@ByVal
GpuMat mask,
int blockSize,
int gradientSize,
@Cast(value="bool")
boolean useHarrisDetector,
double k)
goodFeaturesToTrack
@Namespace(value="cv")
public static void goodFeaturesToTrack(@ByVal
GpuMat image,
@ByVal
GpuMat corners,
int maxCorners,
double qualityLevel,
double minDistance,
@ByVal
GpuMat mask,
int blockSize,
int gradientSize)
HoughLines
@Namespace(value="cv")
public static void HoughLines(@ByVal
Mat image,
@ByVal
Vec2fVector lines,
double rho,
double theta,
int threshold,
double srn,
double stn,
double min_theta,
double max_theta)
image
- 8-bit, single-channel binary source image. The image may be modified by the function.lines
- Output vector of lines. Each line is represented by a 2 or 3 element vector
(\rho, \theta)
or (\rho, \theta, \textrm{votes})
. \rho
is the distance from the coordinate origin (0,0)
(top-left corner of
the image). \theta
is the line rotation angle in radians (
0 \sim \textrm{vertical line}, \pi/2 \sim \textrm{horizontal line}
).
\textrm{votes}
is the value of accumulator.rho
- Distance resolution of the accumulator in pixels.theta
- Angle resolution of the accumulator in radians.threshold
- Accumulator threshold parameter. Only those lines are returned that get enough
votes ( >\texttt{threshold}
).srn
- For the multi-scale Hough transform, it is a divisor for the distance resolution rho .
The coarse accumulator distance resolution is rho and the accurate accumulator resolution is
rho/srn . If both srn=0 and stn=0 , the classical Hough transform is used. Otherwise, both these
parameters should be positive.stn
- For the multi-scale Hough transform, it is a divisor for the distance resolution theta.min_theta
- For standard and multi-scale Hough transform, minimum angle to check for lines.
Must fall between 0 and max_theta.max_theta
- For standard and multi-scale Hough transform, maximum angle to check for lines.
Must fall between min_theta and CV_PI.
HoughLines
@Namespace(value="cv")
public static void HoughLines(@ByVal
Mat image,
@ByVal
Vec3fVector lines,
double rho,
double theta,
int threshold,
double srn,
double stn,
double min_theta,
double max_theta)
HoughLinesP
@Namespace(value="cv")
public static void HoughLinesP(@ByVal
Mat image,
@ByVal
Vec4iVector lines,
double rho,
double theta,
int threshold,
double minLineLength,
double maxLineGap)
image
- 8-bit, single-channel binary source image. The image may be modified by the function.lines
- Output vector of lines. Each line is represented by a 4-element vector
(x_1, y_1, x_2, y_2)
, where (x_1,y_1)
and (x_2, y_2)
are the ending points of each detected
line segment.rho
- Distance resolution of the accumulator in pixels.theta
- Angle resolution of the accumulator in radians.threshold
- Accumulator threshold parameter. Only those lines are returned that get enough
votes ( >\texttt{threshold}
).minLineLength
- Minimum line length. Line segments shorter than that are rejected.maxLineGap
- Maximum allowed gap between points on the same line to link them.
LineSegmentDetector
HoughLinesPointSet
@Namespace(value="cv")
public static void HoughLinesPointSet(@ByVal
Mat _point,
@ByVal
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)
_point
- Input vector of points. Each vector must be encoded as a Point vector (x,y)
. Type must be CV_32FC2 or CV_32SC2._lines
- Output vector of found lines. Each vector is encoded as a vector(votes, rho, theta)
.
The larger the value of 'votes', the higher the reliability of the Hough line.lines_max
- Max count of hough lines.threshold
- Accumulator threshold parameter. Only those lines are returned that get enough
votes ( >\texttt{threshold}
)min_rho
- Minimum Distance value of the accumulator in pixels.max_rho
- Maximum Distance value of the accumulator in pixels.rho_step
- Distance resolution of the accumulator in pixels.min_theta
- Minimum angle value of the accumulator in radians.max_theta
- Maximum angle value of the accumulator in radians.theta_step
- Angle resolution of the accumulator in radians.
HoughLinesPointSet
@Namespace(value="cv")
public static void HoughLinesPointSet(@ByVal
UMat _point,
@ByVal
UMat _lines,
int lines_max,
int threshold,
double min_rho,
double max_rho,
double rho_step,
double min_theta,
double max_theta,
double theta_step)
HoughLinesPointSet
@Namespace(value="cv")
public static void HoughLinesPointSet(@ByVal
GpuMat _point,
@ByVal
GpuMat _lines,
int lines_max,
int threshold,
double min_rho,
double max_rho,
double rho_step,
double min_theta,
double max_theta,
double theta_step)
HoughCircles
@Namespace(value="cv")
public static void HoughCircles(@ByVal
Mat image,
@ByVal
Vec3fVector circles,
int method,
double dp,
double minDist,
double param1,
double param2,
int minRadius,
int maxRadius)
image
- 8-bit, single-channel, grayscale input image.circles
- Output vector of found circles. Each vector is encoded as 3 or 4 element
floating-point vector (x, y, radius)
or (x, y, radius, votes)
.method
- Detection method, see #HoughModes. The available methods are #HOUGH_GRADIENT and #HOUGH_GRADIENT_ALT.dp
- Inverse ratio of the accumulator resolution to the image resolution. For example, if
dp=1 , the accumulator has the same resolution as the input image. If dp=2 , the accumulator has
half as big width and height. For #HOUGH_GRADIENT_ALT the recommended value is dp=1.5,
unless some small very circles need to be detected.minDist
- Minimum distance between the centers of the detected circles. If the parameter is
too small, multiple neighbor circles may be falsely detected in addition to a true one. If it is
too large, some circles may be missed.param1
- First method-specific parameter. In case of #HOUGH_GRADIENT and #HOUGH_GRADIENT_ALT,
it is the higher threshold of the two passed to the Canny edge detector (the lower one is twice smaller).
Note that #HOUGH_GRADIENT_ALT uses #Scharr algorithm to compute image derivatives, so the threshold value
shough normally be higher, such as 300 or normally exposed and contrasty images.param2
- Second method-specific parameter. In case of #HOUGH_GRADIENT, it is the
accumulator threshold for the circle centers at the detection stage. The smaller it is, the more
false circles may be detected. Circles, corresponding to the larger accumulator values, will be
returned first. In the case of #HOUGH_GRADIENT_ALT algorithm, this is the circle "perfectness" measure.
The closer it to 1, the better shaped circles algorithm selects. In most cases 0.9 should be fine.
If you want get better detection of small circles, you may decrease it to 0.85, 0.8 or even less.
But then also try to limit the search range [minRadius, maxRadius] to avoid many false circles.minRadius
- Minimum circle radius.maxRadius
- Maximum circle radius. If <= 0, uses the maximum image dimension. If < 0, #HOUGH_GRADIENT returns
centers without finding the radius. #HOUGH_GRADIENT_ALT always computes circle radiuses.
fitEllipse, minEnclosingCircle
HoughCircles
@Namespace(value="cv")
public static void HoughCircles(@ByVal
Mat image,
@ByVal
Vec4fVector circles,
int method,
double dp,
double minDist,
double param1,
double param2,
int minRadius,
int maxRadius)
erode
@Namespace(value="cv")
public static void erode(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Mat kernel,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
int iterations,
int borderType,
@Const @ByRef(nullValue="cv::Scalar(cv::morphologyDefaultBorderValue())")
Scalar borderValue)
\[\texttt{dst} (x,y) = \min _{(x',y'): \, \texttt{element} (x',y') \ne0 } \texttt{src} (x+x',y+y')\]
src
- input image; the number of channels can be arbitrary, but the depth should be one of
CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.dst
- output image of the same size and type as src.kernel
- structuring element used for erosion; if element=Mat()
, a 3 x 3
rectangular
structuring element is used. Kernel can be created using #getStructuringElement.anchor
- position of the anchor within the element; default value (-1, -1) means that the
anchor is at the element center.iterations
- number of times erosion is applied.borderType
- pixel extrapolation method, see #BorderTypes. #BORDER_WRAP is not supported.borderValue
- border value in case of a constant borderdilate, morphologyEx, getStructuringElement
erode
@Namespace(value="cv")
public static void erode(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Mat kernel)
erode
@Namespace(value="cv")
public static void erode(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
UMat kernel,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
int iterations,
int borderType,
@Const @ByRef(nullValue="cv::Scalar(cv::morphologyDefaultBorderValue())")
Scalar borderValue)
erode
@Namespace(value="cv")
public static void erode(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
UMat kernel)
erode
@Namespace(value="cv")
public static void erode(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
GpuMat kernel,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
int iterations,
int borderType,
@Const @ByRef(nullValue="cv::Scalar(cv::morphologyDefaultBorderValue())")
Scalar borderValue)
erode
@Namespace(value="cv")
public static void erode(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
GpuMat kernel)
dilate
@Namespace(value="cv")
public static void dilate(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Mat kernel,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
int iterations,
int borderType,
@Const @ByRef(nullValue="cv::Scalar(cv::morphologyDefaultBorderValue())")
Scalar borderValue)
\[\texttt{dst} (x,y) = \max _{(x',y'): \, \texttt{element} (x',y') \ne0 } \texttt{src} (x+x',y+y')\]
src
- input image; the number of channels can be arbitrary, but the depth should be one of
CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.dst
- output image of the same size and type as src.kernel
- structuring element used for dilation; if elemenat=Mat(), a 3 x 3 rectangular
structuring element is used. Kernel can be created using #getStructuringElementanchor
- position of the anchor within the element; default value (-1, -1) means that the
anchor is at the element center.iterations
- number of times dilation is applied.borderType
- pixel extrapolation method, see #BorderTypes. #BORDER_WRAP is not suported.borderValue
- border value in case of a constant bordererode, morphologyEx, getStructuringElement
dilate
@Namespace(value="cv")
public static void dilate(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Mat kernel)
dilate
@Namespace(value="cv")
public static void dilate(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
UMat kernel,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
int iterations,
int borderType,
@Const @ByRef(nullValue="cv::Scalar(cv::morphologyDefaultBorderValue())")
Scalar borderValue)
dilate
@Namespace(value="cv")
public static void dilate(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
UMat kernel)
dilate
@Namespace(value="cv")
public static void dilate(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
GpuMat kernel,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
int iterations,
int borderType,
@Const @ByRef(nullValue="cv::Scalar(cv::morphologyDefaultBorderValue())")
Scalar borderValue)
dilate
@Namespace(value="cv")
public static void dilate(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
GpuMat kernel)
morphologyEx
@Namespace(value="cv")
public static void morphologyEx(@ByVal
Mat src,
@ByVal
Mat dst,
int op,
@ByVal
Mat kernel,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
int iterations,
int borderType,
@Const @ByRef(nullValue="cv::Scalar(cv::morphologyDefaultBorderValue())")
Scalar borderValue)
src
- Source image. The number of channels can be arbitrary. The depth should be one of
CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.dst
- Destination image of the same size and type as source image.op
- Type of a morphological operation, see #MorphTypeskernel
- Structuring element. It can be created using #getStructuringElement.anchor
- Anchor position with the kernel. Negative values mean that the anchor is at the
kernel center.iterations
- Number of times erosion and dilation are applied.borderType
- Pixel extrapolation method, see #BorderTypes. #BORDER_WRAP is not supported.borderValue
- Border value in case of a constant border. The default value has a special
meaning.dilate, erode, getStructuringElement
\note The number of iterations is the number of times erosion or dilatation operation will be applied.
For instance, an opening operation (#MORPH_OPEN) with two iterations is equivalent to apply
successively: erode -> erode -> dilate -> dilate (and not erode -> dilate -> erode -> dilate).
morphologyEx
@Namespace(value="cv")
public static void morphologyEx(@ByVal
Mat src,
@ByVal
Mat dst,
int op,
@ByVal
Mat kernel)
morphologyEx
@Namespace(value="cv")
public static void morphologyEx(@ByVal
UMat src,
@ByVal
UMat dst,
int op,
@ByVal
UMat kernel,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
int iterations,
int borderType,
@Const @ByRef(nullValue="cv::Scalar(cv::morphologyDefaultBorderValue())")
Scalar borderValue)
morphologyEx
@Namespace(value="cv")
public static void morphologyEx(@ByVal
UMat src,
@ByVal
UMat dst,
int op,
@ByVal
UMat kernel)
morphologyEx
@Namespace(value="cv")
public static void morphologyEx(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int op,
@ByVal
GpuMat kernel,
@ByVal(nullValue="cv::Point(-1,-1)")
Point anchor,
int iterations,
int borderType,
@Const @ByRef(nullValue="cv::Scalar(cv::morphologyDefaultBorderValue())")
Scalar borderValue)
morphologyEx
@Namespace(value="cv")
public static void morphologyEx(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int op,
@ByVal
GpuMat kernel)
resize
@Namespace(value="cv")
public static void resize(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Size dsize,
double fx,
double fy,
int interpolation)
src
,dsize
,fx
, and fy
. If you want to resize src so that it fits the pre-created dst,
you may call the function as follows:
If you want to decimate the image by factor of 2 in each direction, you can call the function this
way:
// explicitly specify dsize=dst.size(); fx and fy will be computed from that.
resize(src, dst, dst.size(), 0, 0, interpolation);
To shrink an image, it will generally look best with #INTER_AREA interpolation, whereas to
enlarge an image, it will generally look best with c#INTER_CUBIC (slow) or #INTER_LINEAR
(faster but still looks OK).
// specify fx and fy and let the function compute the destination image size.
resize(src, dst, Size(), 0.5, 0.5, interpolation);
src
- input image.dst
- output image; it has the size dsize (when it is non-zero) or the size computed from
src.size(), fx, and fy; the type of dst is the same as of src.dsize
- output image size; if it equals zero, it is computed as:
Either dsize or both fx and fy must be non-zero. \[\texttt{dsize = Size(round(fx*src.cols), round(fy*src.rows))}\]
fx
- scale factor along the horizontal axis; when it equals 0, it is computed as
\[\texttt{(double)dsize.width/src.cols}\]
fy
- scale factor along the vertical axis; when it equals 0, it is computed as
\[\texttt{(double)dsize.height/src.rows}\]
interpolation
- interpolation method, see #InterpolationFlags
warpAffine, warpPerspective, remap
resize
@Namespace(value="cv")
public static void resize(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Size dsize)
resize
@Namespace(value="cv")
public static void resize(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
Size dsize,
double fx,
double fy,
int interpolation)
resize
@Namespace(value="cv")
public static void resize(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
Size dsize)
resize
@Namespace(value="cv")
public static void resize(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
Size dsize,
double fx,
double fy,
int interpolation)
resize
@Namespace(value="cv")
public static void resize(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
Size dsize)
warpAffine
@Namespace(value="cv")
public static void warpAffine(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Mat M,
@ByVal
Size dsize,
int flags,
int borderMode,
@Const @ByRef(nullValue="cv::Scalar()")
Scalar borderValue)
\[\texttt{dst} (x,y) = \texttt{src} ( \texttt{M} _{11} x + \texttt{M} _{12} y + \texttt{M} _{13}, \texttt{M} _{21} x + \texttt{M} _{22} y + \texttt{M} _{23})\]
src
- input image.dst
- output image that has the size dsize and the same type as src .M
- 2\times 3
transformation matrix.dsize
- size of the output image.flags
- combination of interpolation methods (see #InterpolationFlags) and the optional
flag #WARP_INVERSE_MAP that means that M is the inverse transformation (
\texttt{dst}\rightarrow\texttt{src}
).borderMode
- pixel extrapolation method (see #BorderTypes); when
borderMode=#BORDER_TRANSPARENT, it means that the pixels in the destination image corresponding to
the "outliers" in the source image are not modified by the function.borderValue
- value used in case of a constant border; by default, it is 0.
warpPerspective, resize, remap, getRectSubPix, transform
warpAffine
@Namespace(value="cv")
public static void warpAffine(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Mat M,
@ByVal
Size dsize)
warpAffine
@Namespace(value="cv")
public static void warpAffine(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
UMat M,
@ByVal
Size dsize,
int flags,
int borderMode,
@Const @ByRef(nullValue="cv::Scalar()")
Scalar borderValue)
warpAffine
@Namespace(value="cv")
public static void warpAffine(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
UMat M,
@ByVal
Size dsize)
warpAffine
@Namespace(value="cv")
public static void warpAffine(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
GpuMat M,
@ByVal
Size dsize,
int flags,
int borderMode,
@Const @ByRef(nullValue="cv::Scalar()")
Scalar borderValue)
warpAffine
@Namespace(value="cv")
public static void warpAffine(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
GpuMat M,
@ByVal
Size dsize)
warpPerspective
@Namespace(value="cv")
public static void warpPerspective(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Mat M,
@ByVal
Size dsize,
int flags,
int borderMode,
@Const @ByRef(nullValue="cv::Scalar()")
Scalar borderValue)
\[\texttt{dst} (x,y) = \texttt{src} \left ( \frac{M_{11} x + M_{12} y + M_{13}}{M_{31} x + M_{32} y + M_{33}} ,
\frac{M_{21} x + M_{22} y + M_{23}}{M_{31} x + M_{32} y + M_{33}} \right )\]
src
- input image.dst
- output image that has the size dsize and the same type as src .M
- 3\times 3
transformation matrix.dsize
- size of the output image.flags
- combination of interpolation methods (#INTER_LINEAR or #INTER_NEAREST) and the
optional flag #WARP_INVERSE_MAP, that sets M as the inverse transformation (
\texttt{dst}\rightarrow\texttt{src}
).borderMode
- pixel extrapolation method (#BORDER_CONSTANT or #BORDER_REPLICATE).borderValue
- value used in case of a constant border; by default, it equals 0.
warpAffine, resize, remap, getRectSubPix, perspectiveTransform
warpPerspective
@Namespace(value="cv")
public static void warpPerspective(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Mat M,
@ByVal
Size dsize)
warpPerspective
@Namespace(value="cv")
public static void warpPerspective(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
UMat M,
@ByVal
Size dsize,
int flags,
int borderMode,
@Const @ByRef(nullValue="cv::Scalar()")
Scalar borderValue)
warpPerspective
@Namespace(value="cv")
public static void warpPerspective(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
UMat M,
@ByVal
Size dsize)
warpPerspective
@Namespace(value="cv")
public static void warpPerspective(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
GpuMat M,
@ByVal
Size dsize,
int flags,
int borderMode,
@Const @ByRef(nullValue="cv::Scalar()")
Scalar borderValue)
warpPerspective
@Namespace(value="cv")
public static void warpPerspective(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
GpuMat M,
@ByVal
Size dsize)
remap
@Namespace(value="cv")
public static void remap(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Mat map1,
@ByVal
Mat map2,
int interpolation,
int borderMode,
@Const @ByRef(nullValue="cv::Scalar()")
Scalar borderValue)
\[\texttt{dst} (x,y) = \texttt{src} (map_x(x,y),map_y(x,y))\]
map_x
and map_y
can be encoded as separate floating-point maps
in map_1
and map_2
respectively, or interleaved floating-point maps of (x,y)
in
map_1
, or fixed-point maps created by using convertMaps. The reason you might want to
convert from floating to fixed-point representations of a map is that they can yield much faster
(\~2x) remapping operations. In the converted case, map_1
contains pairs (cvFloor(x),
cvFloor(y)) and map_2
contains indices in a table of interpolation coefficients.
src
- Source image.dst
- Destination image. It has the same size as map1 and the same type as src .map1
- The first map of either (x,y) points or just x values having the type CV_16SC2 ,
CV_32FC1, or CV_32FC2. See convertMaps for details on converting a floating point
representation to fixed-point for speed.map2
- The second map of y values having the type CV_16UC1, CV_32FC1, or none (empty map
if map1 is (x,y) points), respectively.interpolation
- Interpolation method (see #InterpolationFlags). The method #INTER_AREA is
not supported by this function.borderMode
- Pixel extrapolation method (see #BorderTypes). When
borderMode=#BORDER_TRANSPARENT, it means that the pixels in the destination image that
corresponds to the "outliers" in the source image are not modified by the function.borderValue
- Value used in case of a constant border. By default, it is 0.
\note
Due to current implementation limitations the size of an input and output images should be less than 32767x32767.
remap
@Namespace(value="cv")
public static void remap(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Mat map1,
@ByVal
Mat map2,
int interpolation)
remap
@Namespace(value="cv")
public static void remap(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
UMat map1,
@ByVal
UMat map2,
int interpolation,
int borderMode,
@Const @ByRef(nullValue="cv::Scalar()")
Scalar borderValue)
remap
@Namespace(value="cv")
public static void remap(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
UMat map1,
@ByVal
UMat map2,
int interpolation)
remap
@Namespace(value="cv")
public static void remap(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
GpuMat map1,
@ByVal
GpuMat map2,
int interpolation,
int borderMode,
@Const @ByRef(nullValue="cv::Scalar()")
Scalar borderValue)
remap
@Namespace(value="cv")
public static void remap(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
GpuMat map1,
@ByVal
GpuMat map2,
int interpolation)
convertMaps
@Namespace(value="cv")
public static void convertMaps(@ByVal
Mat map1,
@ByVal
Mat map2,
@ByVal
Mat dstmap1,
@ByVal
Mat dstmap2,
int dstmap1type,
@Cast(value="bool")
boolean nninterpolation)
\rightarrow
(dstmap1.type(), dstmap2.type()) ) are
supported:
\texttt{(CV_32FC1, CV_32FC1)} \rightarrow \texttt{(CV_16SC2, CV_16UC1)}
. This is the
most frequently used conversion operation, in which the original floating-point maps (see remap )
are converted to a more compact and much faster fixed-point representation. The first output array
contains the rounded coordinates and the second array (created only when nninterpolation=false )
contains indices in the interpolation tables.
\texttt{(CV_32FC2)} \rightarrow \texttt{(CV_16SC2, CV_16UC1)}
. The same as above but
the original maps are stored in one 2-channel matrix.
map1
- The first input map of type CV_16SC2, CV_32FC1, or CV_32FC2 .map2
- The second input map of type CV_16UC1, CV_32FC1, or none (empty matrix),
respectively.dstmap1
- The first output map that has the type dstmap1type and the same size as src .dstmap2
- The second output map.dstmap1type
- Type of the first output map that should be CV_16SC2, CV_32FC1, or
CV_32FC2 .nninterpolation
- Flag indicating whether the fixed-point maps are used for the
nearest-neighbor or for a more complex interpolation.
remap, undistort, initUndistortRectifyMap
convertMaps
@Namespace(value="cv")
public static void convertMaps(@ByVal
Mat map1,
@ByVal
Mat map2,
@ByVal
Mat dstmap1,
@ByVal
Mat dstmap2,
int dstmap1type)
convertMaps
@Namespace(value="cv")
public static void convertMaps(@ByVal
UMat map1,
@ByVal
UMat map2,
@ByVal
UMat dstmap1,
@ByVal
UMat dstmap2,
int dstmap1type,
@Cast(value="bool")
boolean nninterpolation)
convertMaps
@Namespace(value="cv")
public static void convertMaps(@ByVal
UMat map1,
@ByVal
UMat map2,
@ByVal
UMat dstmap1,
@ByVal
UMat dstmap2,
int dstmap1type)
convertMaps
@Namespace(value="cv")
public static void convertMaps(@ByVal
GpuMat map1,
@ByVal
GpuMat map2,
@ByVal
GpuMat dstmap1,
@ByVal
GpuMat dstmap2,
int dstmap1type,
@Cast(value="bool")
boolean nninterpolation)
convertMaps
@Namespace(value="cv")
public static void convertMaps(@ByVal
GpuMat map1,
@ByVal
GpuMat map2,
@ByVal
GpuMat dstmap1,
@ByVal
GpuMat dstmap2,
int dstmap1type)
getRotationMatrix2D
@Namespace(value="cv")
@ByVal
public static Mat getRotationMatrix2D(@ByVal
Point2f center,
double angle,
double scale)
\[\begin{bmatrix} \alpha & \beta & (1- \alpha ) \cdot \texttt{center.x} - \beta \cdot \texttt{center.y} \\ - \beta & \alpha & \beta \cdot \texttt{center.x} + (1- \alpha ) \cdot \texttt{center.y} \end{bmatrix}\]
\[\begin{array}{l} \alpha = \texttt{scale} \cdot \cos \texttt{angle} , \\ \beta = \texttt{scale} \cdot \sin \texttt{angle} \end{array}\]
center
- Center of the rotation in the source image.angle
- Rotation angle in degrees. Positive values mean counter-clockwise rotation (the
coordinate origin is assumed to be the top-left corner).scale
- Isotropic scale factor.
getAffineTransform, warpAffine, transform
getRotationMatrix2D_
@Namespace(value="cv")
@ByVal
@Cast(value="cv::Matx23d*")
public static DoublePointer getRotationMatrix2D_(@ByVal
Point2f center,
double angle,
double scale)
getRotationMatrix2D
getAffineTransform
@Namespace(value="cv")
@ByVal
public static Mat getAffineTransform(@Const
Point2f src,
@Const
Point2f dst)
2 \times 3
matrix of an affine transform so that:
\[\begin{bmatrix} x'_i \\ y'_i \end{bmatrix} = \texttt{map_matrix} \cdot \begin{bmatrix} x_i \\ y_i \\ 1 \end{bmatrix}\]
\[dst(i)=(x'_i,y'_i), src(i)=(x_i, y_i), i=0,1,2\]
src
- Coordinates of triangle vertices in the source image.dst
- Coordinates of the corresponding triangle vertices in the destination image.
warpAffine, transform
invertAffineTransform
@Namespace(value="cv")
public static void invertAffineTransform(@ByVal
Mat M,
@ByVal
Mat iM)
2 \times 3
matrix M:
\[\begin{bmatrix} a_{11} & a_{12} & b_1 \\ a_{21} & a_{22} & b_2 \end{bmatrix}\]
2 \times 3
matrix of the same type as M.
M
- Original affine transformation.iM
- Output reverse affine transformation.
invertAffineTransform
@Namespace(value="cv")
public static void invertAffineTransform(@ByVal
UMat M,
@ByVal
UMat iM)
invertAffineTransform
@Namespace(value="cv")
public static void invertAffineTransform(@ByVal
GpuMat M,
@ByVal
GpuMat iM)
getPerspectiveTransform
@Namespace(value="cv")
@ByVal
public static Mat getPerspectiveTransform(@ByVal
Mat src,
@ByVal
Mat dst,
int solveMethod)
3 \times 3
matrix of a perspective transform so that:
\[\begin{bmatrix} t_i x'_i \\ t_i y'_i \\ t_i \end{bmatrix} = \texttt{map_matrix} \cdot \begin{bmatrix} x_i \\ y_i \\ 1 \end{bmatrix}\]
\[dst(i)=(x'_i,y'_i), src(i)=(x_i, y_i), i=0,1,2,3\]
src
- Coordinates of quadrangle vertices in the source image.dst
- Coordinates of the corresponding quadrangle vertices in the destination image.solveMethod
- method passed to cv::solve (#DecompTypes)
findHomography, warpPerspective, perspectiveTransform
getPerspectiveTransform
@Namespace(value="cv")
@ByVal
public static Mat getPerspectiveTransform(@ByVal
Mat src,
@ByVal
Mat dst)
getPerspectiveTransform
@Namespace(value="cv")
@ByVal
public static Mat getPerspectiveTransform(@ByVal
UMat src,
@ByVal
UMat dst,
int solveMethod)
getPerspectiveTransform
@Namespace(value="cv")
@ByVal
public static Mat getPerspectiveTransform(@ByVal
UMat src,
@ByVal
UMat dst)
getPerspectiveTransform
@Namespace(value="cv")
@ByVal
public static Mat getPerspectiveTransform(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int solveMethod)
getPerspectiveTransform
@Namespace(value="cv")
@ByVal
public static Mat getPerspectiveTransform(@ByVal
GpuMat src,
@ByVal
GpuMat dst)
getPerspectiveTransform
@Namespace(value="cv")
@ByVal
public static Mat getPerspectiveTransform(@Const
Point2f src,
@Const
Point2f dst,
int solveMethod)
getPerspectiveTransform
@Namespace(value="cv")
@ByVal
public static Mat getPerspectiveTransform(@Const
Point2f src,
@Const
Point2f dst)
getAffineTransform
@Namespace(value="cv")
@ByVal
public static Mat getAffineTransform(@ByVal
Mat src,
@ByVal
Mat dst)
getAffineTransform
@Namespace(value="cv")
@ByVal
public static Mat getAffineTransform(@ByVal
UMat src,
@ByVal
UMat dst)
getAffineTransform
@Namespace(value="cv")
@ByVal
public static Mat getAffineTransform(@ByVal
GpuMat src,
@ByVal
GpuMat dst)
getRectSubPix
@Namespace(value="cv")
public static void getRectSubPix(@ByVal
Mat image,
@ByVal
Size patchSize,
@ByVal
Point2f center,
@ByVal
Mat patch,
int patchType)
\[patch(x, y) = src(x + \texttt{center.x} - ( \texttt{dst.cols} -1)*0.5, y + \texttt{center.y} - ( \texttt{dst.rows} -1)*0.5)\]
image
- Source image.patchSize
- Size of the extracted patch.center
- Floating point coordinates of the center of the extracted rectangle within the
source image. The center must be inside the image.patch
- Extracted patch that has the size patchSize and the same number of channels as src .patchType
- Depth of the extracted pixels. By default, they have the same depth as src .
warpAffine, warpPerspective
getRectSubPix
@Namespace(value="cv")
public static void getRectSubPix(@ByVal
Mat image,
@ByVal
Size patchSize,
@ByVal
Point2f center,
@ByVal
Mat patch)
getRectSubPix
@Namespace(value="cv")
public static void getRectSubPix(@ByVal
UMat image,
@ByVal
Size patchSize,
@ByVal
Point2f center,
@ByVal
UMat patch,
int patchType)
getRectSubPix
@Namespace(value="cv")
public static void getRectSubPix(@ByVal
UMat image,
@ByVal
Size patchSize,
@ByVal
Point2f center,
@ByVal
UMat patch)
getRectSubPix
@Namespace(value="cv")
public static void getRectSubPix(@ByVal
GpuMat image,
@ByVal
Size patchSize,
@ByVal
Point2f center,
@ByVal
GpuMat patch,
int patchType)
getRectSubPix
@Namespace(value="cv")
public static void getRectSubPix(@ByVal
GpuMat image,
@ByVal
Size patchSize,
@ByVal
Point2f center,
@ByVal
GpuMat patch)
logPolar
@Namespace(value="cv")
public static void logPolar(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Point2f center,
double M,
int flags)
\[\begin{array}{l}
dst( \rho , \phi ) = src(x,y) \\
dst.size() \leftarrow src.size()
\end{array}\]
\[\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}\]
\[\begin{array}{l}
M = src.cols / log_e(maxRadius) \\
Kangle = src.rows / 2\Pi \\
\end{array}\]
src
- Source imagedst
- Destination image. It will have same size and type as src.center
- The transformation center; where the output precision is maximalM
- Magnitude scale parameter. It determines the radius of the bounding circle to transform too.flags
- A combination of interpolation methods, see #InterpolationFlags
\endinternal
logPolar
@Namespace(value="cv")
public static void logPolar(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
Point2f center,
double M,
int flags)
logPolar
@Namespace(value="cv")
public static void logPolar(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
Point2f center,
double M,
int flags)
linearPolar
@Namespace(value="cv")
public static void linearPolar(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Point2f center,
double maxRadius,
int flags)
\[\begin{array}{l}
dst( \rho , \phi ) = src(x,y) \\
dst.size() \leftarrow src.size()
\end{array}\]
\[\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}\]
\[\begin{array}{l}
Kx = src.cols / maxRadius \\
Ky = src.rows / 2\Pi
\end{array}\]
src
- Source imagedst
- Destination image. It will have same size and type as src.center
- The transformation center;maxRadius
- The radius of the bounding circle to transform. It determines the inverse magnitude scale parameter too.flags
- A combination of interpolation methods, see #InterpolationFlags
\endinternal
linearPolar
@Namespace(value="cv")
public static void linearPolar(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
Point2f center,
double maxRadius,
int flags)
linearPolar
@Namespace(value="cv")
public static void linearPolar(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
Point2f center,
double maxRadius,
int flags)
warpPolar
@Namespace(value="cv")
public static void warpPolar(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Size dsize,
@ByVal
Point2f center,
double maxRadius,
int flags)
\[
dst(\rho , \phi ) = src(x,y)
\]
\[
\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.
\end{array}
\]}
{@code \[
\begin{array}{l}
Kangle = dsize.height / 2\Pi \\
Klin = dsize.width / maxRadius \\
Klog = dsize.width / log_e(maxRadius) \\
\end{array}
\]}
{@code \[\begin{array}{l}
dsize.area \leftarrow (maxRadius^2 \cdot \Pi) \\
dsize.width = \texttt{cvRound}(maxRadius) \\
dsize.height = \texttt{cvRound}(maxRadius \cdot \Pi) \\
\end{array}\]}
{@code \[\begin{array}{l}
dsize.height = \texttt{cvRound}(dsize.width \cdot \Pi) \\
\end{array}
\]}
src
- Source image.dst
- Destination image. It will have same type as src.dsize
- The destination image size (see description for valid options).center
- The transformation center.maxRadius
- The radius of the bounding circle to transform. It determines the inverse magnitude scale parameter too.flags
- A combination of interpolation methods, #InterpolationFlags + #WarpPolarMode.
- Add #WARP_POLAR_LINEAR to select linear polar mapping (default)
- Add #WARP_POLAR_LOG to select semilog polar mapping
- Add #WARP_INVERSE_MAP for reverse mapping.
\note
- The function can not operate in-place.
- To calculate magnitude and angle in degrees #cartToPolar is used internally thus angles are measured from 0 to 360 with accuracy about 0.3 degrees.
- This function uses #remap. Due to current implementation limitations the size of an input and output images should be less than 32767x32767.
cv::remap
warpPolar
@Namespace(value="cv")
public static void warpPolar(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
Size dsize,
@ByVal
Point2f center,
double maxRadius,
int flags)
warpPolar
@Namespace(value="cv")
public static void warpPolar(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
Size dsize,
@ByVal
Point2f center,
double maxRadius,
int flags)
integral
@Namespace(value="cv")
public static void integral(@ByVal
Mat src,
@ByVal
Mat sum,
int sdepth)
integral
@Namespace(value="cv")
public static void integral(@ByVal
UMat src,
@ByVal
UMat sum,
int sdepth)
integral
@Namespace(value="cv")
public static void integral(@ByVal
GpuMat src,
@ByVal
GpuMat sum,
int sdepth)
integral2
@Namespace(value="cv")
@Name(value="integral")
public static void integral2(@ByVal
Mat src,
@ByVal
Mat sum,
@ByVal
Mat sqsum,
int sdepth,
int sqdepth)
integral2
@Namespace(value="cv")
@Name(value="integral")
public static void integral2(@ByVal
Mat src,
@ByVal
Mat sum,
@ByVal
Mat sqsum)
integral2
@Namespace(value="cv")
@Name(value="integral")
public static void integral2(@ByVal
UMat src,
@ByVal
UMat sum,
@ByVal
UMat sqsum,
int sdepth,
int sqdepth)
integral2
@Namespace(value="cv")
@Name(value="integral")
public static void integral2(@ByVal
UMat src,
@ByVal
UMat sum,
@ByVal
UMat sqsum)
integral2
@Namespace(value="cv")
@Name(value="integral")
public static void integral2(@ByVal
GpuMat src,
@ByVal
GpuMat sum,
@ByVal
GpuMat sqsum,
int sdepth,
int sqdepth)
integral2
@Namespace(value="cv")
@Name(value="integral")
public static void integral2(@ByVal
GpuMat src,
@ByVal
GpuMat sum,
@ByVal
GpuMat sqsum)
integral3
@Namespace(value="cv")
@Name(value="integral")
public static void integral3(@ByVal
Mat src,
@ByVal
Mat sum,
@ByVal
Mat sqsum,
@ByVal
Mat tilted,
int sdepth,
int sqdepth)
\[\texttt{sum} (X,Y) = \sum _{x<X,y<Y} \texttt{image} (x,y)\]
\[\texttt{sqsum} (X,Y) = \sum _{x<X,y<Y} \texttt{image} (x,y)^2\]
\[\texttt{tilted} (X,Y) = \sum _{y<Y,abs(x-X+1) \leq Y-y-1} \texttt{image} (x,y)\]
\[\sum _{x_1 \leq x < x_2, \, y_1 \leq y < y_2} \texttt{image} (x,y) = \texttt{sum} (x_2,y_2)- \texttt{sum} (x_1,y_2)- \texttt{sum} (x_2,y_1)+ \texttt{sum} (x_1,y_1)\]
src
- input image as W \times H
, 8-bit or floating-point (32f or 64f).sum
- integral image as (W+1)\times (H+1)
, 32-bit integer or floating-point (32f or 64f).sqsum
- integral image for squared pixel values; it is (W+1)\times (H+1)
, double-precision
floating-point (64f) array.tilted
- integral for the image rotated by 45 degrees; it is (W+1)\times (H+1)
array with
the same data type as sum.sdepth
- desired depth of the integral and the tilted integral images, CV_32S, CV_32F, or
CV_64F.sqdepth
- desired depth of the integral image of squared pixel values, CV_32F or CV_64F.
integral3
@Namespace(value="cv")
@Name(value="integral")
public static void integral3(@ByVal
Mat src,
@ByVal
Mat sum,
@ByVal
Mat sqsum,
@ByVal
Mat tilted)
integral3
@Namespace(value="cv")
@Name(value="integral")
public static void integral3(@ByVal
UMat src,
@ByVal
UMat sum,
@ByVal
UMat sqsum,
@ByVal
UMat tilted,
int sdepth,
int sqdepth)
integral3
@Namespace(value="cv")
@Name(value="integral")
public static void integral3(@ByVal
UMat src,
@ByVal
UMat sum,
@ByVal
UMat sqsum,
@ByVal
UMat tilted)
integral3
@Namespace(value="cv")
@Name(value="integral")
public static void integral3(@ByVal
GpuMat src,
@ByVal
GpuMat sum,
@ByVal
GpuMat sqsum,
@ByVal
GpuMat tilted,
int sdepth,
int sqdepth)
integral3
@Namespace(value="cv")
@Name(value="integral")
public static void integral3(@ByVal
GpuMat src,
@ByVal
GpuMat sum,
@ByVal
GpuMat sqsum,
@ByVal
GpuMat tilted)
accumulate
@Namespace(value="cv")
public static void accumulate(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat mask)
\[\texttt{dst} (x,y) \leftarrow \texttt{dst} (x,y) + \texttt{src} (x,y) \quad \text{if} \quad \texttt{mask} (x,y) \ne 0\]
src
- Input image of type CV_8UC(n), CV_16UC(n), CV_32FC(n) or CV_64FC(n), where n is a positive integer.dst
- %Accumulator image with the same number of channels as input image, and a depth of CV_32F or CV_64F.mask
- Optional operation mask.
accumulateSquare, accumulateProduct, accumulateWeighted
accumulate
@Namespace(value="cv")
public static void accumulate(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat mask)
accumulate
@Namespace(value="cv")
public static void accumulate(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat mask)
accumulate
@Namespace(value="cv")
public static void accumulate(@ByVal
GpuMat src,
@ByVal
GpuMat dst)
accumulateSquare
@Namespace(value="cv")
public static void accumulateSquare(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat mask)
\[\texttt{dst} (x,y) \leftarrow \texttt{dst} (x,y) + \texttt{src} (x,y)^2 \quad \text{if} \quad \texttt{mask} (x,y) \ne 0\]
src
- Input image as 1- or 3-channel, 8-bit or 32-bit floating point.dst
- %Accumulator image with the same number of channels as input image, 32-bit or 64-bit
floating-point.mask
- Optional operation mask.
accumulateSquare, accumulateProduct, accumulateWeighted
accumulateSquare
@Namespace(value="cv")
public static void accumulateSquare(@ByVal
Mat src,
@ByVal
Mat dst)
accumulateSquare
@Namespace(value="cv")
public static void accumulateSquare(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat mask)
accumulateSquare
@Namespace(value="cv")
public static void accumulateSquare(@ByVal
UMat src,
@ByVal
UMat dst)
accumulateSquare
@Namespace(value="cv")
public static void accumulateSquare(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat mask)
accumulateSquare
@Namespace(value="cv")
public static void accumulateSquare(@ByVal
GpuMat src,
@ByVal
GpuMat dst)
accumulateProduct
@Namespace(value="cv")
public static void accumulateProduct(@ByVal
Mat src1,
@ByVal
Mat src2,
@ByVal
Mat dst,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat mask)
\[\texttt{dst} (x,y) \leftarrow \texttt{dst} (x,y) + \texttt{src1} (x,y) \cdot \texttt{src2} (x,y) \quad \text{if} \quad \texttt{mask} (x,y) \ne 0\]
src1
- First input image, 1- or 3-channel, 8-bit or 32-bit floating point.src2
- Second input image of the same type and the same size as src1 .dst
- %Accumulator image with the same number of channels as input images, 32-bit or 64-bit
floating-point.mask
- Optional operation mask.
accumulate, accumulateSquare, accumulateWeighted
accumulateProduct
@Namespace(value="cv")
public static void accumulateProduct(@ByVal
Mat src1,
@ByVal
Mat src2,
@ByVal
Mat dst)
accumulateProduct
@Namespace(value="cv")
public static void accumulateProduct(@ByVal
UMat src1,
@ByVal
UMat src2,
@ByVal
UMat dst,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat mask)
accumulateProduct
@Namespace(value="cv")
public static void accumulateProduct(@ByVal
UMat src1,
@ByVal
UMat src2,
@ByVal
UMat dst)
accumulateProduct
@Namespace(value="cv")
public static void accumulateProduct(@ByVal
GpuMat src1,
@ByVal
GpuMat src2,
@ByVal
GpuMat dst,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat mask)
accumulateProduct
@Namespace(value="cv")
public static void accumulateProduct(@ByVal
GpuMat src1,
@ByVal
GpuMat src2,
@ByVal
GpuMat dst)
accumulateWeighted
@Namespace(value="cv")
public static void accumulateWeighted(@ByVal
Mat src,
@ByVal
Mat dst,
double alpha,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat mask)
\[\texttt{dst} (x,y) \leftarrow (1- \texttt{alpha} ) \cdot \texttt{dst} (x,y) + \texttt{alpha} \cdot \texttt{src} (x,y) \quad \text{if} \quad \texttt{mask} (x,y) \ne 0\]
src
- Input image as 1- or 3-channel, 8-bit or 32-bit floating point.dst
- %Accumulator image with the same number of channels as input image, 32-bit or 64-bit
floating-point.alpha
- Weight of the input image.mask
- Optional operation mask.
accumulate, accumulateSquare, accumulateProduct
accumulateWeighted
@Namespace(value="cv")
public static void accumulateWeighted(@ByVal
Mat src,
@ByVal
Mat dst,
double alpha)
accumulateWeighted
@Namespace(value="cv")
public static void accumulateWeighted(@ByVal
UMat src,
@ByVal
UMat dst,
double alpha,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat mask)
accumulateWeighted
@Namespace(value="cv")
public static void accumulateWeighted(@ByVal
UMat src,
@ByVal
UMat dst,
double alpha)
accumulateWeighted
@Namespace(value="cv")
public static void accumulateWeighted(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
double alpha,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat mask)
accumulateWeighted
@Namespace(value="cv")
public static void accumulateWeighted(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
double alpha)
phaseCorrelate
@Namespace(value="cv")
@ByVal
public static Point2d phaseCorrelate(@ByVal
Mat src1,
@ByVal
Mat src2,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat window,
DoublePointer response)
where \[\mathbf{G}_a = \mathcal{F}\{src_1\}, \; \mathbf{G}_b = \mathcal{F}\{src_2\}\]
\mathcal{F}
is the forward DFT.
- It then computes the cross-power spectrum of each frequency domain array:
- Next the cross-correlation is converted back into the time domain via the inverse DFT:
\[R = \frac{ \mathbf{G}_a \mathbf{G}_b^*}{|\mathbf{G}_a \mathbf{G}_b^*|}\]
- Finally, it computes the peak location and computes a 5x5 weighted centroid around the peak to
achieve sub-pixel accuracy.
\[r = \mathcal{F}^{-1}\{R\}\]
- If non-zero, the response parameter is computed as the sum of the elements of r within the 5x5
centroid around the peak location. It is normalized to a maximum of 1 (meaning there is a single
peak) and will be smaller when there are multiple peaks.
\[(\Delta x, \Delta y) = \texttt{weightedCentroid} \{\arg \max_{(x, y)}\{r\}\}\]
src1
- Source floating point array (CV_32FC1 or CV_64FC1)src2
- Source floating point array (CV_32FC1 or CV_64FC1)window
- Floating point array with windowing coefficients to reduce edge effects (optional).response
- Signal power within the 5x5 centroid around the peak, between 0 and 1 (optional).dft, getOptimalDFTSize, idft, mulSpectrums createHanningWindow
phaseCorrelate
@Namespace(value="cv")
@ByVal
public static Point2d phaseCorrelate(@ByVal
Mat src1,
@ByVal
Mat src2)
phaseCorrelate
@Namespace(value="cv")
@ByVal
public static Point2d phaseCorrelate(@ByVal
Mat src1,
@ByVal
Mat src2,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat window,
DoubleBuffer response)
phaseCorrelate
@Namespace(value="cv")
@ByVal
public static Point2d phaseCorrelate(@ByVal
Mat src1,
@ByVal
Mat src2,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat window,
double[] response)
phaseCorrelate
@Namespace(value="cv")
@ByVal
public static Point2d phaseCorrelate(@ByVal
UMat src1,
@ByVal
UMat src2,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat window,
DoublePointer response)
phaseCorrelate
@Namespace(value="cv")
@ByVal
public static Point2d phaseCorrelate(@ByVal
UMat src1,
@ByVal
UMat src2)
phaseCorrelate
@Namespace(value="cv")
@ByVal
public static Point2d phaseCorrelate(@ByVal
UMat src1,
@ByVal
UMat src2,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat window,
DoubleBuffer response)
phaseCorrelate
@Namespace(value="cv")
@ByVal
public static Point2d phaseCorrelate(@ByVal
UMat src1,
@ByVal
UMat src2,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat window,
double[] response)
phaseCorrelate
@Namespace(value="cv")
@ByVal
public static Point2d phaseCorrelate(@ByVal
GpuMat src1,
@ByVal
GpuMat src2,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat window,
DoublePointer response)
phaseCorrelate
@Namespace(value="cv")
@ByVal
public static Point2d phaseCorrelate(@ByVal
GpuMat src1,
@ByVal
GpuMat src2)
phaseCorrelate
@Namespace(value="cv")
@ByVal
public static Point2d phaseCorrelate(@ByVal
GpuMat src1,
@ByVal
GpuMat src2,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat window,
DoubleBuffer response)
phaseCorrelate
@Namespace(value="cv")
@ByVal
public static Point2d phaseCorrelate(@ByVal
GpuMat src1,
@ByVal
GpuMat src2,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat window,
double[] response)
createHanningWindow
@Namespace(value="cv")
public static void createHanningWindow(@ByVal
Mat dst,
@ByVal
Size winSize,
int type)
// create hanning window of size 100x100 and type CV_32F
Mat hann;
createHanningWindow(hann, Size(100, 100), CV_32F);
dst
- Destination array to place Hann coefficients inwinSize
- The window size specifications (both width and height must be > 1)type
- Created array type
createHanningWindow
@Namespace(value="cv")
public static void createHanningWindow(@ByVal
UMat dst,
@ByVal
Size winSize,
int type)
createHanningWindow
@Namespace(value="cv")
public static void createHanningWindow(@ByVal
GpuMat dst,
@ByVal
Size winSize,
int type)
threshold
@Namespace(value="cv")
public static double threshold(@ByVal
Mat src,
@ByVal
Mat dst,
double thresh,
double maxval,
int type)
src
- input array (multiple-channel, 8-bit or 32-bit floating point).dst
- output array of the same size and type and the same number of channels as src.thresh
- threshold value.maxval
- maximum value to use with the #THRESH_BINARY and #THRESH_BINARY_INV thresholding
types.type
- thresholding type (see #ThresholdTypes).adaptiveThreshold, findContours, compare, min, max
threshold
@Namespace(value="cv")
public static double threshold(@ByVal
UMat src,
@ByVal
UMat dst,
double thresh,
double maxval,
int type)
threshold
@Namespace(value="cv")
public static double threshold(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
double thresh,
double maxval,
int type)
adaptiveThreshold
@Namespace(value="cv")
public static void adaptiveThreshold(@ByVal
Mat src,
@ByVal
Mat dst,
double maxValue,
int adaptiveMethod,
int thresholdType,
int blockSize,
double C)
- **THRESH_BINARY_INV**
\[dst(x,y) = \fork{\texttt{maxValue}}{if \(src(x,y) > T(x,y)\)}{0}{otherwise}\]
where \[dst(x,y) = \fork{0}{if \(src(x,y) > T(x,y)\)}{\texttt{maxValue}}{otherwise}\]
T(x,y)
is a threshold calculated individually for each pixel (see adaptiveMethod parameter).
src
- Source 8-bit single-channel image.dst
- Destination image of the same size and the same type as src.maxValue
- Non-zero value assigned to the pixels for which the condition is satisfiedadaptiveMethod
- Adaptive thresholding algorithm to use, see #AdaptiveThresholdTypes.
The #BORDER_REPLICATE | #BORDER_ISOLATED is used to process boundaries.thresholdType
- Thresholding type that must be either #THRESH_BINARY or #THRESH_BINARY_INV,
see #ThresholdTypes.blockSize
- Size of a pixel neighborhood that is used to calculate a threshold value for the
pixel: 3, 5, 7, and so on.C
- Constant subtracted from the mean or weighted mean (see the details below). Normally, it
is positive but may be zero or negative as well.
threshold, blur, GaussianBlur
adaptiveThreshold
@Namespace(value="cv")
public static void adaptiveThreshold(@ByVal
UMat src,
@ByVal
UMat dst,
double maxValue,
int adaptiveMethod,
int thresholdType,
int blockSize,
double C)
adaptiveThreshold
@Namespace(value="cv")
public static void adaptiveThreshold(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
double maxValue,
int adaptiveMethod,
int thresholdType,
int blockSize,
double C)
pyrDown
@Namespace(value="cv")
public static void pyrDown(@ByVal
Mat src,
@ByVal
Mat dst,
@Const @ByRef(nullValue="cv::Size()")
Size dstsize,
int borderType)
Size((src.cols+1)/2, (src.rows+1)/2)
, but in
any case, the following conditions should be satisfied:
\[\begin{array}{l} | \texttt{dstsize.width} *2-src.cols| \leq 2 \\ | \texttt{dstsize.height} *2-src.rows| \leq 2 \end{array}\]
\[\frac{1}{256} \begin{bmatrix} 1 & 4 & 6 & 4 & 1 \\ 4 & 16 & 24 & 16 & 4 \\ 6 & 24 & 36 & 24 & 6 \\ 4 & 16 & 24 & 16 & 4 \\ 1 & 4 & 6 & 4 & 1 \end{bmatrix}\]
src
- input image.dst
- output image; it has the specified size and the same type as src.dstsize
- size of the output image.borderType
- Pixel extrapolation method, see #BorderTypes (#BORDER_CONSTANT isn't supported)
pyrDown
@Namespace(value="cv")
public static void pyrDown(@ByVal
UMat src,
@ByVal
UMat dst,
@Const @ByRef(nullValue="cv::Size()")
Size dstsize,
int borderType)
pyrDown
@Namespace(value="cv")
public static void pyrDown(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@Const @ByRef(nullValue="cv::Size()")
Size dstsize,
int borderType)
pyrUp
@Namespace(value="cv")
public static void pyrUp(@ByVal
Mat src,
@ByVal
Mat dst,
@Const @ByRef(nullValue="cv::Size()")
Size dstsize,
int borderType)
Size(src.cols\*2, (src.rows\*2)
, but in any
case, the following conditions should be satisfied:
\[\begin{array}{l} | \texttt{dstsize.width} -src.cols*2| \leq ( \texttt{dstsize.width} \mod 2) \\ | \texttt{dstsize.height} -src.rows*2| \leq ( \texttt{dstsize.height} \mod 2) \end{array}\]
src
- input image.dst
- output image. It has the specified size and the same type as src .dstsize
- size of the output image.borderType
- Pixel extrapolation method, see #BorderTypes (only #BORDER_DEFAULT is supported)
pyrUp
@Namespace(value="cv")
public static void pyrUp(@ByVal
UMat src,
@ByVal
UMat dst,
@Const @ByRef(nullValue="cv::Size()")
Size dstsize,
int borderType)
pyrUp
@Namespace(value="cv")
public static void pyrUp(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@Const @ByRef(nullValue="cv::Size()")
Size dstsize,
int borderType)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
Mat src,
@ByVal
MatVector dst,
int maxlevel,
int borderType)
dst[0]==src
.
src
- Source image. Check pyrDown for the list of supported types.dst
- Destination vector of maxlevel+1 images of the same type as src. dst[0] will be the
same as src. dst[1] is the next pyramid layer, a smoothed and down-sized src, and so on.maxlevel
- 0-based index of the last (the smallest) pyramid layer. It must be non-negative.borderType
- Pixel extrapolation method, see #BorderTypes (#BORDER_CONSTANT isn't supported)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
Mat src,
@ByVal
MatVector dst,
int maxlevel)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
Mat src,
@ByVal
UMatVector dst,
int maxlevel,
int borderType)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
Mat src,
@ByVal
UMatVector dst,
int maxlevel)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
Mat src,
@ByVal
GpuMatVector dst,
int maxlevel,
int borderType)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
Mat src,
@ByVal
GpuMatVector dst,
int maxlevel)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
UMat src,
@ByVal
MatVector dst,
int maxlevel,
int borderType)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
UMat src,
@ByVal
MatVector dst,
int maxlevel)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
UMat src,
@ByVal
UMatVector dst,
int maxlevel,
int borderType)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
UMat src,
@ByVal
UMatVector dst,
int maxlevel)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
UMat src,
@ByVal
GpuMatVector dst,
int maxlevel,
int borderType)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
UMat src,
@ByVal
GpuMatVector dst,
int maxlevel)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
GpuMat src,
@ByVal
MatVector dst,
int maxlevel,
int borderType)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
GpuMat src,
@ByVal
MatVector dst,
int maxlevel)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
GpuMat src,
@ByVal
UMatVector dst,
int maxlevel,
int borderType)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
GpuMat src,
@ByVal
UMatVector dst,
int maxlevel)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
GpuMat src,
@ByVal
GpuMatVector dst,
int maxlevel,
int borderType)
buildPyramid
@Namespace(value="cv")
public static void buildPyramid(@ByVal
GpuMat src,
@ByVal
GpuMatVector dst,
int maxlevel)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
Mat mask,
@ByVal
Mat hist,
int dims,
@Const
IntPointer histSize,
@Cast(value="const float**")
PointerPointer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
images
- Source arrays. They all should have the same depth, CV_8U, CV_16U or CV_32F , and the same
size. Each of them can have an arbitrary number of channels.nimages
- Number of source images.channels
- List of the dims channels used to compute the histogram. The first array channels
are numerated from 0 to images[0].channels()-1 , the second array channels are counted from
images[0].channels() to images[0].channels() + images[1].channels()-1, and so on.mask
- Optional mask. If the matrix is not empty, it must be an 8-bit array of the same size
as images[i] . The non-zero mask elements mark the array elements counted in the histogram.hist
- Output histogram, which is a dense or sparse dims -dimensional array.dims
- Histogram dimensionality that must be positive and not greater than CV_MAX_DIMS
(equal to 32 in the current OpenCV version).histSize
- Array of histogram sizes in each dimension.ranges
- Array of the dims arrays of the histogram bin boundaries in each dimension. When the
histogram is uniform ( uniform =true), then for each dimension i it is enough to specify the lower
(inclusive) boundary L_0
of the 0-th histogram bin and the upper (exclusive) boundary
U_{\texttt{histSize}[i]-1}
for the last histogram bin histSize[i]-1 . That is, in case of a
uniform histogram each of ranges[i] is an array of 2 elements. When the histogram is not uniform (
uniform=false ), then each of ranges[i] contains histSize[i]+1 elements:
L_0, U_0=L_1, U_1=L_2, ..., U_{\texttt{histSize[i]}-2}=L_{\texttt{histSize[i]}-1}, U_{\texttt{histSize[i]}-1}
. The array elements, that are not between L_0
and U_{\texttt{histSize[i]}-1}
, are not
counted in the histogram.uniform
- Flag indicating whether the histogram is uniform or not (see above).accumulate
- Accumulation flag. If it is set, the histogram is not cleared in the beginning
when it is allocated. This feature enables you to compute a single histogram from several sets of
arrays, or to update the histogram in time.
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
Mat mask,
@ByVal
Mat hist,
int dims,
@Const
IntPointer histSize,
@Const @ByPtrPtr
FloatPointer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
Mat mask,
@ByVal
Mat hist,
int dims,
@Const
IntPointer histSize,
@Const @ByPtrPtr
FloatPointer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
Mat mask,
@ByVal
Mat hist,
int dims,
@Const
IntBuffer histSize,
@Const @ByPtrPtr
FloatBuffer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
Mat mask,
@ByVal
Mat hist,
int dims,
@Const
IntBuffer histSize,
@Const @ByPtrPtr
FloatBuffer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
Mat mask,
@ByVal
Mat hist,
int dims,
@Const
int[] histSize,
@Const @ByPtrPtr
float[] ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
Mat mask,
@ByVal
Mat hist,
int dims,
@Const
int[] histSize,
@Const @ByPtrPtr
float[] ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
UMat mask,
@ByVal
UMat hist,
int dims,
@Const
IntPointer histSize,
@Const @ByPtrPtr
FloatPointer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
UMat mask,
@ByVal
UMat hist,
int dims,
@Const
IntPointer histSize,
@Const @ByPtrPtr
FloatPointer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
UMat mask,
@ByVal
UMat hist,
int dims,
@Const
IntBuffer histSize,
@Const @ByPtrPtr
FloatBuffer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
UMat mask,
@ByVal
UMat hist,
int dims,
@Const
IntBuffer histSize,
@Const @ByPtrPtr
FloatBuffer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
UMat mask,
@ByVal
UMat hist,
int dims,
@Const
int[] histSize,
@Const @ByPtrPtr
float[] ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
UMat mask,
@ByVal
UMat hist,
int dims,
@Const
int[] histSize,
@Const @ByPtrPtr
float[] ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
GpuMat mask,
@ByVal
GpuMat hist,
int dims,
@Const
IntPointer histSize,
@Const @ByPtrPtr
FloatPointer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
GpuMat mask,
@ByVal
GpuMat hist,
int dims,
@Const
IntPointer histSize,
@Const @ByPtrPtr
FloatPointer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
GpuMat mask,
@ByVal
GpuMat hist,
int dims,
@Const
IntBuffer histSize,
@Const @ByPtrPtr
FloatBuffer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
GpuMat mask,
@ByVal
GpuMat hist,
int dims,
@Const
IntBuffer histSize,
@Const @ByPtrPtr
FloatBuffer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
GpuMat mask,
@ByVal
GpuMat hist,
int dims,
@Const
int[] histSize,
@Const @ByPtrPtr
float[] ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
GpuMat mask,
@ByVal
GpuMat hist,
int dims,
@Const
int[] histSize,
@Const @ByPtrPtr
float[] ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
Mat mask,
@ByRef
SparseMat hist,
int dims,
@Const
IntPointer histSize,
@Cast(value="const float**")
PointerPointer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
Mat mask,
@ByRef
SparseMat hist,
int dims,
@Const
IntPointer histSize,
@Const @ByPtrPtr
FloatPointer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
Mat mask,
@ByRef
SparseMat hist,
int dims,
@Const
IntPointer histSize,
@Const @ByPtrPtr
FloatPointer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
Mat mask,
@ByRef
SparseMat hist,
int dims,
@Const
IntBuffer histSize,
@Const @ByPtrPtr
FloatBuffer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
Mat mask,
@ByRef
SparseMat hist,
int dims,
@Const
IntBuffer histSize,
@Const @ByPtrPtr
FloatBuffer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
Mat mask,
@ByRef
SparseMat hist,
int dims,
@Const
int[] histSize,
@Const @ByPtrPtr
float[] ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
Mat mask,
@ByRef
SparseMat hist,
int dims,
@Const
int[] histSize,
@Const @ByPtrPtr
float[] ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
UMat mask,
@ByRef
SparseMat hist,
int dims,
@Const
IntPointer histSize,
@Const @ByPtrPtr
FloatPointer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
UMat mask,
@ByRef
SparseMat hist,
int dims,
@Const
IntPointer histSize,
@Const @ByPtrPtr
FloatPointer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
UMat mask,
@ByRef
SparseMat hist,
int dims,
@Const
IntBuffer histSize,
@Const @ByPtrPtr
FloatBuffer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
UMat mask,
@ByRef
SparseMat hist,
int dims,
@Const
IntBuffer histSize,
@Const @ByPtrPtr
FloatBuffer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
UMat mask,
@ByRef
SparseMat hist,
int dims,
@Const
int[] histSize,
@Const @ByPtrPtr
float[] ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
UMat mask,
@ByRef
SparseMat hist,
int dims,
@Const
int[] histSize,
@Const @ByPtrPtr
float[] ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
GpuMat mask,
@ByRef
SparseMat hist,
int dims,
@Const
IntPointer histSize,
@Const @ByPtrPtr
FloatPointer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
GpuMat mask,
@ByRef
SparseMat hist,
int dims,
@Const
IntPointer histSize,
@Const @ByPtrPtr
FloatPointer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
GpuMat mask,
@ByRef
SparseMat hist,
int dims,
@Const
IntBuffer histSize,
@Const @ByPtrPtr
FloatBuffer ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
GpuMat mask,
@ByRef
SparseMat hist,
int dims,
@Const
IntBuffer histSize,
@Const @ByPtrPtr
FloatBuffer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
GpuMat mask,
@ByRef
SparseMat hist,
int dims,
@Const
int[] histSize,
@Const @ByPtrPtr
float[] ranges,
@Cast(value="bool")
boolean uniform,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
GpuMat mask,
@ByRef
SparseMat hist,
int dims,
@Const
int[] histSize,
@Const @ByPtrPtr
float[] ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
MatVector images,
@StdVector
IntPointer channels,
@ByVal
Mat mask,
@ByVal
Mat hist,
@StdVector
IntPointer histSize,
@StdVector
FloatPointer ranges,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
MatVector images,
@StdVector
IntPointer channels,
@ByVal
Mat mask,
@ByVal
Mat hist,
@StdVector
IntPointer histSize,
@StdVector
FloatPointer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
UMatVector images,
@StdVector
IntBuffer channels,
@ByVal
Mat mask,
@ByVal
Mat hist,
@StdVector
IntBuffer histSize,
@StdVector
FloatBuffer ranges,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
UMatVector images,
@StdVector
IntBuffer channels,
@ByVal
Mat mask,
@ByVal
Mat hist,
@StdVector
IntBuffer histSize,
@StdVector
FloatBuffer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
GpuMatVector images,
@StdVector
int[] channels,
@ByVal
Mat mask,
@ByVal
Mat hist,
@StdVector
int[] histSize,
@StdVector
float[] ranges,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
GpuMatVector images,
@StdVector
int[] channels,
@ByVal
Mat mask,
@ByVal
Mat hist,
@StdVector
int[] histSize,
@StdVector
float[] ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
MatVector images,
@StdVector
IntPointer channels,
@ByVal
UMat mask,
@ByVal
UMat hist,
@StdVector
IntPointer histSize,
@StdVector
FloatPointer ranges,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
MatVector images,
@StdVector
IntPointer channels,
@ByVal
UMat mask,
@ByVal
UMat hist,
@StdVector
IntPointer histSize,
@StdVector
FloatPointer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
UMatVector images,
@StdVector
IntBuffer channels,
@ByVal
UMat mask,
@ByVal
UMat hist,
@StdVector
IntBuffer histSize,
@StdVector
FloatBuffer ranges,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
UMatVector images,
@StdVector
IntBuffer channels,
@ByVal
UMat mask,
@ByVal
UMat hist,
@StdVector
IntBuffer histSize,
@StdVector
FloatBuffer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
GpuMatVector images,
@StdVector
int[] channels,
@ByVal
UMat mask,
@ByVal
UMat hist,
@StdVector
int[] histSize,
@StdVector
float[] ranges,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
GpuMatVector images,
@StdVector
int[] channels,
@ByVal
UMat mask,
@ByVal
UMat hist,
@StdVector
int[] histSize,
@StdVector
float[] ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
MatVector images,
@StdVector
IntPointer channels,
@ByVal
GpuMat mask,
@ByVal
GpuMat hist,
@StdVector
IntPointer histSize,
@StdVector
FloatPointer ranges,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
MatVector images,
@StdVector
IntPointer channels,
@ByVal
GpuMat mask,
@ByVal
GpuMat hist,
@StdVector
IntPointer histSize,
@StdVector
FloatPointer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
UMatVector images,
@StdVector
IntBuffer channels,
@ByVal
GpuMat mask,
@ByVal
GpuMat hist,
@StdVector
IntBuffer histSize,
@StdVector
FloatBuffer ranges,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
UMatVector images,
@StdVector
IntBuffer channels,
@ByVal
GpuMat mask,
@ByVal
GpuMat hist,
@StdVector
IntBuffer histSize,
@StdVector
FloatBuffer ranges)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
GpuMatVector images,
@StdVector
int[] channels,
@ByVal
GpuMat mask,
@ByVal
GpuMat hist,
@StdVector
int[] histSize,
@StdVector
float[] ranges,
@Cast(value="bool")
boolean accumulate)
calcHist
@Namespace(value="cv")
public static void calcHist(@ByVal
GpuMatVector images,
@StdVector
int[] channels,
@ByVal
GpuMat mask,
@ByVal
GpuMat hist,
@StdVector
int[] histSize,
@StdVector
float[] ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
Mat hist,
@ByVal
Mat backProject,
@Cast(value="const float**")
PointerPointer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
images
- Source arrays. They all should have the same depth, CV_8U, CV_16U or CV_32F , and the same
size. Each of them can have an arbitrary number of channels.nimages
- Number of source images.channels
- The list of channels used to compute the back projection. The number of channels
must match the histogram dimensionality. The first array channels are numerated from 0 to
images[0].channels()-1 , the second array channels are counted from images[0].channels() to
images[0].channels() + images[1].channels()-1, and so on.hist
- Input histogram that can be dense or sparse.backProject
- Destination back projection array that is a single-channel array of the same
size and depth as images[0] .ranges
- Array of arrays of the histogram bin boundaries in each dimension. See #calcHist .scale
- Optional scale factor for the output back projection.uniform
- Flag indicating whether the histogram is uniform or not (see above).
calcHist, compareHist
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
Mat hist,
@ByVal
Mat backProject,
@Const @ByPtrPtr
FloatPointer ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
Mat hist,
@ByVal
Mat backProject,
@Const @ByPtrPtr
FloatPointer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
Mat hist,
@ByVal
Mat backProject,
@Const @ByPtrPtr
FloatBuffer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
Mat hist,
@ByVal
Mat backProject,
@Const @ByPtrPtr
FloatBuffer ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
Mat hist,
@ByVal
Mat backProject,
@Const @ByPtrPtr
float[] ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
Mat hist,
@ByVal
Mat backProject,
@Const @ByPtrPtr
float[] ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
UMat hist,
@ByVal
UMat backProject,
@Const @ByPtrPtr
FloatPointer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
UMat hist,
@ByVal
UMat backProject,
@Const @ByPtrPtr
FloatPointer ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
UMat hist,
@ByVal
UMat backProject,
@Const @ByPtrPtr
FloatBuffer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
UMat hist,
@ByVal
UMat backProject,
@Const @ByPtrPtr
FloatBuffer ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
UMat hist,
@ByVal
UMat backProject,
@Const @ByPtrPtr
float[] ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
UMat hist,
@ByVal
UMat backProject,
@Const @ByPtrPtr
float[] ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
GpuMat hist,
@ByVal
GpuMat backProject,
@Const @ByPtrPtr
FloatPointer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@ByVal
GpuMat hist,
@ByVal
GpuMat backProject,
@Const @ByPtrPtr
FloatPointer ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
GpuMat hist,
@ByVal
GpuMat backProject,
@Const @ByPtrPtr
FloatBuffer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@ByVal
GpuMat hist,
@ByVal
GpuMat backProject,
@Const @ByPtrPtr
FloatBuffer ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
GpuMat hist,
@ByVal
GpuMat backProject,
@Const @ByPtrPtr
float[] ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
int[] channels,
@ByVal
GpuMat hist,
@ByVal
GpuMat backProject,
@Const @ByPtrPtr
float[] ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@Const @ByRef
SparseMat hist,
@ByVal
Mat backProject,
@Cast(value="const float**")
PointerPointer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@Const @ByRef
SparseMat hist,
@ByVal
Mat backProject,
@Const @ByPtrPtr
FloatPointer ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@Const @ByRef
SparseMat hist,
@ByVal
Mat backProject,
@Const @ByPtrPtr
FloatPointer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@Const @ByRef
SparseMat hist,
@ByVal
Mat backProject,
@Const @ByPtrPtr
FloatBuffer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@Const @ByRef
SparseMat hist,
@ByVal
Mat backProject,
@Const @ByPtrPtr
FloatBuffer ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
int[] channels,
@Const @ByRef
SparseMat hist,
@ByVal
Mat backProject,
@Const @ByPtrPtr
float[] ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
int[] channels,
@Const @ByRef
SparseMat hist,
@ByVal
Mat backProject,
@Const @ByPtrPtr
float[] ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@Const @ByRef
SparseMat hist,
@ByVal
UMat backProject,
@Const @ByPtrPtr
FloatPointer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@Const @ByRef
SparseMat hist,
@ByVal
UMat backProject,
@Const @ByPtrPtr
FloatPointer ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@Const @ByRef
SparseMat hist,
@ByVal
UMat backProject,
@Const @ByPtrPtr
FloatBuffer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@Const @ByRef
SparseMat hist,
@ByVal
UMat backProject,
@Const @ByPtrPtr
FloatBuffer ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
int[] channels,
@Const @ByRef
SparseMat hist,
@ByVal
UMat backProject,
@Const @ByPtrPtr
float[] ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
int[] channels,
@Const @ByRef
SparseMat hist,
@ByVal
UMat backProject,
@Const @ByPtrPtr
float[] ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@Const @ByRef
SparseMat hist,
@ByVal
GpuMat backProject,
@Const @ByPtrPtr
FloatPointer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntPointer channels,
@Const @ByRef
SparseMat hist,
@ByVal
GpuMat backProject,
@Const @ByPtrPtr
FloatPointer ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@Const @ByRef
SparseMat hist,
@ByVal
GpuMat backProject,
@Const @ByPtrPtr
FloatBuffer ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
IntBuffer channels,
@Const @ByRef
SparseMat hist,
@ByVal
GpuMat backProject,
@Const @ByPtrPtr
FloatBuffer ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
int[] channels,
@Const @ByRef
SparseMat hist,
@ByVal
GpuMat backProject,
@Const @ByPtrPtr
float[] ranges,
double scale,
@Cast(value="bool")
boolean uniform)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@Const
Mat images,
int nimages,
@Const
int[] channels,
@Const @ByRef
SparseMat hist,
@ByVal
GpuMat backProject,
@Const @ByPtrPtr
float[] ranges)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@ByVal
MatVector images,
@StdVector
IntPointer channels,
@ByVal
Mat hist,
@ByVal
Mat dst,
@StdVector
FloatPointer ranges,
double scale)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@ByVal
UMatVector images,
@StdVector
IntBuffer channels,
@ByVal
Mat hist,
@ByVal
Mat dst,
@StdVector
FloatBuffer ranges,
double scale)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@ByVal
GpuMatVector images,
@StdVector
int[] channels,
@ByVal
Mat hist,
@ByVal
Mat dst,
@StdVector
float[] ranges,
double scale)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@ByVal
MatVector images,
@StdVector
IntPointer channels,
@ByVal
UMat hist,
@ByVal
UMat dst,
@StdVector
FloatPointer ranges,
double scale)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@ByVal
UMatVector images,
@StdVector
IntBuffer channels,
@ByVal
UMat hist,
@ByVal
UMat dst,
@StdVector
FloatBuffer ranges,
double scale)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@ByVal
GpuMatVector images,
@StdVector
int[] channels,
@ByVal
UMat hist,
@ByVal
UMat dst,
@StdVector
float[] ranges,
double scale)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@ByVal
MatVector images,
@StdVector
IntPointer channels,
@ByVal
GpuMat hist,
@ByVal
GpuMat dst,
@StdVector
FloatPointer ranges,
double scale)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@ByVal
UMatVector images,
@StdVector
IntBuffer channels,
@ByVal
GpuMat hist,
@ByVal
GpuMat dst,
@StdVector
FloatBuffer ranges,
double scale)
calcBackProject
@Namespace(value="cv")
public static void calcBackProject(@ByVal
GpuMatVector images,
@StdVector
int[] channels,
@ByVal
GpuMat hist,
@ByVal
GpuMat dst,
@StdVector
float[] ranges,
double scale)
compareHist
@Namespace(value="cv")
public static double compareHist(@ByVal
Mat H1,
@ByVal
Mat H2,
int method)
d(H_1, H_2)
.
H1
- First compared histogram.H2
- Second compared histogram of the same size as H1 .method
- Comparison method, see #HistCompMethods
compareHist
@Namespace(value="cv")
public static double compareHist(@ByVal
UMat H1,
@ByVal
UMat H2,
int method)
compareHist
@Namespace(value="cv")
public static double compareHist(@ByVal
GpuMat H1,
@ByVal
GpuMat H2,
int method)
compareHist
@Namespace(value="cv")
public static double compareHist(@Const @ByRef
SparseMat H1,
@Const @ByRef
SparseMat H2,
int method)
equalizeHist
@Namespace(value="cv")
public static void equalizeHist(@ByVal
Mat src,
@ByVal
Mat dst)
H
for src .
- Normalize the histogram so that the sum of histogram bins is 255.
- Compute the integral of the histogram:
- Transform the image using \[H'_i = \sum _{0 \le j < i} H(j)\]
H'
as a look-up table: \texttt{dst}(x,y) = H'(\texttt{src}(x,y))
src
- Source 8-bit single channel image.dst
- Destination image of the same size and type as src .
equalizeHist
@Namespace(value="cv")
public static void equalizeHist(@ByVal
UMat src,
@ByVal
UMat dst)
equalizeHist
@Namespace(value="cv")
public static void equalizeHist(@ByVal
GpuMat src,
@ByVal
GpuMat dst)
createCLAHE
@Namespace(value="cv")
@opencv_core.Ptr
public static CLAHE createCLAHE(double clipLimit,
@ByVal(nullValue="cv::Size(8, 8)")
Size tileGridSize)
clipLimit
- Threshold for contrast limiting.tileGridSize
- Size of grid for histogram equalization. Input image will be divided into
equally sized rectangular tiles. tileGridSize defines the number of tiles in row and column.
createCLAHE
@Namespace(value="cv")
@opencv_core.Ptr
public static CLAHE createCLAHE()
EMD
@Namespace(value="cv")
public static float EMD(@ByVal
Mat signature1,
@ByVal
Mat signature2,
int distType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat cost,
FloatPointer lowerBound,
@ByVal(nullValue="cv::OutputArray(cv::noArray())")
Mat flow)
signature1
- First signature, a \texttt{size1}\times \texttt{dims}+1
floating-point matrix.
Each row stores the point weight followed by the point coordinates. The matrix is allowed to have
a single column (weights only) if the user-defined cost matrix is used. The weights must be
non-negative and have at least one non-zero value.signature2
- Second signature of the same format as signature1 , though the number of rows
may be different. The total weights may be different. In this case an extra "dummy" point is added
to either signature1 or signature2. The weights must be non-negative and have at least one non-zero
value.distType
- Used metric. See #DistanceTypes.cost
- User-defined \texttt{size1}\times \texttt{size2}
cost matrix. Also, if a cost matrix
is used, lower boundary lowerBound cannot be calculated because it needs a metric function.lowerBound
- Optional input/output parameter: lower boundary of a distance between the two
signatures that is a distance between mass centers. The lower boundary may not be calculated if
the user-defined cost matrix is used, the total weights of point configurations are not equal, or
if the signatures consist of weights only (the signature matrices have a single column). You
must** initialize \*lowerBound . If the calculated distance between mass centers is greater or
equal to \*lowerBound (it means that the signatures are far enough), the function does not
calculate EMD. In any case \*lowerBound is set to the calculated distance between mass centers on
return. Thus, if you want to calculate both distance between mass centers and EMD, \*lowerBound
should be set to 0.flow
- Resultant \texttt{size1} \times \texttt{size2}
flow matrix: \texttt{flow}_{i,j}
is
a flow from i
-th point of signature1 to j
-th point of signature2 .
EMD
@Namespace(value="cv")
public static float EMD(@ByVal
Mat signature1,
@ByVal
Mat signature2,
int distType)
EMD
@Namespace(value="cv")
public static float EMD(@ByVal
Mat signature1,
@ByVal
Mat signature2,
int distType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat cost,
FloatBuffer lowerBound,
@ByVal(nullValue="cv::OutputArray(cv::noArray())")
Mat flow)
EMD
@Namespace(value="cv")
public static float EMD(@ByVal
Mat signature1,
@ByVal
Mat signature2,
int distType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat cost,
float[] lowerBound,
@ByVal(nullValue="cv::OutputArray(cv::noArray())")
Mat flow)
EMD
@Namespace(value="cv")
public static float EMD(@ByVal
UMat signature1,
@ByVal
UMat signature2,
int distType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat cost,
FloatPointer lowerBound,
@ByVal(nullValue="cv::OutputArray(cv::noArray())")
UMat flow)
EMD
@Namespace(value="cv")
public static float EMD(@ByVal
UMat signature1,
@ByVal
UMat signature2,
int distType)
EMD
@Namespace(value="cv")
public static float EMD(@ByVal
UMat signature1,
@ByVal
UMat signature2,
int distType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat cost,
FloatBuffer lowerBound,
@ByVal(nullValue="cv::OutputArray(cv::noArray())")
UMat flow)
EMD
@Namespace(value="cv")
public static float EMD(@ByVal
UMat signature1,
@ByVal
UMat signature2,
int distType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat cost,
float[] lowerBound,
@ByVal(nullValue="cv::OutputArray(cv::noArray())")
UMat flow)
EMD
@Namespace(value="cv")
public static float EMD(@ByVal
GpuMat signature1,
@ByVal
GpuMat signature2,
int distType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat cost,
FloatPointer lowerBound,
@ByVal(nullValue="cv::OutputArray(cv::noArray())")
GpuMat flow)
EMD
@Namespace(value="cv")
public static float EMD(@ByVal
GpuMat signature1,
@ByVal
GpuMat signature2,
int distType)
EMD
@Namespace(value="cv")
public static float EMD(@ByVal
GpuMat signature1,
@ByVal
GpuMat signature2,
int distType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat cost,
FloatBuffer lowerBound,
@ByVal(nullValue="cv::OutputArray(cv::noArray())")
GpuMat flow)
EMD
@Namespace(value="cv")
public static float EMD(@ByVal
GpuMat signature1,
@ByVal
GpuMat signature2,
int distType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat cost,
float[] lowerBound,
@ByVal(nullValue="cv::OutputArray(cv::noArray())")
GpuMat flow)
watershed
@Namespace(value="cv")
public static void watershed(@ByVal
Mat image,
@ByVal
Mat markers)
image
- Input 8-bit 3-channel image.markers
- Input/output 32-bit single-channel image (map) of markers. It should have the same
size as image .
watershed
@Namespace(value="cv")
public static void watershed(@ByVal
UMat image,
@ByVal
UMat markers)
watershed
@Namespace(value="cv")
public static void watershed(@ByVal
GpuMat image,
@ByVal
GpuMat markers)
pyrMeanShiftFiltering
@Namespace(value="cv")
public static void pyrMeanShiftFiltering(@ByVal
Mat src,
@ByVal
Mat dst,
double sp,
double sr,
int maxLevel,
@ByVal(nullValue="cv::TermCriteria(cv::TermCriteria::MAX_ITER+cv::TermCriteria::EPS,5,1)")
TermCriteria termcrit)
\[(x,y): X- \texttt{sp} \le x \le X+ \texttt{sp} , Y- \texttt{sp} \le y \le Y+ \texttt{sp} , ||(R,G,B)-(r,g,b)|| \le \texttt{sr}\]
\[(X,Y)~(X',Y'), (R,G,B)~(R',G',B').\]
\[I(X,Y) <- (R*,G*,B*)\]
src
- The source 8-bit, 3-channel image.dst
- The destination image of the same format and the same size as the source.sp
- The spatial window radius.sr
- The color window radius.maxLevel
- Maximum level of the pyramid for the segmentation.termcrit
- Termination criteria: when to stop meanshift iterations.
pyrMeanShiftFiltering
@Namespace(value="cv")
public static void pyrMeanShiftFiltering(@ByVal
Mat src,
@ByVal
Mat dst,
double sp,
double sr)
pyrMeanShiftFiltering
@Namespace(value="cv")
public static void pyrMeanShiftFiltering(@ByVal
UMat src,
@ByVal
UMat dst,
double sp,
double sr,
int maxLevel,
@ByVal(nullValue="cv::TermCriteria(cv::TermCriteria::MAX_ITER+cv::TermCriteria::EPS,5,1)")
TermCriteria termcrit)
pyrMeanShiftFiltering
@Namespace(value="cv")
public static void pyrMeanShiftFiltering(@ByVal
UMat src,
@ByVal
UMat dst,
double sp,
double sr)
pyrMeanShiftFiltering
@Namespace(value="cv")
public static void pyrMeanShiftFiltering(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
double sp,
double sr,
int maxLevel,
@ByVal(nullValue="cv::TermCriteria(cv::TermCriteria::MAX_ITER+cv::TermCriteria::EPS,5,1)")
TermCriteria termcrit)
pyrMeanShiftFiltering
@Namespace(value="cv")
public static void pyrMeanShiftFiltering(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
double sp,
double sr)
grabCut
@Namespace(value="cv")
public static void grabCut(@ByVal
Mat img,
@ByVal
Mat mask,
@ByVal
Rect rect,
@ByVal
Mat bgdModel,
@ByVal
Mat fgdModel,
int iterCount,
int mode)
img
- Input 8-bit 3-channel image.mask
- Input/output 8-bit single-channel mask. The mask is initialized by the function when
mode is set to #GC_INIT_WITH_RECT. Its elements may have one of the #GrabCutClasses.rect
- ROI containing a segmented object. The pixels outside of the ROI are marked as
"obvious background". The parameter is only used when mode==#GC_INIT_WITH_RECT .bgdModel
- Temporary array for the background model. Do not modify it while you are
processing the same image.fgdModel
- Temporary arrays for the foreground model. Do not modify it while you are
processing the same image.iterCount
- Number of iterations the algorithm should make before returning the result. Note
that the result can be refined with further calls with mode==#GC_INIT_WITH_MASK or
mode==GC_EVAL .mode
- Operation mode that could be one of the #GrabCutModes
grabCut
@Namespace(value="cv")
public static void grabCut(@ByVal
Mat img,
@ByVal
Mat mask,
@ByVal
Rect rect,
@ByVal
Mat bgdModel,
@ByVal
Mat fgdModel,
int iterCount)
grabCut
@Namespace(value="cv")
public static void grabCut(@ByVal
UMat img,
@ByVal
UMat mask,
@ByVal
Rect rect,
@ByVal
UMat bgdModel,
@ByVal
UMat fgdModel,
int iterCount,
int mode)
grabCut
@Namespace(value="cv")
public static void grabCut(@ByVal
UMat img,
@ByVal
UMat mask,
@ByVal
Rect rect,
@ByVal
UMat bgdModel,
@ByVal
UMat fgdModel,
int iterCount)
grabCut
@Namespace(value="cv")
public static void grabCut(@ByVal
GpuMat img,
@ByVal
GpuMat mask,
@ByVal
Rect rect,
@ByVal
GpuMat bgdModel,
@ByVal
GpuMat fgdModel,
int iterCount,
int mode)
grabCut
@Namespace(value="cv")
public static void grabCut(@ByVal
GpuMat img,
@ByVal
GpuMat mask,
@ByVal
Rect rect,
@ByVal
GpuMat bgdModel,
@ByVal
GpuMat fgdModel,
int iterCount)
distanceTransformWithLabels
@Namespace(value="cv")
@Name(value="distanceTransform")
public static void distanceTransformWithLabels(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Mat labels,
int distanceType,
int maskSize,
int labelType)
5\times 5
mask). The overall
distance is calculated as a sum of these basic distances. Since the distance function should be
symmetric, all of the horizontal and vertical shifts must have the same cost (denoted as a ), all
the diagonal shifts must have the same cost (denoted as b
), and all knight's moves must have the
same cost (denoted as c
). For the #DIST_C and #DIST_L1 types, the distance is calculated
precisely, whereas for #DIST_L2 (Euclidean distance) the distance can be calculated only with a
relative error (a 5\times 5
mask gives more accurate results). For a
,b
, and c
, OpenCV
uses the values suggested in the original paper:
- DIST_L1: a = 1, b = 2
- DIST_L2:
- 3 x 3
: a=0.955, b=1.3693
- 5 x 5
: a=1, b=1.4, c=2.1969
- DIST_C: a = 1, b = 1
3\times 3
mask is used. For a
more accurate distance estimation #DIST_L2, a 5\times 5
mask or the precise algorithm is used.
Note that both the precise and the approximate algorithms are linear on the number of pixels.
(x, y)
but also identifies the nearest connected component consisting of zero pixels
(labelType==#DIST_LABEL_CCOMP) or the nearest zero pixel (labelType==#DIST_LABEL_PIXEL). Index of the
component/pixel is stored in labels(x, y)
. When labelType==#DIST_LABEL_CCOMP, the function
automatically finds connected components of zero pixels in the input image and marks them with
distinct labels. When labelType==#DIST_LABEL_CCOMP, the function scans through the input image and
marks all the zero pixels with distinct labels.
src
- 8-bit, single-channel (binary) source image.dst
- Output image with calculated distances. It is a 8-bit or 32-bit floating-point,
single-channel image of the same size as src.labels
- Output 2D array of labels (the discrete Voronoi diagram). It has the type
CV_32SC1 and the same size as src.distanceType
- Type of distance, see #DistanceTypesmaskSize
- Size of the distance transform mask, see #DistanceTransformMasks.
#DIST_MASK_PRECISE is not supported by this variant. In case of the #DIST_L1 or #DIST_C distance type,
the parameter is forced to 3 because a 3\times 3
mask gives the same result as 5\times
5
or any larger aperture.labelType
- Type of the label array to build, see #DistanceTransformLabelTypes.
distanceTransformWithLabels
@Namespace(value="cv")
@Name(value="distanceTransform")
public static void distanceTransformWithLabels(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Mat labels,
int distanceType,
int maskSize)
distanceTransformWithLabels
@Namespace(value="cv")
@Name(value="distanceTransform")
public static void distanceTransformWithLabels(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
UMat labels,
int distanceType,
int maskSize,
int labelType)
distanceTransformWithLabels
@Namespace(value="cv")
@Name(value="distanceTransform")
public static void distanceTransformWithLabels(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
UMat labels,
int distanceType,
int maskSize)
distanceTransformWithLabels
@Namespace(value="cv")
@Name(value="distanceTransform")
public static void distanceTransformWithLabels(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
GpuMat labels,
int distanceType,
int maskSize,
int labelType)
distanceTransformWithLabels
@Namespace(value="cv")
@Name(value="distanceTransform")
public static void distanceTransformWithLabels(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
GpuMat labels,
int distanceType,
int maskSize)
distanceTransform
@Namespace(value="cv")
public static void distanceTransform(@ByVal
Mat src,
@ByVal
Mat dst,
int distanceType,
int maskSize,
int dstType)
src
- 8-bit, single-channel (binary) source image.dst
- Output image with calculated distances. It is a 8-bit or 32-bit floating-point,
single-channel image of the same size as src .distanceType
- Type of distance, see #DistanceTypesmaskSize
- Size of the distance transform mask, see #DistanceTransformMasks. In case of the
#DIST_L1 or #DIST_C distance type, the parameter is forced to 3 because a 3\times 3
mask gives
the same result as 5\times 5
or any larger aperture.dstType
- Type of output image. It can be CV_8U or CV_32F. Type CV_8U can be used only for
the first variant of the function and distanceType == #DIST_L1.
distanceTransform
@Namespace(value="cv")
public static void distanceTransform(@ByVal
Mat src,
@ByVal
Mat dst,
int distanceType,
int maskSize)
distanceTransform
@Namespace(value="cv")
public static void distanceTransform(@ByVal
UMat src,
@ByVal
UMat dst,
int distanceType,
int maskSize,
int dstType)
distanceTransform
@Namespace(value="cv")
public static void distanceTransform(@ByVal
UMat src,
@ByVal
UMat dst,
int distanceType,
int maskSize)
distanceTransform
@Namespace(value="cv")
public static void distanceTransform(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int distanceType,
int maskSize,
int dstType)
distanceTransform
@Namespace(value="cv")
public static void distanceTransform(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int distanceType,
int maskSize)
floodFill
@Namespace(value="cv")
public static int floodFill(@ByVal
Mat image,
@ByVal
Point seedPoint,
@ByVal
Scalar newVal,
Rect rect,
@ByVal(nullValue="cv::Scalar()")
Scalar loDiff,
@ByVal(nullValue="cv::Scalar()")
Scalar upDiff,
int flags)
mask
parameter
floodFill
@Namespace(value="cv")
public static int floodFill(@ByVal
Mat image,
@ByVal
Point seedPoint,
@ByVal
Scalar newVal)
floodFill
@Namespace(value="cv")
public static int floodFill(@ByVal
UMat image,
@ByVal
Point seedPoint,
@ByVal
Scalar newVal,
Rect rect,
@ByVal(nullValue="cv::Scalar()")
Scalar loDiff,
@ByVal(nullValue="cv::Scalar()")
Scalar upDiff,
int flags)
floodFill
@Namespace(value="cv")
public static int floodFill(@ByVal
UMat image,
@ByVal
Point seedPoint,
@ByVal
Scalar newVal)
floodFill
@Namespace(value="cv")
public static int floodFill(@ByVal
GpuMat image,
@ByVal
Point seedPoint,
@ByVal
Scalar newVal,
Rect rect,
@ByVal(nullValue="cv::Scalar()")
Scalar loDiff,
@ByVal(nullValue="cv::Scalar()")
Scalar upDiff,
int flags)
floodFill
@Namespace(value="cv")
public static int floodFill(@ByVal
GpuMat image,
@ByVal
Point seedPoint,
@ByVal
Scalar newVal)
floodFill
@Namespace(value="cv")
public static int floodFill(@ByVal
Mat image,
@ByVal
Mat mask,
@ByVal
Point seedPoint,
@ByVal
Scalar newVal,
Rect rect,
@ByVal(nullValue="cv::Scalar()")
Scalar loDiff,
@ByVal(nullValue="cv::Scalar()")
Scalar upDiff,
int flags)
(x,y)
is considered to belong to the repainted domain if:
\[\texttt{src} (x',y')- \texttt{loDiff} \leq \texttt{src} (x,y) \leq \texttt{src} (x',y')+ \texttt{upDiff}\]
\[\texttt{src} ( \texttt{seedPoint} .x, \texttt{seedPoint} .y)- \texttt{loDiff} \leq \texttt{src} (x,y) \leq \texttt{src} ( \texttt{seedPoint} .x, \texttt{seedPoint} .y)+ \texttt{upDiff}\]
\[\texttt{src} (x',y')_r- \texttt{loDiff} _r \leq \texttt{src} (x,y)_r \leq \texttt{src} (x',y')_r+ \texttt{upDiff} _r,\]
and
\[\texttt{src} (x',y')_g- \texttt{loDiff} _g \leq \texttt{src} (x,y)_g \leq \texttt{src} (x',y')_g+ \texttt{upDiff} _g\]
\[\texttt{src} (x',y')_b- \texttt{loDiff} _b \leq \texttt{src} (x,y)_b \leq \texttt{src} (x',y')_b+ \texttt{upDiff} _b\]
\[\texttt{src} ( \texttt{seedPoint} .x, \texttt{seedPoint} .y)_r- \texttt{loDiff} _r \leq \texttt{src} (x,y)_r \leq \texttt{src} ( \texttt{seedPoint} .x, \texttt{seedPoint} .y)_r+ \texttt{upDiff} _r,\]
and
\[\texttt{src} ( \texttt{seedPoint} .x, \texttt{seedPoint} .y)_g- \texttt{loDiff} _g \leq \texttt{src} (x,y)_g \leq \texttt{src} ( \texttt{seedPoint} .x, \texttt{seedPoint} .y)_g+ \texttt{upDiff} _g\]
\[\texttt{src} ( \texttt{seedPoint} .x, \texttt{seedPoint} .y)_b- \texttt{loDiff} _b \leq \texttt{src} (x,y)_b \leq \texttt{src} ( \texttt{seedPoint} .x, \texttt{seedPoint} .y)_b+ \texttt{upDiff} _b\]
src(x',y')
is the value of one of pixel neighbors that is already known to belong to the
component. That is, to be added to the connected component, a color/brightness of the pixel should
be close enough to:
- Color/brightness of one of its neighbors that already belong to the connected component in case
of a floating range.
- Color/brightness of the seed point in case of a fixed range.
image
- Input/output 1- or 3-channel, 8-bit, or floating-point image. It is modified by the
function unless the #FLOODFILL_MASK_ONLY flag is set in the second variant of the function. See
the details below.mask
- Operation mask that should be a single-channel 8-bit image, 2 pixels wider and 2 pixels
taller than image. Since this is both an input and output parameter, you must take responsibility
of initializing it. Flood-filling cannot go across non-zero pixels in the input mask. For example,
an edge detector output can be used as a mask to stop filling at edges. On output, pixels in the
mask corresponding to filled pixels in the image are set to 1 or to the a value specified in flags
as described below. Additionally, the function fills the border of the mask with ones to simplify
internal processing. It is therefore possible to use the same mask in multiple calls to the function
to make sure the filled areas do not overlap.seedPoint
- Starting point.newVal
- New value of the repainted domain pixels.loDiff
- Maximal lower brightness/color difference between the currently observed pixel and
one of its neighbors belonging to the component, or a seed pixel being added to the component.upDiff
- Maximal upper brightness/color difference between the currently observed pixel and
one of its neighbors belonging to the component, or a seed pixel being added to the component.rect
- Optional output parameter set by the function to the minimum bounding rectangle of the
repainted domain.flags
- Operation flags. The first 8 bits contain a connectivity value. The default value of
4 means that only the four nearest neighbor pixels (those that share an edge) are considered. A
connectivity value of 8 means that the eight nearest neighbor pixels (those that share a corner)
will be considered. The next 8 bits (8-16) contain a value between 1 and 255 with which to fill
the mask (the default value is 1). For example, 4 | ( 255 \<\< 8 ) will consider 4 nearest
neighbours and fill the mask with a value of 255. The following additional options occupy higher
bits and therefore may be further combined with the connectivity and mask fill values using
bit-wise or (|), see #FloodFillFlags.
(x, y)
in image corresponds to the
pixel (x+1, y+1)
in the mask .
findContours
floodFill
@Namespace(value="cv")
public static int floodFill(@ByVal
Mat image,
@ByVal
Mat mask,
@ByVal
Point seedPoint,
@ByVal
Scalar newVal)
floodFill
@Namespace(value="cv")
public static int floodFill(@ByVal
UMat image,
@ByVal
UMat mask,
@ByVal
Point seedPoint,
@ByVal
Scalar newVal,
Rect rect,
@ByVal(nullValue="cv::Scalar()")
Scalar loDiff,
@ByVal(nullValue="cv::Scalar()")
Scalar upDiff,
int flags)
floodFill
@Namespace(value="cv")
public static int floodFill(@ByVal
UMat image,
@ByVal
UMat mask,
@ByVal
Point seedPoint,
@ByVal
Scalar newVal)
floodFill
@Namespace(value="cv")
public static int floodFill(@ByVal
GpuMat image,
@ByVal
GpuMat mask,
@ByVal
Point seedPoint,
@ByVal
Scalar newVal,
Rect rect,
@ByVal(nullValue="cv::Scalar()")
Scalar loDiff,
@ByVal(nullValue="cv::Scalar()")
Scalar upDiff,
int flags)
floodFill
@Namespace(value="cv")
public static int floodFill(@ByVal
GpuMat image,
@ByVal
GpuMat mask,
@ByVal
Point seedPoint,
@ByVal
Scalar newVal)
blendLinear
@Namespace(value="cv")
public static void blendLinear(@ByVal
Mat src1,
@ByVal
Mat src2,
@ByVal
Mat weights1,
@ByVal
Mat weights2,
@ByVal
Mat dst)
\[ \texttt{dst}(i,j) = \texttt{weights1}(i,j)*\texttt{src1}(i,j) + \texttt{weights2}(i,j)*\texttt{src2}(i,j) \]
src1
- It has a type of CV_8UC(n) or CV_32FC(n), where n is a positive integer.src2
- It has the same type and size as src1.weights1
- It has a type of CV_32FC1 and the same size with src1.weights2
- It has a type of CV_32FC1 and the same size with src1.dst
- It is created if it does not have the same size and type with src1.
blendLinear
@Namespace(value="cv")
public static void blendLinear(@ByVal
UMat src1,
@ByVal
UMat src2,
@ByVal
UMat weights1,
@ByVal
UMat weights2,
@ByVal
UMat dst)
blendLinear
@Namespace(value="cv")
public static void blendLinear(@ByVal
GpuMat src1,
@ByVal
GpuMat src2,
@ByVal
GpuMat weights1,
@ByVal
GpuMat weights2,
@ByVal
GpuMat dst)
cvtColor
@Namespace(value="cv")
public static void cvtColor(@ByVal
Mat src,
@ByVal
Mat dst,
int code,
int dstCn)
\rightarrow
L\*u\*v\* transformation. For example, if you have a
32-bit floating-point image directly converted from an 8-bit image without any scaling, then it will
have the 0..255 value range instead of 0..1 assumed by the function. So, before calling #cvtColor ,
you need first to scale the image down:
If you use #cvtColor with 8-bit images, the conversion will have some information lost. For many
applications, this will not be noticeable but it is recommended to use 32-bit images in applications
that need the full range of colors or that convert an image before an operation and then convert
back.
img *= 1./255;
cvtColor(img, img, COLOR_BGR2Luv);
src
- input image: 8-bit unsigned, 16-bit unsigned ( CV_16UC... ), or single-precision
floating-point.dst
- output image of the same size and depth as src.code
- color space conversion code (see #ColorConversionCodes).dstCn
- number of channels in the destination image; if the parameter is 0, the number of the
channels is derived automatically from src and code.
imgproc_color_conversions
cvtColor
@Namespace(value="cv")
public static void cvtColor(@ByVal
Mat src,
@ByVal
Mat dst,
int code)
cvtColor
@Namespace(value="cv")
public static void cvtColor(@ByVal
UMat src,
@ByVal
UMat dst,
int code,
int dstCn)
cvtColor
@Namespace(value="cv")
public static void cvtColor(@ByVal
UMat src,
@ByVal
UMat dst,
int code)
cvtColor
@Namespace(value="cv")
public static void cvtColor(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int code,
int dstCn)
cvtColor
@Namespace(value="cv")
public static void cvtColor(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int code)
cvtColorTwoPlane
@Namespace(value="cv")
public static void cvtColorTwoPlane(@ByVal
Mat src1,
@ByVal
Mat src2,
@ByVal
Mat dst,
int code)
src1:
- 8-bit image (#CV_8U) of the Y plane.src2:
- image containing interleaved U/V plane.dst:
- output image.code:
- Specifies the type of conversion. It can take any of the following values:
- #COLOR_YUV2BGR_NV12
- #COLOR_YUV2RGB_NV12
- #COLOR_YUV2BGRA_NV12
- #COLOR_YUV2RGBA_NV12
- #COLOR_YUV2BGR_NV21
- #COLOR_YUV2RGB_NV21
- #COLOR_YUV2BGRA_NV21
- #COLOR_YUV2RGBA_NV21
cvtColorTwoPlane
@Namespace(value="cv")
public static void cvtColorTwoPlane(@ByVal
UMat src1,
@ByVal
UMat src2,
@ByVal
UMat dst,
int code)
cvtColorTwoPlane
@Namespace(value="cv")
public static void cvtColorTwoPlane(@ByVal
GpuMat src1,
@ByVal
GpuMat src2,
@ByVal
GpuMat dst,
int code)
demosaicing
@Namespace(value="cv")
public static void demosaicing(@ByVal
Mat src,
@ByVal
Mat dst,
int code,
int dstCn)
src
- input image: 8-bit unsigned or 16-bit unsigned.dst
- output image of the same size and depth as src.code
- Color space conversion code (see the description below).dstCn
- number of channels in the destination image; if the parameter is 0, the number of the
channels is derived automatically from src and code.
cvtColor
demosaicing
@Namespace(value="cv")
public static void demosaicing(@ByVal
Mat src,
@ByVal
Mat dst,
int code)
demosaicing
@Namespace(value="cv")
public static void demosaicing(@ByVal
UMat src,
@ByVal
UMat dst,
int code,
int dstCn)
demosaicing
@Namespace(value="cv")
public static void demosaicing(@ByVal
UMat src,
@ByVal
UMat dst,
int code)
demosaicing
@Namespace(value="cv")
public static void demosaicing(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int code,
int dstCn)
demosaicing
@Namespace(value="cv")
public static void demosaicing(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int code)
moments
@Namespace(value="cv")
@ByVal
public static Moments moments(@ByVal
Mat array,
@Cast(value="bool")
boolean binaryImage)
array
- Raster image (single-channel, 8-bit or floating-point 2D array) or an array (
1 \times N
or N \times 1
) of 2D points (Point or Point2f ).binaryImage
- If it is true, all non-zero image pixels are treated as 1's. The parameter is
used for images only.contourArea, arcLength
moments
@Namespace(value="cv")
@ByVal
public static Moments moments(@ByVal
UMat array,
@Cast(value="bool")
boolean binaryImage)
moments
@Namespace(value="cv")
@ByVal
public static Moments moments(@ByVal
GpuMat array,
@Cast(value="bool")
boolean binaryImage)
HuMoments
@Namespace(value="cv")
public static void HuMoments(@Const @ByRef
Moments moments,
DoublePointer hu)
\[\begin{array}{l} hu[0]= \eta _{20}+ \eta _{02} \\ hu[1]=( \eta _{20}- \eta _{02})^{2}+4 \eta _{11}^{2} \\ hu[2]=( \eta _{30}-3 \eta _{12})^{2}+ (3 \eta _{21}- \eta _{03})^{2} \\ hu[3]=( \eta _{30}+ \eta _{12})^{2}+ ( \eta _{21}+ \eta _{03})^{2} \\ hu[4]=( \eta _{30}-3 \eta _{12})( \eta _{30}+ \eta _{12})[( \eta _{30}+ \eta _{12})^{2}-3( \eta _{21}+ \eta _{03})^{2}]+(3 \eta _{21}- \eta _{03})( \eta _{21}+ \eta _{03})[3( \eta _{30}+ \eta _{12})^{2}-( \eta _{21}+ \eta _{03})^{2}] \\ hu[5]=( \eta _{20}- \eta _{02})[( \eta _{30}+ \eta _{12})^{2}- ( \eta _{21}+ \eta _{03})^{2}]+4 \eta _{11}( \eta _{30}+ \eta _{12})( \eta _{21}+ \eta _{03}) \\ hu[6]=(3 \eta _{21}- \eta _{03})( \eta _{21}+ \eta _{03})[3( \eta _{30}+ \eta _{12})^{2}-( \eta _{21}+ \eta _{03})^{2}]-( \eta _{30}-3 \eta _{12})( \eta _{21}+ \eta _{03})[3( \eta _{30}+ \eta _{12})^{2}-( \eta _{21}+ \eta _{03})^{2}] \\ \end{array}\]
\eta_{ji}
stands for \texttt{Moments::nu}_{ji}
.
moments
- Input moments computed with moments .hu
- Output Hu invariants.
matchShapes
HuMoments
@Namespace(value="cv")
public static void HuMoments(@Const @ByRef
Moments moments,
DoubleBuffer hu)
HuMoments
@Namespace(value="cv")
public static void HuMoments(@Const @ByRef
Moments moments,
double[] hu)
HuMoments
@Namespace(value="cv")
public static void HuMoments(@Const @ByRef
Moments m,
@ByVal
Mat hu)
HuMoments
@Namespace(value="cv")
public static void HuMoments(@Const @ByRef
Moments m,
@ByVal
UMat hu)
HuMoments
@Namespace(value="cv")
public static void HuMoments(@Const @ByRef
Moments m,
@ByVal
GpuMat hu)
matchTemplate
@Namespace(value="cv")
public static void matchTemplate(@ByVal
Mat image,
@ByVal
Mat templ,
@ByVal
Mat result,
int method,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat mask)
w \times h
against
templ using the specified method and stores the comparison results in result . Here are the formulae
for the available comparison methods ( I
denotes image, T
template, R
result ). The summation
is done over template and/or the image patch: x' = 0...w-1, y' = 0...h-1
image
- Image where the search is running. It must be 8-bit or 32-bit floating-point.templ
- Searched template. It must be not greater than the source image and have the same
data type.result
- Map of comparison results. It must be single-channel 32-bit floating-point. If image
is W \times H
and templ is w \times h
, then result is (W-w+1) \times (H-h+1)
.method
- Parameter specifying the comparison method, see #TemplateMatchModesmask
- Mask of searched template. It must have the same datatype and size with templ. It is
not set by default. Currently, only the #TM_SQDIFF and #TM_CCORR_NORMED methods are supported.
matchTemplate
@Namespace(value="cv")
public static void matchTemplate(@ByVal
Mat image,
@ByVal
Mat templ,
@ByVal
Mat result,
int method)
matchTemplate
@Namespace(value="cv")
public static void matchTemplate(@ByVal
UMat image,
@ByVal
UMat templ,
@ByVal
UMat result,
int method,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat mask)
matchTemplate
@Namespace(value="cv")
public static void matchTemplate(@ByVal
UMat image,
@ByVal
UMat templ,
@ByVal
UMat result,
int method)
matchTemplate
@Namespace(value="cv")
public static void matchTemplate(@ByVal
GpuMat image,
@ByVal
GpuMat templ,
@ByVal
GpuMat result,
int method,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat mask)
matchTemplate
@Namespace(value="cv")
public static void matchTemplate(@ByVal
GpuMat image,
@ByVal
GpuMat templ,
@ByVal
GpuMat result,
int method)
connectedComponentsWithAlgorithm
@Namespace(value="cv")
@Name(value="connectedComponents")
public static int connectedComponentsWithAlgorithm(@ByVal
Mat image,
@ByVal
Mat labels,
int connectivity,
int ltype,
int ccltype)
image
- the 8-bit single-channel image to be labeledlabels
- destination labeled imageconnectivity
- 8 or 4 for 8-way or 4-way connectivity respectivelyltype
- output image label type. Currently CV_32S and CV_16U are supported.ccltype
- connected components algorithm type (see the #ConnectedComponentsAlgorithmsTypes).
connectedComponentsWithAlgorithm
@Namespace(value="cv")
@Name(value="connectedComponents")
public static int connectedComponentsWithAlgorithm(@ByVal
UMat image,
@ByVal
UMat labels,
int connectivity,
int ltype,
int ccltype)
connectedComponentsWithAlgorithm
@Namespace(value="cv")
@Name(value="connectedComponents")
public static int connectedComponentsWithAlgorithm(@ByVal
GpuMat image,
@ByVal
GpuMat labels,
int connectivity,
int ltype,
int ccltype)
connectedComponents
@Namespace(value="cv")
public static int connectedComponents(@ByVal
Mat image,
@ByVal
Mat labels,
int connectivity,
int ltype)
image
- the 8-bit single-channel image to be labeledlabels
- destination labeled imageconnectivity
- 8 or 4 for 8-way or 4-way connectivity respectivelyltype
- output image label type. Currently CV_32S and CV_16U are supported.
connectedComponents
@Namespace(value="cv")
public static int connectedComponents(@ByVal
Mat image,
@ByVal
Mat labels)
connectedComponents
@Namespace(value="cv")
public static int connectedComponents(@ByVal
UMat image,
@ByVal
UMat labels,
int connectivity,
int ltype)
connectedComponents
@Namespace(value="cv")
public static int connectedComponents(@ByVal
UMat image,
@ByVal
UMat labels)
connectedComponents
@Namespace(value="cv")
public static int connectedComponents(@ByVal
GpuMat image,
@ByVal
GpuMat labels,
int connectivity,
int ltype)
connectedComponents
@Namespace(value="cv")
public static int connectedComponents(@ByVal
GpuMat image,
@ByVal
GpuMat labels)
connectedComponentsWithStatsWithAlgorithm
@Namespace(value="cv")
@Name(value="connectedComponentsWithStats")
public static int connectedComponentsWithStatsWithAlgorithm(@ByVal
Mat image,
@ByVal
Mat labels,
@ByVal
Mat stats,
@ByVal
Mat centroids,
int connectivity,
int ltype,
int ccltype)
image
- the 8-bit single-channel image to be labeledlabels
- destination labeled imagestats
- statistics output for each label, including the background label, see below for
available statistics. Statistics are accessed via stats(label, COLUMN) where COLUMN is one of
#ConnectedComponentsTypes. The data type is CV_32S.centroids
- centroid output for each label, including the background label. Centroids are
accessed via centroids(label, 0) for x and centroids(label, 1) for y. The data type CV_64F.connectivity
- 8 or 4 for 8-way or 4-way connectivity respectivelyltype
- output image label type. Currently CV_32S and CV_16U are supported.ccltype
- connected components algorithm type (see #ConnectedComponentsAlgorithmsTypes).
connectedComponentsWithStatsWithAlgorithm
@Namespace(value="cv")
@Name(value="connectedComponentsWithStats")
public static int connectedComponentsWithStatsWithAlgorithm(@ByVal
UMat image,
@ByVal
UMat labels,
@ByVal
UMat stats,
@ByVal
UMat centroids,
int connectivity,
int ltype,
int ccltype)
connectedComponentsWithStatsWithAlgorithm
@Namespace(value="cv")
@Name(value="connectedComponentsWithStats")
public static int connectedComponentsWithStatsWithAlgorithm(@ByVal
GpuMat image,
@ByVal
GpuMat labels,
@ByVal
GpuMat stats,
@ByVal
GpuMat centroids,
int connectivity,
int ltype,
int ccltype)
connectedComponentsWithStats
@Namespace(value="cv")
public static int connectedComponentsWithStats(@ByVal
Mat image,
@ByVal
Mat labels,
@ByVal
Mat stats,
@ByVal
Mat centroids,
int connectivity,
int ltype)
image
- the 8-bit single-channel image to be labeledlabels
- destination labeled imagestats
- statistics output for each label, including the background label, see below for
available statistics. Statistics are accessed via stats(label, COLUMN) where COLUMN is one of
#ConnectedComponentsTypes. The data type is CV_32S.centroids
- centroid output for each label, including the background label. Centroids are
accessed via centroids(label, 0) for x and centroids(label, 1) for y. The data type CV_64F.connectivity
- 8 or 4 for 8-way or 4-way connectivity respectivelyltype
- output image label type. Currently CV_32S and CV_16U are supported.
connectedComponentsWithStats
@Namespace(value="cv")
public static int connectedComponentsWithStats(@ByVal
Mat image,
@ByVal
Mat labels,
@ByVal
Mat stats,
@ByVal
Mat centroids)
connectedComponentsWithStats
@Namespace(value="cv")
public static int connectedComponentsWithStats(@ByVal
UMat image,
@ByVal
UMat labels,
@ByVal
UMat stats,
@ByVal
UMat centroids,
int connectivity,
int ltype)
connectedComponentsWithStats
@Namespace(value="cv")
public static int connectedComponentsWithStats(@ByVal
UMat image,
@ByVal
UMat labels,
@ByVal
UMat stats,
@ByVal
UMat centroids)
connectedComponentsWithStats
@Namespace(value="cv")
public static int connectedComponentsWithStats(@ByVal
GpuMat image,
@ByVal
GpuMat labels,
@ByVal
GpuMat stats,
@ByVal
GpuMat centroids,
int connectivity,
int ltype)
connectedComponentsWithStats
@Namespace(value="cv")
public static int connectedComponentsWithStats(@ByVal
GpuMat image,
@ByVal
GpuMat labels,
@ByVal
GpuMat stats,
@ByVal
GpuMat centroids)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
Mat image,
@ByVal
MatVector contours,
@ByVal
Mat hierarchy,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
image
- Source, an 8-bit single-channel image. Non-zero pixels are treated as 1's. Zero
pixels remain 0's, so the image is treated as binary . You can use #compare, #inRange, #threshold ,
#adaptiveThreshold, #Canny, and others to create a binary image out of a grayscale or color one.
If mode equals to #RETR_CCOMP or #RETR_FLOODFILL, the input can also be a 32-bit integer image of labels (CV_32SC1).contours
- Detected contours. Each contour is stored as a vector of points (e.g.
std::vectorhierarchy
- Optional output vector (e.g. std::vectormode
- Contour retrieval mode, see #RetrievalModesmethod
- Contour approximation method, see #ContourApproximationModesoffset
- Optional offset by which every contour point is shifted. This is useful if the
contours are extracted from the image ROI and then they should be analyzed in the whole image
context.
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
Mat image,
@ByVal
MatVector contours,
@ByVal
Mat hierarchy,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
Mat image,
@ByVal
UMatVector contours,
@ByVal
Mat hierarchy,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
Mat image,
@ByVal
UMatVector contours,
@ByVal
Mat hierarchy,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
Mat image,
@ByVal
GpuMatVector contours,
@ByVal
Mat hierarchy,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
Mat image,
@ByVal
GpuMatVector contours,
@ByVal
Mat hierarchy,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
UMat image,
@ByVal
MatVector contours,
@ByVal
UMat hierarchy,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
UMat image,
@ByVal
MatVector contours,
@ByVal
UMat hierarchy,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
UMat image,
@ByVal
UMatVector contours,
@ByVal
UMat hierarchy,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
UMat image,
@ByVal
UMatVector contours,
@ByVal
UMat hierarchy,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
UMat image,
@ByVal
GpuMatVector contours,
@ByVal
UMat hierarchy,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
UMat image,
@ByVal
GpuMatVector contours,
@ByVal
UMat hierarchy,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
GpuMat image,
@ByVal
MatVector contours,
@ByVal
GpuMat hierarchy,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
GpuMat image,
@ByVal
MatVector contours,
@ByVal
GpuMat hierarchy,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
GpuMat image,
@ByVal
UMatVector contours,
@ByVal
GpuMat hierarchy,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
GpuMat image,
@ByVal
UMatVector contours,
@ByVal
GpuMat hierarchy,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
GpuMat image,
@ByVal
GpuMatVector contours,
@ByVal
GpuMat hierarchy,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
GpuMat image,
@ByVal
GpuMatVector contours,
@ByVal
GpuMat hierarchy,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
Mat image,
@ByVal
MatVector contours,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
Mat image,
@ByVal
MatVector contours,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
Mat image,
@ByVal
UMatVector contours,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
Mat image,
@ByVal
UMatVector contours,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
Mat image,
@ByVal
GpuMatVector contours,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
Mat image,
@ByVal
GpuMatVector contours,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
UMat image,
@ByVal
MatVector contours,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
UMat image,
@ByVal
MatVector contours,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
UMat image,
@ByVal
UMatVector contours,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
UMat image,
@ByVal
UMatVector contours,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
UMat image,
@ByVal
GpuMatVector contours,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
UMat image,
@ByVal
GpuMatVector contours,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
GpuMat image,
@ByVal
MatVector contours,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
GpuMat image,
@ByVal
MatVector contours,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
GpuMat image,
@ByVal
UMatVector contours,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
GpuMat image,
@ByVal
UMatVector contours,
int mode,
int method)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
GpuMat image,
@ByVal
GpuMatVector contours,
int mode,
int method,
@ByVal(nullValue="cv::Point()")
Point offset)
findContours
@Namespace(value="cv")
public static void findContours(@ByVal
GpuMat image,
@ByVal
GpuMatVector contours,
int mode,
int method)
approxPolyDP
@Namespace(value="cv")
public static void approxPolyDP(@ByVal
Mat curve,
@ByVal
Mat approxCurve,
double epsilon,
@Cast(value="bool")
boolean closed)
curve
- Input vector of a 2D point stored in std::vector or MatapproxCurve
- Result of the approximation. The type should match the type of the input curve.epsilon
- Parameter specifying the approximation accuracy. This is the maximum distance
between the original curve and its approximation.closed
- If true, the approximated curve is closed (its first and last vertices are
connected). Otherwise, it is not closed.
approxPolyDP
@Namespace(value="cv")
public static void approxPolyDP(@ByVal
UMat curve,
@ByVal
UMat approxCurve,
double epsilon,
@Cast(value="bool")
boolean closed)
approxPolyDP
@Namespace(value="cv")
public static void approxPolyDP(@ByVal
GpuMat curve,
@ByVal
GpuMat approxCurve,
double epsilon,
@Cast(value="bool")
boolean closed)
arcLength
@Namespace(value="cv")
public static double arcLength(@ByVal
Mat curve,
@Cast(value="bool")
boolean closed)
curve
- Input vector of 2D points, stored in std::vector or Mat.closed
- Flag indicating whether the curve is closed or not.
arcLength
@Namespace(value="cv")
public static double arcLength(@ByVal
UMat curve,
@Cast(value="bool")
boolean closed)
arcLength
@Namespace(value="cv")
public static double arcLength(@ByVal
GpuMat curve,
@Cast(value="bool")
boolean closed)
boundingRect
@Namespace(value="cv")
@ByVal
public static Rect boundingRect(@ByVal
Mat array)
array
- Input gray-scale image or 2D point set, stored in std::vector or Mat.
contourArea
@Namespace(value="cv")
public static double contourArea(@ByVal
Mat contour,
@Cast(value="bool")
boolean oriented)
vector<Point> contour;
contour.push_back(Point2f(0, 0));
contour.push_back(Point2f(10, 0));
contour.push_back(Point2f(10, 10));
contour.push_back(Point2f(5, 4));
double area0 = contourArea(contour);
vector<Point> approx;
approxPolyDP(contour, approx, 5, true);
double area1 = contourArea(approx);
cout << "area0 =" << area0 << endl <<
"area1 =" << area1 << endl <<
"approx poly vertices" << approx.size() << endl;
contour
- Input vector of 2D points (contour vertices), stored in std::vector or Mat.oriented
- Oriented area flag. If it is true, the function returns a signed area value,
depending on the contour orientation (clockwise or counter-clockwise). Using this feature you can
determine orientation of a contour by taking the sign of an area. By default, the parameter is
false, which means that the absolute value is returned.
contourArea
@Namespace(value="cv")
public static double contourArea(@ByVal
Mat contour)
contourArea
@Namespace(value="cv")
public static double contourArea(@ByVal
UMat contour,
@Cast(value="bool")
boolean oriented)
contourArea
@Namespace(value="cv")
public static double contourArea(@ByVal
UMat contour)
contourArea
@Namespace(value="cv")
public static double contourArea(@ByVal
GpuMat contour,
@Cast(value="bool")
boolean oriented)
contourArea
@Namespace(value="cv")
public static double contourArea(@ByVal
GpuMat contour)
minAreaRect
@Namespace(value="cv")
@ByVal
public static RotatedRect minAreaRect(@ByVal
Mat points)
points
- Input vector of 2D points, stored in std::vector\<\> or Mat
minAreaRect
@Namespace(value="cv")
@ByVal
public static RotatedRect minAreaRect(@ByVal
UMat points)
minAreaRect
@Namespace(value="cv")
@ByVal
public static RotatedRect minAreaRect(@ByVal
GpuMat points)
boxPoints
@Namespace(value="cv")
public static void boxPoints(@ByVal
RotatedRect box,
@ByVal
Mat points)
box
- The input rotated rectangle. It may be the output ofpoints
- The output array of four vertices of rectangles.
boxPoints
@Namespace(value="cv")
public static void boxPoints(@ByVal
RotatedRect box,
@ByVal
UMat points)
boxPoints
@Namespace(value="cv")
public static void boxPoints(@ByVal
RotatedRect box,
@ByVal
GpuMat points)
minEnclosingCircle
@Namespace(value="cv")
public static void minEnclosingCircle(@ByVal
Mat points,
@ByRef
Point2f center,
@ByRef
FloatPointer radius)
points
- Input vector of 2D points, stored in std::vector\<\> or Matcenter
- Output center of the circle.radius
- Output radius of the circle.
minEnclosingCircle
@Namespace(value="cv")
public static void minEnclosingCircle(@ByVal
Mat points,
@ByRef
Point2f center,
@ByRef
FloatBuffer radius)
minEnclosingCircle
@Namespace(value="cv")
public static void minEnclosingCircle(@ByVal
Mat points,
@ByRef
Point2f center,
@ByRef
float[] radius)
minEnclosingCircle
@Namespace(value="cv")
public static void minEnclosingCircle(@ByVal
UMat points,
@ByRef
Point2f center,
@ByRef
FloatPointer radius)
minEnclosingCircle
@Namespace(value="cv")
public static void minEnclosingCircle(@ByVal
UMat points,
@ByRef
Point2f center,
@ByRef
FloatBuffer radius)
minEnclosingCircle
@Namespace(value="cv")
public static void minEnclosingCircle(@ByVal
UMat points,
@ByRef
Point2f center,
@ByRef
float[] radius)
minEnclosingCircle
@Namespace(value="cv")
public static void minEnclosingCircle(@ByVal
GpuMat points,
@ByRef
Point2f center,
@ByRef
FloatPointer radius)
minEnclosingCircle
@Namespace(value="cv")
public static void minEnclosingCircle(@ByVal
GpuMat points,
@ByRef
Point2f center,
@ByRef
FloatBuffer radius)
minEnclosingCircle
@Namespace(value="cv")
public static void minEnclosingCircle(@ByVal
GpuMat points,
@ByRef
Point2f center,
@ByRef
float[] radius)
minEnclosingTriangle
@Namespace(value="cv")
public static double minEnclosingTriangle(@ByVal
Mat points,
@ByVal
Mat triangle)
\theta(n)
algorithm for finding the minimal
enclosing triangle of a 2D convex polygon with n vertices. Since the #minEnclosingTriangle function
takes a 2D point set as input an additional preprocessing step of computing the convex hull of the
2D point set is required. The complexity of the #convexHull function is O(n log(n))
which is higher
than \theta(n)
. Thus the overall complexity of the function is O(n log(n))
.
points
- Input vector of 2D points with depth CV_32S or CV_32F, stored in std::vector\<\> or Mattriangle
- Output vector of three 2D points defining the vertices of the triangle. The depth
of the OutputArray must be CV_32F.
minEnclosingTriangle
@Namespace(value="cv")
public static double minEnclosingTriangle(@ByVal
UMat points,
@ByVal
UMat triangle)
minEnclosingTriangle
@Namespace(value="cv")
public static double minEnclosingTriangle(@ByVal
GpuMat points,
@ByVal
GpuMat triangle)
matchShapes
@Namespace(value="cv")
public static double matchShapes(@ByVal
Mat contour1,
@ByVal
Mat contour2,
int method,
double parameter)
contour1
- First contour or grayscale image.contour2
- Second contour or grayscale image.method
- Comparison method, see #ShapeMatchModesparameter
- Method-specific parameter (not supported now).
matchShapes
@Namespace(value="cv")
public static double matchShapes(@ByVal
UMat contour1,
@ByVal
UMat contour2,
int method,
double parameter)
matchShapes
@Namespace(value="cv")
public static double matchShapes(@ByVal
GpuMat contour1,
@ByVal
GpuMat contour2,
int method,
double parameter)
convexHull
@Namespace(value="cv")
public static void convexHull(@ByVal
Mat points,
@ByVal
Mat hull,
@Cast(value="bool")
boolean clockwise,
@Cast(value="bool")
boolean returnPoints)
points
- Input 2D point set, stored in std::vector or Mat.hull
- Output convex hull. It is either an integer vector of indices or vector of points. In
the first case, the hull elements are 0-based indices of the convex hull points in the original
array (since the set of convex hull points is a subset of the original point set). In the second
case, hull elements are the convex hull points themselves.clockwise
- Orientation flag. If it is true, the output convex hull is oriented clockwise.
Otherwise, it is oriented counter-clockwise. The assumed coordinate system has its X axis pointing
to the right, and its Y axis pointing upwards.returnPoints
- Operation flag. In case of a matrix, when the flag is true, the function
returns convex hull points. Otherwise, it returns indices of the convex hull points. When the
output array is std::vector, the flag is ignored, and the output depends on the type of the
vector: std::vector\points
and hull
should be different arrays, inplace processing isn't supported.
convexHull
@Namespace(value="cv")
public static void convexHull(@ByVal
UMat points,
@ByVal
UMat hull,
@Cast(value="bool")
boolean clockwise,
@Cast(value="bool")
boolean returnPoints)
convexHull
@Namespace(value="cv")
public static void convexHull(@ByVal
UMat points,
@ByVal
UMat hull)
convexHull
@Namespace(value="cv")
public static void convexHull(@ByVal
GpuMat points,
@ByVal
GpuMat hull,
@Cast(value="bool")
boolean clockwise,
@Cast(value="bool")
boolean returnPoints)
convexHull
@Namespace(value="cv")
public static void convexHull(@ByVal
GpuMat points,
@ByVal
GpuMat hull)
convexityDefects
@Namespace(value="cv")
public static void convexityDefects(@ByVal
Mat contour,
@ByVal
Mat convexhull,
@ByVal
Mat convexityDefects)
contour
- Input contour.convexhull
- Convex hull obtained using convexHull that should contain indices of the contour
points that make the hull.convexityDefects
- The output vector of convexity defects. In C++ and the new Python/Java
interface each convexity defect is represented as 4-element integer vector (a.k.a. #Vec4i):
(start_index, end_index, farthest_pt_index, fixpt_depth), where indices are 0-based indices
in the original contour of the convexity defect beginning, end and the farthest point, and
fixpt_depth is fixed-point approximation (with 8 fractional bits) of the distance between the
farthest contour point and the hull. That is, to get the floating-point value of the depth will be
fixpt_depth/256.0.
convexityDefects
@Namespace(value="cv")
public static void convexityDefects(@ByVal
UMat contour,
@ByVal
UMat convexhull,
@ByVal
UMat convexityDefects)
convexityDefects
@Namespace(value="cv")
public static void convexityDefects(@ByVal
GpuMat contour,
@ByVal
GpuMat convexhull,
@ByVal
GpuMat convexityDefects)
isContourConvex
@Namespace(value="cv")
@Cast(value="bool")
public static boolean isContourConvex(@ByVal
Mat contour)
contour
- Input vector of 2D points, stored in std::vector\<\> or Mat
isContourConvex
@Namespace(value="cv")
@Cast(value="bool")
public static boolean isContourConvex(@ByVal
UMat contour)
isContourConvex
@Namespace(value="cv")
@Cast(value="bool")
public static boolean isContourConvex(@ByVal
GpuMat contour)
intersectConvexConvex
@Namespace(value="cv")
public static float intersectConvexConvex(@ByVal
Mat _p1,
@ByVal
Mat _p2,
@ByVal
Mat _p12,
@Cast(value="bool")
boolean handleNested)
_p1
- First polygon_p2
- Second polygon_p12
- Output polygon describing the intersecting areahandleNested
- When true, an intersection is found if one of the polygons is fully enclosed in the other.
When false, no intersection is found. If the polygons share a side or the vertex of one polygon lies on an edge
of the other, they are not considered nested and an intersection will be found regardless of the value of handleNested.
intersectConvexConvex
@Namespace(value="cv")
public static float intersectConvexConvex(@ByVal
Mat _p1,
@ByVal
Mat _p2,
@ByVal
Mat _p12)
intersectConvexConvex
@Namespace(value="cv")
public static float intersectConvexConvex(@ByVal
UMat _p1,
@ByVal
UMat _p2,
@ByVal
UMat _p12,
@Cast(value="bool")
boolean handleNested)
intersectConvexConvex
@Namespace(value="cv")
public static float intersectConvexConvex(@ByVal
UMat _p1,
@ByVal
UMat _p2,
@ByVal
UMat _p12)
intersectConvexConvex
@Namespace(value="cv")
public static float intersectConvexConvex(@ByVal
GpuMat _p1,
@ByVal
GpuMat _p2,
@ByVal
GpuMat _p12,
@Cast(value="bool")
boolean handleNested)
intersectConvexConvex
@Namespace(value="cv")
public static float intersectConvexConvex(@ByVal
GpuMat _p1,
@ByVal
GpuMat _p2,
@ByVal
GpuMat _p12)
fitEllipse
@Namespace(value="cv")
@ByVal
public static RotatedRect fitEllipse(@ByVal
Mat points)
points
- Input 2D point set, stored in std::vector\<\> or Mat
fitEllipse
@Namespace(value="cv")
@ByVal
public static RotatedRect fitEllipse(@ByVal
UMat points)
fitEllipse
@Namespace(value="cv")
@ByVal
public static RotatedRect fitEllipse(@ByVal
GpuMat points)
fitEllipseAMS
@Namespace(value="cv")
@ByVal
public static RotatedRect fitEllipseAMS(@ByVal
Mat points)
\chi= \left(x^2, x y, y^2, x, y, 1\right)
,
which is a set of six free coefficients A^T=\left\{A_{\text{xx}},A_{\text{xy}},A_{\text{yy}},A_x,A_y,A_0\right\}
.
However, to specify an ellipse, all that is needed is five numbers; the major and minor axes lengths (a,b)
,
the position (x_0,y_0)
, and the orientation \theta
. This is because the basis set includes lines,
quadratics, parabolic and hyperbolic functions as well as elliptical functions as possible fits.
If the fit is found to be a parabolic or hyperbolic function then the standard #fitEllipse method is used.
The AMS method restricts the fit to parabolic, hyperbolic and elliptical curves
by imposing the condition that A^T ( D_x^T D_x + D_y^T D_y) A = 1
where
the matrices Dx
and Dy
are the partial derivatives of the design matrix D
with
respect to x and y. The matrices are formed row by row applying the following to
each of the points in the set:
The AMS method minimizes the cost function
\begin{align*}
D(i,:)&=\left\{x_i^2, x_i y_i, y_i^2, x_i, y_i, 1\right\} &
D_x(i,:)&=\left\{2 x_i,y_i,0,1,0,0\right\} &
D_y(i,:)&=\left\{0,x_i,2 y_i,0,1,0\right\}
\end{align*}
\begin{equation*}
\epsilon ^2=\frac{ A^T D^T D A }{ A^T (D_x^T D_x + D_y^T D_y) A^T }
\end{equation*}
\begin{equation*}
D^T D A = \lambda \left( D_x^T D_x + D_y^T D_y\right) A
\end{equation*}
points
- Input 2D point set, stored in std::vector\<\> or Mat
fitEllipseAMS
@Namespace(value="cv")
@ByVal
public static RotatedRect fitEllipseAMS(@ByVal
UMat points)
fitEllipseAMS
@Namespace(value="cv")
@ByVal
public static RotatedRect fitEllipseAMS(@ByVal
GpuMat points)
fitEllipseDirect
@Namespace(value="cv")
@ByVal
public static RotatedRect fitEllipseDirect(@ByVal
Mat points)
\chi= \left(x^2, x y, y^2, x, y, 1\right)
,
which is a set of six free coefficients A^T=\left\{A_{\text{xx}},A_{\text{xy}},A_{\text{yy}},A_x,A_y,A_0\right\}
.
However, to specify an ellipse, all that is needed is five numbers; the major and minor axes lengths (a,b)
,
the position (x_0,y_0)
, and the orientation \theta
. This is because the basis set includes lines,
quadratics, parabolic and hyperbolic functions as well as elliptical functions as possible fits.
The Direct method confines the fit to ellipses by ensuring that 4 A_{xx} A_{yy}- A_{xy}^2 > 0
.
The condition imposed is that 4 A_{xx} A_{yy}- A_{xy}^2=1
which satisfies the inequality
and as the coefficients can be arbitrarily scaled is not overly restrictive.
\begin{equation*}
\epsilon ^2= A^T D^T D A \quad \text{with} \quad A^T C A =1 \quad \text{and} \quad C=\left(\begin{matrix}
0 & 0 & 2 & 0 & 0 & 0 \\
0 & -1 & 0 & 0 & 0 & 0 \\
2 & 0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 & 0
\end{matrix} \right)
\end{equation*}
\begin{equation*}
D^T D A = \lambda \left( C\right) A
\end{equation*}
\lambda
which is chosen as the solution
with its eigenvector \mathbf{u}
. These are used to find the coefficients
The scaling factor guarantees that \begin{equation*}
A = \sqrt{\frac{1}{\mathbf{u}^T C \mathbf{u}}} \mathbf{u}
\end{equation*}
A^T C A =1
.
points
- Input 2D point set, stored in std::vector\<\> or Mat
fitEllipseDirect
@Namespace(value="cv")
@ByVal
public static RotatedRect fitEllipseDirect(@ByVal
UMat points)
fitEllipseDirect
@Namespace(value="cv")
@ByVal
public static RotatedRect fitEllipseDirect(@ByVal
GpuMat points)
fitLine
@Namespace(value="cv")
public static void fitLine(@ByVal
Mat points,
@ByVal
Mat line,
int distType,
double param,
double reps,
double aeps)
\sum_i \rho(r_i)
where
r_i
is a distance between the i^{th}
point, the line and \rho(r)
is a distance function, one
of the following:
- DIST_L2
- DIST_L1
\[\rho (r) = r^2/2 \quad \text{(the simplest and the fastest least-squares method)}\]
- DIST_L12
\[\rho (r) = r\]
- DIST_FAIR
\[\rho (r) = 2 \cdot ( \sqrt{1 + \frac{r^2}{2}} - 1)\]
- DIST_WELSCH
\[\rho \left (r \right ) = C^2 \cdot \left ( \frac{r}{C} - \log{\left(1 + \frac{r}{C}\right)} \right ) \quad \text{where} \quad C=1.3998\]
- DIST_HUBER
\[\rho \left (r \right ) = \frac{C^2}{2} \cdot \left ( 1 - \exp{\left(-\left(\frac{r}{C}\right)^2\right)} \right ) \quad \text{where} \quad C=2.9846\]
\[\rho (r) = \fork{r^2/2}{if \(r < C\)}{C \cdot (r-C/2)}{otherwise} \quad \text{where} \quad C=1.345\]
w_i
are adjusted to be inversely proportional to \rho(r_i)
.
points
- Input vector of 2D or 3D points, stored in std::vector\<\> or Mat.line
- Output line parameters. In case of 2D fitting, it should be a vector of 4 elements
(like Vec4f) - (vx, vy, x0, y0), where (vx, vy) is a normalized vector collinear to the line and
(x0, y0) is a point on the line. In case of 3D fitting, it should be a vector of 6 elements (like
Vec6f) - (vx, vy, vz, x0, y0, z0), where (vx, vy, vz) is a normalized vector collinear to the line
and (x0, y0, z0) is a point on the line.distType
- Distance used by the M-estimator, see #DistanceTypesparam
- Numerical parameter ( C ) for some types of distances. If it is 0, an optimal value
is chosen.reps
- Sufficient accuracy for the radius (distance between the coordinate origin and the line).aeps
- Sufficient accuracy for the angle. 0.01 would be a good default value for reps and aeps.
fitLine
@Namespace(value="cv")
public static void fitLine(@ByVal
UMat points,
@ByVal
UMat line,
int distType,
double param,
double reps,
double aeps)
fitLine
@Namespace(value="cv")
public static void fitLine(@ByVal
GpuMat points,
@ByVal
GpuMat line,
int distType,
double param,
double reps,
double aeps)
pointPolygonTest
@Namespace(value="cv")
public static double pointPolygonTest(@ByVal
Mat contour,
@ByVal
Point2f pt,
@Cast(value="bool")
boolean measureDist)
contour
- Input contour.pt
- Point tested against the contour.measureDist
- If true, the function estimates the signed distance from the point to the
nearest contour edge. Otherwise, the function only checks if the point is inside a contour or not.
pointPolygonTest
@Namespace(value="cv")
public static double pointPolygonTest(@ByVal
UMat contour,
@ByVal
Point2f pt,
@Cast(value="bool")
boolean measureDist)
pointPolygonTest
@Namespace(value="cv")
public static double pointPolygonTest(@ByVal
GpuMat contour,
@ByVal
Point2f pt,
@Cast(value="bool")
boolean measureDist)
rotatedRectangleIntersection
@Namespace(value="cv")
public static int rotatedRectangleIntersection(@Const @ByRef
RotatedRect rect1,
@Const @ByRef
RotatedRect rect2,
@ByVal
Mat intersectingRegion)
rect1
- First rectanglerect2
- Second rectangleintersectingRegion
- The output array of the vertices of the intersecting region. It returns
at most 8 vertices. Stored as std::vector\
rotatedRectangleIntersection
@Namespace(value="cv")
public static int rotatedRectangleIntersection(@Const @ByRef
RotatedRect rect1,
@Const @ByRef
RotatedRect rect2,
@ByVal
UMat intersectingRegion)
rotatedRectangleIntersection
@Namespace(value="cv")
public static int rotatedRectangleIntersection(@Const @ByRef
RotatedRect rect1,
@Const @ByRef
RotatedRect rect2,
@ByVal
GpuMat intersectingRegion)
createGeneralizedHoughBallard
@Namespace(value="cv")
@opencv_core.Ptr
public static GeneralizedHoughBallard createGeneralizedHoughBallard()
createGeneralizedHoughGuil
@Namespace(value="cv")
@opencv_core.Ptr
public static GeneralizedHoughGuil createGeneralizedHoughGuil()
applyColorMap
@Namespace(value="cv")
public static void applyColorMap(@ByVal
Mat src,
@ByVal
Mat dst,
int colormap)
src
- The source image, grayscale or colored of type CV_8UC1 or CV_8UC3.dst
- The result is the colormapped source image. Note: Mat::create is called on dst.colormap
- The colormap to apply, see #ColormapTypes
applyColorMap
@Namespace(value="cv")
public static void applyColorMap(@ByVal
UMat src,
@ByVal
UMat dst,
int colormap)
applyColorMap
@Namespace(value="cv")
public static void applyColorMap(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
int colormap)
applyColorMap
@Namespace(value="cv")
public static void applyColorMap(@ByVal
Mat src,
@ByVal
Mat dst,
@ByVal
Mat userColor)
src
- The source image, grayscale or colored of type CV_8UC1 or CV_8UC3.dst
- The result is the colormapped source image. Note: Mat::create is called on dst.userColor
- The colormap to apply of type CV_8UC1 or CV_8UC3 and size 256
applyColorMap
@Namespace(value="cv")
public static void applyColorMap(@ByVal
UMat src,
@ByVal
UMat dst,
@ByVal
UMat userColor)
applyColorMap
@Namespace(value="cv")
public static void applyColorMap(@ByVal
GpuMat src,
@ByVal
GpuMat dst,
@ByVal
GpuMat userColor)
line
@Namespace(value="cv")
public static void line(@ByVal
Mat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
img
- Image.pt1
- First point of the line segment.pt2
- Second point of the line segment.color
- Line color.thickness
- Line thickness.lineType
- Type of the line. See #LineTypes.shift
- Number of fractional bits in the point coordinates.
line
@Namespace(value="cv")
public static void line(@ByVal
Mat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color)
line
@Namespace(value="cv")
public static void line(@ByVal
UMat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
line
@Namespace(value="cv")
public static void line(@ByVal
UMat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color)
line
@Namespace(value="cv")
public static void line(@ByVal
GpuMat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
line
@Namespace(value="cv")
public static void line(@ByVal
GpuMat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color)
arrowedLine
@Namespace(value="cv")
public static void arrowedLine(@ByVal
Mat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color,
int thickness,
int line_type,
int shift,
double tipLength)
img
- Image.pt1
- The point the arrow starts from.pt2
- The point the arrow points to.color
- Line color.thickness
- Line thickness.line_type
- Type of the line. See #LineTypesshift
- Number of fractional bits in the point coordinates.tipLength
- The length of the arrow tip in relation to the arrow length
arrowedLine
@Namespace(value="cv")
public static void arrowedLine(@ByVal
Mat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color)
arrowedLine
@Namespace(value="cv")
public static void arrowedLine(@ByVal
UMat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color,
int thickness,
int line_type,
int shift,
double tipLength)
arrowedLine
@Namespace(value="cv")
public static void arrowedLine(@ByVal
UMat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color)
arrowedLine
@Namespace(value="cv")
public static void arrowedLine(@ByVal
GpuMat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color,
int thickness,
int line_type,
int shift,
double tipLength)
arrowedLine
@Namespace(value="cv")
public static void arrowedLine(@ByVal
GpuMat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color)
rectangle
@Namespace(value="cv")
public static void rectangle(@ByVal
Mat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
img
- Image.pt1
- Vertex of the rectangle.pt2
- Vertex of the rectangle opposite to pt1 .color
- Rectangle color or brightness (grayscale image).thickness
- Thickness of lines that make up the rectangle. Negative values, like #FILLED,
mean that the function has to draw a filled rectangle.lineType
- Type of the line. See #LineTypesshift
- Number of fractional bits in the point coordinates.
rectangle
@Namespace(value="cv")
public static void rectangle(@ByVal
Mat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color)
rectangle
@Namespace(value="cv")
public static void rectangle(@ByVal
UMat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
rectangle
@Namespace(value="cv")
public static void rectangle(@ByVal
UMat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color)
rectangle
@Namespace(value="cv")
public static void rectangle(@ByVal
GpuMat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
rectangle
@Namespace(value="cv")
public static void rectangle(@ByVal
GpuMat img,
@ByVal
Point pt1,
@ByVal
Point pt2,
@Const @ByRef
Scalar color)
rectangle
@Namespace(value="cv")
public static void rectangle(@ByVal
Mat img,
@ByVal
Rect rec,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
rec
parameter as alternative specification of the drawn rectangle: r.tl() and
r.br()-Point(1,1)
are opposite corners
rectangle
@Namespace(value="cv")
public static void rectangle(@ByVal
Mat img,
@ByVal
Rect rec,
@Const @ByRef
Scalar color)
rectangle
@Namespace(value="cv")
public static void rectangle(@ByVal
UMat img,
@ByVal
Rect rec,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
rectangle
@Namespace(value="cv")
public static void rectangle(@ByVal
UMat img,
@ByVal
Rect rec,
@Const @ByRef
Scalar color)
rectangle
@Namespace(value="cv")
public static void rectangle(@ByVal
GpuMat img,
@ByVal
Rect rec,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
rectangle
@Namespace(value="cv")
public static void rectangle(@ByVal
GpuMat img,
@ByVal
Rect rec,
@Const @ByRef
Scalar color)
circle
@Namespace(value="cv")
public static void circle(@ByVal
Mat img,
@ByVal
Point center,
int radius,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
img
- Image where the circle is drawn.center
- Center of the circle.radius
- Radius of the circle.color
- Circle color.thickness
- Thickness of the circle outline, if positive. Negative values, like #FILLED,
mean that a filled circle is to be drawn.lineType
- Type of the circle boundary. See #LineTypesshift
- Number of fractional bits in the coordinates of the center and in the radius value.
circle
@Namespace(value="cv")
public static void circle(@ByVal
Mat img,
@ByVal
Point center,
int radius,
@Const @ByRef
Scalar color)
circle
@Namespace(value="cv")
public static void circle(@ByVal
UMat img,
@ByVal
Point center,
int radius,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
circle
@Namespace(value="cv")
public static void circle(@ByVal
UMat img,
@ByVal
Point center,
int radius,
@Const @ByRef
Scalar color)
circle
@Namespace(value="cv")
public static void circle(@ByVal
GpuMat img,
@ByVal
Point center,
int radius,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
circle
@Namespace(value="cv")
public static void circle(@ByVal
GpuMat img,
@ByVal
Point center,
int radius,
@Const @ByRef
Scalar color)
ellipse
@Namespace(value="cv")
public static void ellipse(@ByVal
Mat img,
@ByVal
Point center,
@ByVal
Size axes,
double angle,
double startAngle,
double endAngle,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
startAngle=0
and
endAngle=360
. If startAngle
is greater than endAngle
, they are swapped. The figure below explains
the meaning of the parameters to draw the blue arc.
img
- Image.center
- Center of the ellipse.axes
- Half of the size of the ellipse main axes.angle
- Ellipse rotation angle in degrees.startAngle
- Starting angle of the elliptic arc in degrees.endAngle
- Ending angle of the elliptic arc in degrees.color
- Ellipse color.thickness
- Thickness of the ellipse arc outline, if positive. Otherwise, this indicates that
a filled ellipse sector is to be drawn.lineType
- Type of the ellipse boundary. See #LineTypesshift
- Number of fractional bits in the coordinates of the center and values of axes.
ellipse
@Namespace(value="cv")
public static void ellipse(@ByVal
Mat img,
@ByVal
Point center,
@ByVal
Size axes,
double angle,
double startAngle,
double endAngle,
@Const @ByRef
Scalar color)
ellipse
@Namespace(value="cv")
public static void ellipse(@ByVal
UMat img,
@ByVal
Point center,
@ByVal
Size axes,
double angle,
double startAngle,
double endAngle,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
ellipse
@Namespace(value="cv")
public static void ellipse(@ByVal
UMat img,
@ByVal
Point center,
@ByVal
Size axes,
double angle,
double startAngle,
double endAngle,
@Const @ByRef
Scalar color)
ellipse
@Namespace(value="cv")
public static void ellipse(@ByVal
GpuMat img,
@ByVal
Point center,
@ByVal
Size axes,
double angle,
double startAngle,
double endAngle,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
ellipse
@Namespace(value="cv")
public static void ellipse(@ByVal
GpuMat img,
@ByVal
Point center,
@ByVal
Size axes,
double angle,
double startAngle,
double endAngle,
@Const @ByRef
Scalar color)
ellipse
@Namespace(value="cv")
public static void ellipse(@ByVal
Mat img,
@Const @ByRef
RotatedRect box,
@Const @ByRef
Scalar color,
int thickness,
int lineType)
img
- Image.box
- Alternative ellipse representation via RotatedRect. This means that the function draws
an ellipse inscribed in the rotated rectangle.color
- Ellipse color.thickness
- Thickness of the ellipse arc outline, if positive. Otherwise, this indicates that
a filled ellipse sector is to be drawn.lineType
- Type of the ellipse boundary. See #LineTypes
ellipse
@Namespace(value="cv")
public static void ellipse(@ByVal
Mat img,
@Const @ByRef
RotatedRect box,
@Const @ByRef
Scalar color)
ellipse
@Namespace(value="cv")
public static void ellipse(@ByVal
UMat img,
@Const @ByRef
RotatedRect box,
@Const @ByRef
Scalar color,
int thickness,
int lineType)
ellipse
@Namespace(value="cv")
public static void ellipse(@ByVal
UMat img,
@Const @ByRef
RotatedRect box,
@Const @ByRef
Scalar color)
ellipse
@Namespace(value="cv")
public static void ellipse(@ByVal
GpuMat img,
@Const @ByRef
RotatedRect box,
@Const @ByRef
Scalar color,
int thickness,
int lineType)
ellipse
@Namespace(value="cv")
public static void ellipse(@ByVal
GpuMat img,
@Const @ByRef
RotatedRect box,
@Const @ByRef
Scalar color)
drawMarker
@Namespace(value="cv")
public static void drawMarker(@ByVal
Mat img,
@ByVal
Point _position,
@Const @ByRef
Scalar color,
int markerType,
int markerSize,
int thickness,
int line_type)
img
- Image.position
- The point where the crosshair is positioned.color
- Line color.markerType
- The specific type of marker you want to use, see #MarkerTypesthickness
- Line thickness.line_type
- Type of the line, See #LineTypesmarkerSize
- The length of the marker axis [default = 20 pixels]
drawMarker
@Namespace(value="cv")
public static void drawMarker(@ByVal
Mat img,
@ByVal
Point _position,
@Const @ByRef
Scalar color)
drawMarker
@Namespace(value="cv")
public static void drawMarker(@ByVal
UMat img,
@ByVal
Point _position,
@Const @ByRef
Scalar color,
int markerType,
int markerSize,
int thickness,
int line_type)
drawMarker
@Namespace(value="cv")
public static void drawMarker(@ByVal
UMat img,
@ByVal
Point _position,
@Const @ByRef
Scalar color)
drawMarker
@Namespace(value="cv")
public static void drawMarker(@ByVal
GpuMat img,
@ByVal
Point _position,
@Const @ByRef
Scalar color,
int markerType,
int markerSize,
int thickness,
int line_type)
drawMarker
@Namespace(value="cv")
public static void drawMarker(@ByVal
GpuMat img,
@ByVal
Point _position,
@Const @ByRef
Scalar color)
fillConvexPoly
@Namespace(value="cv")
public static void fillConvexPoly(@ByVal
Mat img,
@Const
Point pts,
int npts,
@Const @ByRef
Scalar color,
int lineType,
int shift)
fillConvexPoly
@Namespace(value="cv")
public static void fillConvexPoly(@ByVal
Mat img,
@Const
Point pts,
int npts,
@Const @ByRef
Scalar color)
fillConvexPoly
@Namespace(value="cv")
public static void fillConvexPoly(@ByVal
UMat img,
@Const
Point pts,
int npts,
@Const @ByRef
Scalar color,
int lineType,
int shift)
fillConvexPoly
@Namespace(value="cv")
public static void fillConvexPoly(@ByVal
UMat img,
@Const
Point pts,
int npts,
@Const @ByRef
Scalar color)
fillConvexPoly
@Namespace(value="cv")
public static void fillConvexPoly(@ByVal
GpuMat img,
@Const
Point pts,
int npts,
@Const @ByRef
Scalar color,
int lineType,
int shift)
fillConvexPoly
@Namespace(value="cv")
public static void fillConvexPoly(@ByVal
GpuMat img,
@Const
Point pts,
int npts,
@Const @ByRef
Scalar color)
fillConvexPoly
@Namespace(value="cv")
public static void fillConvexPoly(@ByVal
Mat img,
@ByVal
Mat points,
@Const @ByRef
Scalar color,
int lineType,
int shift)
img
- Image.points
- Polygon vertices.color
- Polygon color.lineType
- Type of the polygon boundaries. See #LineTypesshift
- Number of fractional bits in the vertex coordinates.
fillConvexPoly
@Namespace(value="cv")
public static void fillConvexPoly(@ByVal
Mat img,
@ByVal
Mat points,
@Const @ByRef
Scalar color)
fillConvexPoly
@Namespace(value="cv")
public static void fillConvexPoly(@ByVal
UMat img,
@ByVal
UMat points,
@Const @ByRef
Scalar color,
int lineType,
int shift)
fillConvexPoly
@Namespace(value="cv")
public static void fillConvexPoly(@ByVal
UMat img,
@ByVal
UMat points,
@Const @ByRef
Scalar color)
fillConvexPoly
@Namespace(value="cv")
public static void fillConvexPoly(@ByVal
GpuMat img,
@ByVal
GpuMat points,
@Const @ByRef
Scalar color,
int lineType,
int shift)
fillConvexPoly
@Namespace(value="cv")
public static void fillConvexPoly(@ByVal
GpuMat img,
@ByVal
GpuMat points,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
Mat img,
@Cast(value="const cv::Point**")
PointerPointer pts,
@Const
IntPointer npts,
int ncontours,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
Mat img,
@Const @ByPtrPtr
Point pts,
@Const
IntPointer npts,
int ncontours,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
Mat img,
@Const @ByPtrPtr
Point pts,
@Const
IntPointer npts,
int ncontours,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
Mat img,
@Const @ByPtrPtr
Point pts,
@Const
IntBuffer npts,
int ncontours,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
Mat img,
@Const @ByPtrPtr
Point pts,
@Const
IntBuffer npts,
int ncontours,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
Mat img,
@Const @ByPtrPtr
Point pts,
@Const
int[] npts,
int ncontours,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
Mat img,
@Const @ByPtrPtr
Point pts,
@Const
int[] npts,
int ncontours,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
UMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntPointer npts,
int ncontours,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
UMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntPointer npts,
int ncontours,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
UMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntBuffer npts,
int ncontours,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
UMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntBuffer npts,
int ncontours,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
UMat img,
@Const @ByPtrPtr
Point pts,
@Const
int[] npts,
int ncontours,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
UMat img,
@Const @ByPtrPtr
Point pts,
@Const
int[] npts,
int ncontours,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
GpuMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntPointer npts,
int ncontours,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
GpuMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntPointer npts,
int ncontours,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
GpuMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntBuffer npts,
int ncontours,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
GpuMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntBuffer npts,
int ncontours,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
GpuMat img,
@Const @ByPtrPtr
Point pts,
@Const
int[] npts,
int ncontours,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
GpuMat img,
@Const @ByPtrPtr
Point pts,
@Const
int[] npts,
int ncontours,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
Mat img,
@ByVal
MatVector pts,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
img
- Image.pts
- Array of polygons where each polygon is represented as an array of points.color
- Polygon color.lineType
- Type of the polygon boundaries. See #LineTypesshift
- Number of fractional bits in the vertex coordinates.offset
- Optional offset of all points of the contours.
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
Mat img,
@ByVal
MatVector pts,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
Mat img,
@ByVal
UMatVector pts,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
Mat img,
@ByVal
UMatVector pts,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
Mat img,
@ByVal
GpuMatVector pts,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
Mat img,
@ByVal
GpuMatVector pts,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
UMat img,
@ByVal
MatVector pts,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
UMat img,
@ByVal
MatVector pts,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
UMat img,
@ByVal
UMatVector pts,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
UMat img,
@ByVal
UMatVector pts,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
UMat img,
@ByVal
GpuMatVector pts,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
UMat img,
@ByVal
GpuMatVector pts,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
GpuMat img,
@ByVal
MatVector pts,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
GpuMat img,
@ByVal
MatVector pts,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
GpuMat img,
@ByVal
UMatVector pts,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
GpuMat img,
@ByVal
UMatVector pts,
@Const @ByRef
Scalar color)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
GpuMat img,
@ByVal
GpuMatVector pts,
@Const @ByRef
Scalar color,
int lineType,
int shift,
@ByVal(nullValue="cv::Point()")
Point offset)
fillPoly
@Namespace(value="cv")
public static void fillPoly(@ByVal
GpuMat img,
@ByVal
GpuMatVector pts,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
Mat img,
@Cast(value="const cv::Point*const*")
PointerPointer pts,
@Const
IntPointer npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
Mat img,
@Const @ByPtrPtr
Point pts,
@Const
IntPointer npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
Mat img,
@Const @ByPtrPtr
Point pts,
@Const
IntPointer npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
Mat img,
@Const @ByPtrPtr
Point pts,
@Const
IntBuffer npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
Mat img,
@Const @ByPtrPtr
Point pts,
@Const
IntBuffer npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
Mat img,
@Const @ByPtrPtr
Point pts,
@Const
int[] npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
Mat img,
@Const @ByPtrPtr
Point pts,
@Const
int[] npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
UMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntPointer npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
UMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntPointer npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
UMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntBuffer npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
UMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntBuffer npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
UMat img,
@Const @ByPtrPtr
Point pts,
@Const
int[] npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
UMat img,
@Const @ByPtrPtr
Point pts,
@Const
int[] npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
GpuMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntPointer npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
GpuMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntPointer npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
GpuMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntBuffer npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
GpuMat img,
@Const @ByPtrPtr
Point pts,
@Const
IntBuffer npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
GpuMat img,
@Const @ByPtrPtr
Point pts,
@Const
int[] npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
GpuMat img,
@Const @ByPtrPtr
Point pts,
@Const
int[] npts,
int ncontours,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
Mat img,
@ByVal
MatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
img
- Image.pts
- Array of polygonal curves.isClosed
- Flag indicating whether the drawn polylines are closed or not. If they are closed,
the function draws a line from the last vertex of each curve to its first vertex.color
- Polyline color.thickness
- Thickness of the polyline edges.lineType
- Type of the line segments. See #LineTypesshift
- Number of fractional bits in the vertex coordinates.
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
Mat img,
@ByVal
MatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
Mat img,
@ByVal
UMatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
Mat img,
@ByVal
UMatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
Mat img,
@ByVal
GpuMatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
Mat img,
@ByVal
GpuMatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
UMat img,
@ByVal
MatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
UMat img,
@ByVal
MatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
UMat img,
@ByVal
UMatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
UMat img,
@ByVal
UMatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
UMat img,
@ByVal
GpuMatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
UMat img,
@ByVal
GpuMatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
GpuMat img,
@ByVal
MatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
GpuMat img,
@ByVal
MatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
GpuMat img,
@ByVal
UMatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
GpuMat img,
@ByVal
UMatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
GpuMat img,
@ByVal
GpuMatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
int shift)
polylines
@Namespace(value="cv")
public static void polylines(@ByVal
GpuMat img,
@ByVal
GpuMatVector pts,
@Cast(value="bool")
boolean isClosed,
@Const @ByRef
Scalar color)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
Mat image,
@ByVal
MatVector contours,
int contourIdx,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat hierarchy,
int maxLevel,
@ByVal(nullValue="cv::Point()")
Point offset)
\texttt{thickness} \ge 0
or fills the area
bounded by the contours if \texttt{thickness}<0
. The example below shows how to retrieve
connected components from the binary image and label them: :
\include snippets/imgproc_drawContours.cpp
image
- Destination image.contours
- All the input contours. Each contour is stored as a point vector.contourIdx
- Parameter indicating a contour to draw. If it is negative, all the contours are drawn.color
- Color of the contours.thickness
- Thickness of lines the contours are drawn with. If it is negative (for example,
thickness=#FILLED ), the contour interiors are drawn.lineType
- Line connectivity. See #LineTypeshierarchy
- Optional information about hierarchy. It is only needed if you want to draw only
some of the contours (see maxLevel ).maxLevel
- Maximal level for drawn contours. If it is 0, only the specified contour is drawn.
If it is 1, the function draws the contour(s) and all the nested contours. If it is 2, the function
draws the contours, all the nested contours, all the nested-to-nested contours, and so on. This
parameter is only taken into account when there is hierarchy available.offset
- Optional contour shift parameter. Shift all the drawn contours by the specified
\texttt{offset}=(dx,dy)
.
\note When thickness=#FILLED, the function is designed to handle connected components with holes correctly
even when no hierarchy date is provided. This is done by analyzing all the outlines together
using even-odd rule. This may give incorrect results if you have a joint collection of separately retrieved
contours. In order to solve this problem, you need to call #drawContours separately for each sub-group
of contours, or iterate over the collection using contourIdx parameter.
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
Mat image,
@ByVal
MatVector contours,
int contourIdx,
@Const @ByRef
Scalar color)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
Mat image,
@ByVal
UMatVector contours,
int contourIdx,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat hierarchy,
int maxLevel,
@ByVal(nullValue="cv::Point()")
Point offset)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
Mat image,
@ByVal
UMatVector contours,
int contourIdx,
@Const @ByRef
Scalar color)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
Mat image,
@ByVal
GpuMatVector contours,
int contourIdx,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
Mat hierarchy,
int maxLevel,
@ByVal(nullValue="cv::Point()")
Point offset)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
Mat image,
@ByVal
GpuMatVector contours,
int contourIdx,
@Const @ByRef
Scalar color)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
UMat image,
@ByVal
MatVector contours,
int contourIdx,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat hierarchy,
int maxLevel,
@ByVal(nullValue="cv::Point()")
Point offset)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
UMat image,
@ByVal
MatVector contours,
int contourIdx,
@Const @ByRef
Scalar color)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
UMat image,
@ByVal
UMatVector contours,
int contourIdx,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat hierarchy,
int maxLevel,
@ByVal(nullValue="cv::Point()")
Point offset)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
UMat image,
@ByVal
UMatVector contours,
int contourIdx,
@Const @ByRef
Scalar color)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
UMat image,
@ByVal
GpuMatVector contours,
int contourIdx,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
UMat hierarchy,
int maxLevel,
@ByVal(nullValue="cv::Point()")
Point offset)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
UMat image,
@ByVal
GpuMatVector contours,
int contourIdx,
@Const @ByRef
Scalar color)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
GpuMat image,
@ByVal
MatVector contours,
int contourIdx,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat hierarchy,
int maxLevel,
@ByVal(nullValue="cv::Point()")
Point offset)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
GpuMat image,
@ByVal
MatVector contours,
int contourIdx,
@Const @ByRef
Scalar color)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
GpuMat image,
@ByVal
UMatVector contours,
int contourIdx,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat hierarchy,
int maxLevel,
@ByVal(nullValue="cv::Point()")
Point offset)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
GpuMat image,
@ByVal
UMatVector contours,
int contourIdx,
@Const @ByRef
Scalar color)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
GpuMat image,
@ByVal
GpuMatVector contours,
int contourIdx,
@Const @ByRef
Scalar color,
int thickness,
int lineType,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
GpuMat hierarchy,
int maxLevel,
@ByVal(nullValue="cv::Point()")
Point offset)
drawContours
@Namespace(value="cv")
public static void drawContours(@ByVal
GpuMat image,
@ByVal
GpuMatVector contours,
int contourIdx,
@Const @ByRef
Scalar color)
clipLine
@Namespace(value="cv")
@Cast(value="bool")
public static boolean clipLine(@ByVal
Size imgSize,
@ByRef
Point pt1,
@ByRef
Point pt2)
imgSize
- Image size. The image rectangle is Rect(0, 0, imgSize.width, imgSize.height) .pt1
- First line point.pt2
- Second line point.
clipLine
@Namespace(value="cv")
@Cast(value="bool")
public static boolean clipLine(@ByVal
Rect imgRect,
@ByRef
Point pt1,
@ByRef
Point pt2)
imgRect
- Image rectangle.pt1
- First line point.pt2
- Second line point.
ellipse2Poly
@Namespace(value="cv")
public static void ellipse2Poly(@ByVal
Point center,
@ByVal
Size axes,
int angle,
int arcStart,
int arcEnd,
int delta,
@ByRef
PointVector pts)
arcStart
is greater than arcEnd
, they are swapped.
center
- Center of the arc.axes
- Half of the size of the ellipse main axes. See #ellipse for details.angle
- Rotation angle of the ellipse in degrees. See #ellipse for details.arcStart
- Starting angle of the elliptic arc in degrees.arcEnd
- Ending angle of the elliptic arc in degrees.delta
- Angle between the subsequent polyline vertices. It defines the approximation
accuracy.pts
- Output vector of polyline vertices.
ellipse2Poly
@Namespace(value="cv")
public static void ellipse2Poly(@ByVal
Point2d center,
@ByVal
Size2d axes,
int angle,
int arcStart,
int arcEnd,
int delta,
@ByRef
Point2dVector pts)
center
- Center of the arc.axes
- Half of the size of the ellipse main axes. See #ellipse for details.angle
- Rotation angle of the ellipse in degrees. See #ellipse for details.arcStart
- Starting angle of the elliptic arc in degrees.arcEnd
- Ending angle of the elliptic arc in degrees.delta
- Angle between the subsequent polyline vertices. It defines the approximation accuracy.pts
- Output vector of polyline vertices.
putText
@Namespace(value="cv")
public static void putText(@ByVal
Mat img,
@opencv_core.Str
BytePointer text,
@ByVal
Point org,
int fontFace,
double fontScale,
@ByVal
Scalar color,
int thickness,
int lineType,
@Cast(value="bool")
boolean bottomLeftOrigin)
img
- Image.text
- Text string to be drawn.org
- Bottom-left corner of the text string in the image.fontFace
- Font type, see #HersheyFonts.fontScale
- Font scale factor that is multiplied by the font-specific base size.color
- Text color.thickness
- Thickness of the lines used to draw a text.lineType
- Line type. See #LineTypesbottomLeftOrigin
- When true, the image data origin is at the bottom-left corner. Otherwise,
it is at the top-left corner.
putText
@Namespace(value="cv")
public static void putText(@ByVal
Mat img,
@opencv_core.Str
BytePointer text,
@ByVal
Point org,
int fontFace,
double fontScale,
@ByVal
Scalar color)
putText
@Namespace(value="cv")
public static void putText(@ByVal
Mat img,
@opencv_core.Str
String text,
@ByVal
Point org,
int fontFace,
double fontScale,
@ByVal
Scalar color,
int thickness,
int lineType,
@Cast(value="bool")
boolean bottomLeftOrigin)
putText
@Namespace(value="cv")
public static void putText(@ByVal
Mat img,
@opencv_core.Str
String text,
@ByVal
Point org,
int fontFace,
double fontScale,
@ByVal
Scalar color)
putText
@Namespace(value="cv")
public static void putText(@ByVal
UMat img,
@opencv_core.Str
String text,
@ByVal
Point org,
int fontFace,
double fontScale,
@ByVal
Scalar color,
int thickness,
int lineType,
@Cast(value="bool")
boolean bottomLeftOrigin)
putText
@Namespace(value="cv")
public static void putText(@ByVal
UMat img,
@opencv_core.Str
String text,
@ByVal
Point org,
int fontFace,
double fontScale,
@ByVal
Scalar color)
putText
@Namespace(value="cv")
public static void putText(@ByVal
UMat img,
@opencv_core.Str
BytePointer text,
@ByVal
Point org,
int fontFace,
double fontScale,
@ByVal
Scalar color,
int thickness,
int lineType,
@Cast(value="bool")
boolean bottomLeftOrigin)
putText
@Namespace(value="cv")
public static void putText(@ByVal
UMat img,
@opencv_core.Str
BytePointer text,
@ByVal
Point org,
int fontFace,
double fontScale,
@ByVal
Scalar color)
putText
@Namespace(value="cv")
public static void putText(@ByVal
GpuMat img,
@opencv_core.Str
BytePointer text,
@ByVal
Point org,
int fontFace,
double fontScale,
@ByVal
Scalar color,
int thickness,
int lineType,
@Cast(value="bool")
boolean bottomLeftOrigin)
putText
@Namespace(value="cv")
public static void putText(@ByVal
GpuMat img,
@opencv_core.Str
BytePointer text,
@ByVal
Point org,
int fontFace,
double fontScale,
@ByVal
Scalar color)
putText
@Namespace(value="cv")
public static void putText(@ByVal
GpuMat img,
@opencv_core.Str
String text,
@ByVal
Point org,
int fontFace,
double fontScale,
@ByVal
Scalar color,
int thickness,
int lineType,
@Cast(value="bool")
boolean bottomLeftOrigin)
putText
@Namespace(value="cv")
public static void putText(@ByVal
GpuMat img,
@opencv_core.Str
String text,
@ByVal
Point org,
int fontFace,
double fontScale,
@ByVal
Scalar color)
getTextSize
@Namespace(value="cv")
@ByVal
public static Size getTextSize(@opencv_core.Str
BytePointer text,
int fontFace,
double fontScale,
int thickness,
IntPointer baseLine)
String text = "Funny text inside the box";
int fontFace = FONT_HERSHEY_SCRIPT_SIMPLEX;
double fontScale = 2;
int thickness = 3;
Mat img(600, 800, CV_8UC3, Scalar::all(0));
int baseline=0;
Size textSize = getTextSize(text, fontFace,
fontScale, thickness, &baseline);
baseline += thickness;
// center the text
Point textOrg((img.cols - textSize.width)/2,
(img.rows + textSize.height)/2);
// draw the box
rectangle(img, textOrg + Point(0, baseline),
textOrg + Point(textSize.width, -textSize.height),
Scalar(0,0,255));
// ... and the baseline first
line(img, textOrg + Point(0, thickness),
textOrg + Point(textSize.width, thickness),
Scalar(0, 0, 255));
// then put the text itself
putText(img, text, textOrg, fontFace, fontScale,
Scalar::all(255), thickness, 8);
text
- Input text string.fontFace
- Font to use, see #HersheyFonts.fontScale
- Font scale factor that is multiplied by the font-specific base size.thickness
- Thickness of lines used to render the text. See #putText for details.baseLine
- [out] y-coordinate of the baseline relative to the bottom-most text
point.putText
getTextSize
@Namespace(value="cv")
@ByVal
public static Size getTextSize(@opencv_core.Str
String text,
int fontFace,
double fontScale,
int thickness,
IntBuffer baseLine)
getTextSize
@Namespace(value="cv")
@ByVal
public static Size getTextSize(@opencv_core.Str
BytePointer text,
int fontFace,
double fontScale,
int thickness,
int[] baseLine)
getTextSize
@Namespace(value="cv")
@ByVal
public static Size getTextSize(@opencv_core.Str
String text,
int fontFace,
double fontScale,
int thickness,
IntPointer baseLine)
getTextSize
@Namespace(value="cv")
@ByVal
public static Size getTextSize(@opencv_core.Str
BytePointer text,
int fontFace,
double fontScale,
int thickness,
IntBuffer baseLine)
getTextSize
@Namespace(value="cv")
@ByVal
public static Size getTextSize(@opencv_core.Str
String text,
int fontFace,
double fontScale,
int thickness,
int[] baseLine)
getFontScaleFromHeight
@Namespace(value="cv")
public static double getFontScaleFromHeight(int fontFace,
int pixelHeight,
int thickness)
fontFace
- Font to use, see cv::HersheyFonts.pixelHeight
- Pixel height to compute the fontScale forthickness
- Thickness of lines used to render the text.See putText for details.cv::putText
getFontScaleFromHeight
@Namespace(value="cv")
public static double getFontScaleFromHeight(int fontFace,
int pixelHeight)
Copyright © 2020. All rights reserved.