before ora4

This commit is contained in:
2025-10-02 16:00:02 +02:00
parent 57380d3b55
commit 64c2a7f6be
45 changed files with 611 additions and 1 deletions

24
ora4/main.cpp Normal file
View File

@@ -0,0 +1,24 @@
#include "histo.h"
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
using namespace cv;
int main(){
Mat img = imread("debrecen_deep.png", IMREAD_GRAYSCALE);
imshow("img", img);
Histo::showHisto(img);
double ah, fh;
minMaxLoc(img, &ah, &fh);
Mat dest = (ah == fh) ? img.clone() : (img-ah) * 255 / (fh-ah);
imshow("dest", dest);
Histo::showHisto(dest);
return 0;
}