1 | initial version |
Thank you so much Micheal for your answer.I found solution.Here is my working code :
void roi(Mat& img,int x_point,int y_point,int width ,int height) {
Rect roi = Rect(x_point,y_point,width,height);
Mat roiImg;
roiImg = img(roi);
equalizeHist(roiImg,roiImg);
roiImg.copyTo(img(Rect(x_point, y_point, width, height)));
}
I use histogram for illumination images but I wanted to use it only center of image because of time.My roi function's execute time is "0.2ms".Using "equalizeHist" function's execute time is "1.0ms".In addition to this,when I use "equalizeHist" ,it sometimes causes noises.
You give me some useful information about images.I have always used "cvtColor"
but now i am going to use imread method with(1,0,-1).Have a good day.
2 | No.2 Revision |
Thank you so much Micheal for your answer.I answer. I found solution.Here solution. Here is my working code :code:
void roi(Mat& img,int x_point,int y_point,int width ,int height)
}I use histogram for illumination images but I wanted to use it only on the center of the image because of
time.My time limitations. My roi function's execute time is 0.2ms. Using the equalizeHist
function's execute time is "0.2ms".Using "equalizeHist" function's execute time is "1.0ms".In 1.0ms. In addition to this,when this, when I use "equalizeHist" ,it equalizeHist
, it sometimes causes noises.
You give gave me some useful information about images.I images. I have always used "cvtColor"cvtColor
, but now i I am going to use imread method with(1,0,-1).Have a good day.with (1,0,-1).