MATLAB Answers

Problem with roipoly cursor size

3 views (last 30 days)
Chuan Zhang
Chuan Zhang on 12 Apr 2020
Commented: Image Analyst on 12 Apr 2020
Hi,
I am using roipoly to do image segmentation.
The cursor size automatically generated by roipoly is a little too big.
I was wondering if there is anyway to shrink the size of the cursor when selecting ROI? I am doing medical image segmentation so may need a little bit more precision.
Thanks.

  0 Comments

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 12 Apr 2020
See if you can edit roipoly.m and save it out as a new function. First:
>> edit roipoly.m
Then do your changes to change the cursor size. Then do a "Save Copy As..." and call it roipolySmallCursor.m or whatever you want, then in your code call roipolySmallCursor() instead of roipoly().

  2 Comments

Chuan Zhang
Chuan Zhang on 12 Apr 2020
Hi Sir,
Thank you. I did this step, however I am not sure which part I can change to change cursor size....can u help me with that?
Thanks.
Image Analyst
Image Analyst on 12 Apr 2020
I don't know exactly. You have to keep drilling down by typing control-D over the functions, like through createWaitModePolygon(), then into roiPolygon, etc. until you find some function that deals with the cursor size.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!