I need to create region of interest on my image shaped like a triangle as shown in the figure below: I have seen region_of_interest() function in Python. But 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.