#include #include #include #include #include "histo.h" using namespace std; using namespace cv; int main() { Mat img = imread("resources/debrecen_deep.png",IMREAD_COLOR); double ah,fh; minMaxLoc(img,&ah,&fh); Mat dest = (img-ah)*(255.0/(fh-ah)); imshow("dest",dest); img = imread("resources/debrecen_deep.png",IMREAD_COLOR); imshow("basic",img); cvtColor(img,img,COLOR_BGR2HSV); vector channels; split(img,channels); equalizeHist(channels[2],channels[2]); merge(channels,img); cvtColor(img,img,COLOR_HSV2BGR); imshow("dest",img); waitKey(); return 0; }