I have my image mRgba
and when I do this :
Core.inRange(mRgba, B1, B2, mRgba);
I have the result that I expect : all my RGBA image is thresholded between B1 and B2.
Now I want to do this :
Mat roi = mRgba.submat(rect);
Core.inRange(roi, B1, B2, roi);
And it's not apply on my area rectangle, I try everything since 3 hours I can't find a solution...