Filter löschen
Filter löschen

How to make same ROI?

2 Ansichten (letzte 30 Tage)
Prakash Raut
Prakash Raut am 30 Okt. 2020
Beantwortet: Ayush Bansal am 2 Nov. 2020
I draw roi using impoly in figure plotted using plot command. I get the coordinates using getposition.(red line in figure1,see attached). I use this coordinates to draw mask using poly2mask which is rotated and looks rotated and mirror inverted in shape( see attached, figure2).
How can i make my ROI and mask look similar( no mirror invertion and no rotation) and same size?
Any help would be much appreciated.Thank you.

Antworten (1)

Ayush Bansal
Ayush Bansal am 2 Nov. 2020
Make sure while using poly2mask(x,y,m,n), m and n are same dimension as image otherwise image size will change. Check the script for the reference.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by