Previous topic

Highgui Cells

Next topic

ecto_opencv.features2d

This Page

ecto_opencv.imgproc

image manipulation.

ecto_opencv.imgproc

SplitThree

Brief doc

Turn an input image into three image planes of the color channels.

Inputs

  • image   type: cv::Mat   

    image.

Outputs

  • image1   type: cv::Mat   

    First channel image

  • image2   type: cv::Mat   

    Second channel image

  • image3   type: cv::Mat   

    Third channel image

cvtColor

Brief doc

Convert the color of a cv::Mat.

Parameters

  • flag   type: imgproc::Conversion    not required   default: RGB2GRAY

    Legal Values: RGB2RGBA (0)   RGBA2RGB (1)   RGB2BGRA (2)   BGRA2RGB (3)   RGB2BGR (4)   RGBA2BGRA (5)   BGR2GRAY (6)   RGB2GRAY (7)   GRAY2RGB (8)   GRAY2RGBA (9)   BGRA2GRAY (10)   RGBA2GRAY (11)   BGR2BGR565 (12)   RGB2BGR565 (13)   BGR5652BGR (14)   BGR5652RGB (15)   BGRA2BGR565 (16)   RGBA2BGR565 (17)   BGR5652BGRA (18)   BGR5652RGBA (19)   GRAY2BGR565 (20)   BGR5652GRAY (21)   BGR2BGR555 (22)   RGB2BGR555 (23)   BGR5552BGR (24)   BGR5552RGB (25)   BGRA2BGR555 (26)   RGBA2BGR555 (27)   BGR5552BGRA (28)   BGR5552RGBA (29)   GRAY2BGR555 (30)   BGR5552GRAY (31)   BGR2XYZ (32)   RGB2XYZ (33)   XYZ2BGR (34)   XYZ2RGB (35)   BGR2YCrCb (36)   RGB2YCrCb (37)   YCrCb2BGR (38)   YCrCb2RGB (39)   BGR2HSV (40)   RGB2HSV (41)   BGR2Lab (44)   RGB2Lab (45)   BayerRG2RGB (46)   BayerGR2RGB (47)   BayerBG2RGB (48)   BayerGB2RGB (49)   BGR2Luv (50)   RGB2Luv (51)   BGR2HLS (52)   RGB2HLS (53)   HSV2BGR (54)   HSV2RGB (55)   Lab2BGR (56)   Lab2RGB (57)   Luv2BGR (58)   Luv2RGB (59)   HLS2BGR (60)   HLS2RGB (61)   BayerRG2RGB_VNG (62)   BayerGR2RGB_VNG (63)   BayerBG2RGB_VNG (64)   BayerGB2RGB_VNG (65)   BGR2HSV_FULL (66)   RGB2HSV_FULL (67)   BGR2HLS_FULL (68)   RGB2HLS_FULL (69)   HSV2BGR_FULL (70)   HSV2RGB_FULL (71)   HLS2BGR_FULL (72)   HLS2RGB_FULL (73)   LBGR2Lab (74)   LRGB2Lab (75)   LBGR2Luv (76)   LRGB2Luv (77)   Lab2LBGR (78)   Lab2LRGB (79)   Luv2LBGR (80)   Luv2LRGB (81)   BGR2YUV (82)   RGB2YUV (83)   YUV2BGR (84)   YUV2RGB (85)   BayerBG2GRAY (86)   BayerGB2GRAY (87)   BayerRG2GRAY (88)   BayerGR2GRAY (89)  

    Convertion type.

Inputs

  • image   type: cv::Mat   

    An image.

Outputs

  • image   type: cv::Mat   

    The filtered image.

Scharr

Brief doc

Applies a scharr operator to the input image.

Parameters

  • x   type: int    not required   default: 0

    The derivative order in the x direction

  • y   type: int    not required   default: 0

    The derivative order in the y direction

Inputs

  • image   type: cv::Mat   

    An image.

Outputs

  • image   type: cv::Mat   

    The filtered image.

BitwiseNot

Brief doc

Bitwise not the image.

Inputs

  • input   type: cv::Mat   

    Image to not.

Outputs

  • out   type: cv::Mat   

    !input

Scale

Brief doc

Scales an image.

Parameters

  • factor   type: float    not required   default: 1.0

    Scale the given image by the constant given

  • interpolation   type: imgproc::Interpolation    not required   default: NN

    Legal Values: NN (0)   LINEAR (1)   CUBIC (2)   AREA (3)   LANCZOS4 (4)  

    Interpolation method.

Inputs

  • image   type: cv::Mat   

    An image.

Outputs

  • image   type: cv::Mat   

    The filtered image.

Split

Brief doc

Returns the n’th color channel from the image.

Parameters

  • n   type: int    not required   default: 0

    The number of the channel to select

Inputs

  • image   type: cv::Mat   

    image.

Outputs

  • image   type: cv::Mat   

    channel image

VerticalStepFilter

