Files
Catalyst-MDVS/inc/ImagePreprocessor.h
2025-11-20 19:29:00 +08:00

19 lines
483 B
C++

#ifndef IMAGEPREPROCESSOR_H
#define IMAGEPREPROCESSOR_H
#include <opencv2/opencv.hpp>
#include <string>
class ImagePreprocessor {
public:
ImagePreprocessor();
~ImagePreprocessor();
// Apply morphological operations to a mask
void apply_morphology(const cv::Mat& input_mask, cv::Mat& output_mask);
// Apply Gaussian blur to reduce noise
void apply_gaussian_blur(const cv::Mat& input, cv::Mat& output, int kernel_size = 6);
};
#endif // IMAGEPREPROCESSOR_H