#ifndef IMAGEPREPROCESSOR_H #define IMAGEPREPROCESSOR_H #include #include 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