Brief doc

Applies a vertical step filter to depth images with this noise

Parameters

  • fir_frac   type: double    not required   default: 0.6

    The fraction of the FIR for a valid response

  • fir_size   type: int    not required   default: 20

    The size of the FIR, in pixels

Inputs

  • image   type: cv::Mat   

    An image.

Outputs

  • image   type: cv::Mat   

    The filtered image.

BitwiseAnd

Brief doc

Bitwise and the image.

Inputs

  • a   type: cv::Mat   

    to and with b

  • b   type: cv::Mat   

    to and with a

Outputs

  • out   type: cv::Mat   

    a & b

Adder

Brief doc

Add an image.

Inputs

  • a   type: cv::Mat   

    to add to b

  • b   type: cv::Mat   

    to add to a

Outputs

  • out   type: cv::Mat   

    a + b

EqualizeHistogram

Brief doc

...

Inputs

  • image   type: cv::Mat   

    Image to equalize. If 3 channels, it is firsT converted to HSV and only V is equalized

Outputs

  • image   type: cv::Mat   

    Debug image

Erode

Brief doc

Applies an erosion operator.

Parameters

  • kernel   type: unsigned int    not required   default: 1

    Will determine the kernel size, kernl*2 + 1 is used so that the number is always odd.

  • morph   type: imgproc::Morph    not required   default: RECT

    Legal Values: RECT (0)   CROSS (1)   ELLIPSE (2)  

    Kernel shape

Inputs

  • image   type: cv::Mat   

    An image.

Outputs

  • image   type: cv::Mat   

    The filtered image.

MedianBlur

Brief doc

Applies a median blur operator

Parameters

  • kernel   type: int    not required   default: 3

    kernel size, should be odd

Inputs

  • image   type: cv::Mat   

    An image.

Outputs

  • image   type: cv::Mat   

    The filtered image.

ConvertTo

Brief doc

Convert to.

Parameters

  • alpha   type: double    not required   default: 1.0

    Factor

  • beta   type: double    not required   default: 0.0

    Additive.

  • cv_type   type: int    not required   default: -1

    The cv type for conversion, if -1 use the source type.

Inputs

  • image   type: cv::Mat   

    An image.

Outputs

  • image   type: cv::Mat   

    The filtered image.

Subtract

Brief doc

Subtract two images

Inputs

  • a   type: cv::Mat   

    lhs

  • b   type: cv::Mat   

    rhs

Outputs

  • out   type: cv::Mat   

    a - b

BilateralFilter

Brief doc

Runs a bilateral filter on the image.

Parameters

  • d   type: int    not required   default: -1

    Diameter of each pixel neighborhood that is used during filtering. If it is non-positive, it is computed from sigmaSpace .

  • sigmaColor   type: double    not required   default: 25.0

    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   type: double    not required   default: 3.0

    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 .

Inputs

  • image   type: cv::Mat   

    An image.

Outputs

  • image   type: cv::Mat   

    The filtered image.

NanRemove

Brief doc

Runs a nan removal filter on the image.

Inputs

  • image   type: cv::Mat   

    An image.

Outputs

  • image   type: cv::Mat   

    The filtered image.

Sobel

Brief doc

Runs the sobel operator on the image.

Parameters

  • x   type: int    not required   default: 0

    The derivative order in the x direction

  • y   type: int    not required   default: 0

    The derivative order in the y direction

Inputs

  • image   type: cv::Mat   

    image.

Outputs

  • image   type: cv::Mat   

    sobel image

CartToPolar

Brief doc

Applies a cartesian to polor transform.

Inputs

  • x   type: cv::Mat   

    x derivative image.

  • y   type: cv::Mat   

    y derivative image.

Outputs

  • angle   type: cv::Mat   

    The angle image.

  • magnitude   type: cv::Mat   

    The magnitude image.

Canny

Brief doc

Canny edge detection

Parameters

  • L2gradient   type: bool    not required   default: False

  • apertureSize   type: int    not required   default: 3

  • threshold1   type: double    not required   default: 1.0

  • threshold2   type: double    not required   default: 1.0

Inputs

  • image   type: cv::Mat   

    An image.

Outputs

  • image   type: cv::Mat   

    The filtered image.

GaussianBlur

Brief doc

Applies a gaussian blur operator

Parameters

  • kernel   type: int    not required   default: 0

    kernel size, if zero computed from sigma

  • sigma   type: double    not required   default: 1.0

    The first sigma in the guassian.

Inputs

  • image   type: cv::Mat   

    An image.

Outputs

  • image   type: cv::Mat   

    The filtered image.

Quantize

Brief doc

Divide and multiply an image by a factor.

Parameters

  • alpha   type: double    not required   default: 10.0

    Quantization factor

  • beta   type: double    not required   default: 10.0

    Additive.

Inputs

  • image   type: cv::Mat   

    An image.

Outputs

  • image   type: cv::Mat   

    The filtered image.