CCIMXDesktop
 
Loading...
Searching...
No Matches
OpenCV_ProcessAdapter Namespace Reference

The OpenCV_ProcessAdapter namespace provides wrapper functions to apply various OpenCV-based image processing operations. More...

Functions

void grayImage (CVImageImpl *image_mat, int code)
 Converts the image to grayscale using the given conversion code.
 
void processBlurType (CVImageImpl *image_mat, int kernel_size)
 Applies a simple blur to the image using the specified kernel size.
 
void processGaussainBlurType (CVImageImpl *image_mat, int kernal_size, double sigma_x, double sigma_y)
 Applies a Gaussian blur to the image.
 
void processMedianBlurType (CVImageImpl *image_mat, int kernel_size)
 Applies a median blur to the image using the specified kernel size.
 
void processFilterBlurType (CVImageImpl *image_mat, int d, double sigma_color, double sigma_space)
 Applies a bilateral filter to the image.
 
void processCannyDetection (CVImageImpl *image_mat, int low, int high)
 Applies Canny edge detection to the image.
 
void processContoursDrawSession (CVImageImpl *drawmap, CVImageImpl *postProcessed, int contoursMethod)
 Draws contours found in the source image onto the destination map.
 
void generate_hist (CVImageImpl *drawmap, const CVImageImpl *src)
 Generates a histogram visualization from the source image and draws it onto the drawmap.
 
void draw_faces (CVImageImpl *drawmap, const CVImageImpl *src)
 Draws face detection results on the target image.
 

Detailed Description

The OpenCV_ProcessAdapter namespace provides wrapper functions to apply various OpenCV-based image processing operations.

Function Documentation

◆ draw_faces()

void OpenCV_ProcessAdapter::draw_faces ( CVImageImpl drawmap,
const CVImageImpl src 
)

Draws face detection results on the target image.

Parameters
drawmapThe image to draw results on.
srcThe source image used for face detection.

◆ generate_hist()

void OpenCV_ProcessAdapter::generate_hist ( CVImageImpl drawmap,
const CVImageImpl src 
)

Generates a histogram visualization from the source image and draws it onto the drawmap.

Parameters
drawmapThe image to draw the histogram on.
srcThe source image from which the histogram is computed.

◆ grayImage()

void OpenCV_ProcessAdapter::grayImage ( CVImageImpl image_mat,
int  code 
)

Converts the image to grayscale using the given conversion code.

Parameters
image_matPointer to the image data.
codeOpenCV color conversion code (e.g., cv::COLOR_BGR2GRAY).

◆ processBlurType()

void OpenCV_ProcessAdapter::processBlurType ( CVImageImpl image_mat,
int  kernel_size 
)

Applies a simple blur to the image using the specified kernel size.

Parameters
image_matPointer to the image data.
kernel_sizeThe size of the kernel to be used for blurring.

◆ processCannyDetection()

void OpenCV_ProcessAdapter::processCannyDetection ( CVImageImpl image_mat,
int  low,
int  high 
)

Applies Canny edge detection to the image.

Parameters
image_matPointer to the image data.
lowLower threshold for edge detection.
highUpper threshold for edge detection.

◆ processContoursDrawSession()

void OpenCV_ProcessAdapter::processContoursDrawSession ( CVImageImpl drawmap,
CVImageImpl postProcessed,
int  contoursMethod 
)

Draws contours found in the source image onto the destination map.

Parameters
drawmapDestination image where contours will be drawn.
postProcessedSource image to detect contours from.
contoursMethodInteger specifying the OpenCV contour approximation method.

◆ processFilterBlurType()

void OpenCV_ProcessAdapter::processFilterBlurType ( CVImageImpl image_mat,
int  d,
double  sigma_color,
double  sigma_space 
)

Applies a bilateral filter to the image.

Parameters
image_matPointer to the image data.
dDiameter of each pixel neighborhood.
sigma_colorFilter sigma in the color space.
sigma_spaceFilter sigma in the coordinate space.

◆ processGaussainBlurType()

void OpenCV_ProcessAdapter::processGaussainBlurType ( CVImageImpl image_mat,
int  kernal_size,
double  sigma_x,
double  sigma_y 
)

Applies a Gaussian blur to the image.

Parameters
image_matPointer to the image data.
kernal_sizeThe size of the kernel to be used for Gaussian blurring (must be odd).
sigma_xGaussian kernel standard deviation in X direction.
sigma_yGaussian kernel standard deviation in Y direction.

◆ processMedianBlurType()

void OpenCV_ProcessAdapter::processMedianBlurType ( CVImageImpl image_mat,
int  kernel_size 
)

Applies a median blur to the image using the specified kernel size.

Parameters
image_matPointer to the image data.
kernel_sizeSize of the kernel; must be odd and greater than 1.