Creating a region of interest in java
I need to create a region of interest on my image shaped like a triangle as shown in the figure below: I need to do this in Java, so I want to ask if there is the same function in Java? or how can I get my triangle region in Java? If anyone knows how can I do that let me know, please. Thanks in advance.
where have you seen this ? (i't not part of the opencv api)
Sorry, I modified my question because I misunderstood. Thanks for your comment.
do you want a binary mask? "region of interest" is an abstract concept. common implementations are binary masks that define the designated pixels in another image, and rectangles that define a rectangular subregion of an image.