Ask Your Question

Create ROI from a set of points > 4

asked 2017-06-07 03:16:30 -0500

arqam gravatar image

Is it possible to create a roi which is non rectangular?

edit retag flag offensive close merge delete


Have you tried using a polygon to specify the ROI?

JackGold1 gravatar imageJackGold1 ( 2017-06-07 03:30:43 -0500 )edit

@JackGold1 yeah, I looked into those. My detailed question is like this ::

arqam gravatar imagearqam ( 2017-06-07 04:19:15 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-06-07 23:11:13 -0500

berak gravatar image

updated 2017-06-07 23:17:39 -0500

no, it's not possible, a ROI is a rectangle by definition.

what you can do is: draw your shape filled white into an empty black image, and use it as a mask for operations like bitwise_and(), subtract(), copyTo() etc.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-06-07 03:16:30 -0500

Seen: 369 times

Last updated: Jun 07 '17