Creating a region of interest in java

asked 2020-11-19 12:11:10 -0600

Handa gravatar image

updated 2020-11-19 12:50:56 -0600

I need to create a region of interest on my image shaped like a triangle as shown in the figure below: region of interest 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.

edit retag flag offensive close merge delete

Comments

I have seen region_of_interest() function in Python.

where have you seen this ? (i't not part of the opencv api)

berak gravatar imageberak ( 2020-11-19 12:21:03 -0600 )edit

Sorry, I modified my question because I misunderstood. Thanks for your comment.

Handa gravatar imageHanda ( 2020-11-19 12:53:48 -0600 )edit

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.

crackwitz gravatar imagecrackwitz ( 2020-11-19 17:04:43 -0600 )edit