Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.
[Solved]Threshold on partial of image
soheil1365 last edited by
I am doing a project with opencv and Qt...
I have a image which is displayed on Qgraphicsview...Then I drew a rectangle by cv::rect on it...
This rectangle is drawn on my image which is loaded in Qgraphicsview.
Now I want to separate this rectangle from my image and do thresholding on it....
How can I do that?I do not want do thresholding on whole of the image just on this rectangle...
please help me...
thanks in advance...
DerManu last edited by
You have the full rect information in rectn (x, y, width, height), so just loop over that rect with QImage::scanLine and do the thresholding.