/***************************************************************************************************************************
沿x,y轴灰度分析
1.文件名格式1.jpg--n.jpg 2.设置文件数
****************************************************************************************************************************/
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <opencv.hpp>
#include <highgui.hpp>
#include <core.hpp>
#define FILES_NUM 1 //文件数
void x_trackbar(int pos, void *userdata);
void y_trackbar(int pos, void *userdata);
int LoadImage(int num);
class img
{
public:
cv::Mat src_image; //1 channels
cv::Mat show_image; //3 channels
int x_now=0, y_now=0; //Trackbar value
int x_Max, y_Max; //Trackbar Max value
// int Length, Width; //src image value
std::string name;
std::string x_TrackbarName, y_TrackbarName;
img();
~img();
void Create_ShowWindow();
void Create_Trackbar()
OPENCV沿x,y灰度检测
最新推荐文章于 2025-04-01 09:47:31 发布