-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage_processing.hpp
More file actions
20 lines (17 loc) · 904 Bytes
/
image_processing.hpp
File metadata and controls
20 lines (17 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef IMAGE_PROCESSING_HPP
#define IMAGE_PROCESSING_HPP
#include <string>
#include <opencv2/opencv.hpp>
void showGrayscale(const cv::Mat& frame);
void showHSV(const cv::Mat& frame);
void showBlurred(const cv::Mat& frame, int kernelSize);
void showThresholded(const cv::Mat& frame, int thresholdValue);
void showCropped(const cv::Mat& frame, int x, int y, int width, int height);
void showResized(const cv::Mat& frame, int newWidth, int newHeight);
void showRotated(const cv::Mat& frame, double angle);
void applyConvolution(const cv::Mat& frame, const cv::Mat& kernel);
void applyErosion(const cv::Mat& frame, int kernelSize);
void applyDilation(const cv::Mat& frame, int kernelSize);
void applyCanny(const cv::Mat& frame, int lowerThreshold, int upperThreshold);
void detectColor(const cv::Mat& frame, std::string choice, int (&lowerBound)[3], int (&upperBound)[3]);
#endif // IMAGE_PROCESSING_HPP