0

I'm trying to disable resizing of an ROI created with impoly in Matlab.

This link seems to work for ellipse etc, but not for a polygon! -> http://uk.mathworks.com/help/images/ref/imroi.setresizable.html

Any help would be greatly appreciated :)

Harry

EDIT: Apologies, below is the relevant code :)

% Set Caudate & Putamen ROI's
LPutamen = impoly(gca,[LPP1; LPP2; LPP3; LPP4]);
RPutamen = impoly(gca,[RPP1; RPP2; RPP3; RPP4]);
LCaudate = impoly(gca,[LCP1; LCP2; LCP3; LCP4; LCP5]);
RCaudate = impoly(gca,[RCP1; RCP2; RCP3; RCP4; RCP5]);

setResizeable(LPutamen, false);

Etc.

  • Please publish your code within the body of your post so it will be easier for others to review and answer. Using inessential external links makes reviewing and answering questions time consuming and counter-productive. – dmitryro Jul 05 '18 at 23:20
  • 1
    Thew answer can be found here https://stackoverflow.com/questions/38377867/how-to-block-possibility-to-edit-drag-impoly-in-matlab so vote to close as duplicate I guess – visibleman Jul 06 '18 at 05:02
  • Possible duplicate of [How to block possibility to edit/drag impoly in matlab?](https://stackoverflow.com/questions/38377867/how-to-block-possibility-to-edit-drag-impoly-in-matlab) – rwp Jul 06 '18 at 05:36
  • Absolute heroes both of you, thank you!! – Harry Andrews Jul 06 '18 at 13:07

0 Answers0