Ask Your Question
0

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

Comments

Have you tried using a polygon to specify the ROI? https://stackoverflow.com/questions/1...

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

@JackGold1 yeah, I looked into those. My detailed question is like this :: https://stackoverflow.com/questions/4...

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

1 answer

Sort by ยป oldest newest most voted
0

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

Stats

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

Seen: 369 times

Last updated: Jun 07 '17