Performing Filter in a specific part of the image
The defined method for filters example binary filter takes two parameters, the source image MAT and destination image MAT and performs filter on the full image.
But what if I want to perform operations like filter in only a part of the image for which we have the contour points (either Point or MatOfPoint).
The solution that I am looking for is in JAVA.