Hi all,
I am trying to create a 3D volume of interest (VOI), using imfreehand as in the script below. At the moment it's working but i have to draw my ROI at every single slide. Does anybody know whether it is possible to keep the region of the first slide and adjust it in the next slides?
if true %
s = size (MRI1);for i = 1:s(3); A = MRI1(:,:,i); imshow (A,[]); h = imfreehand(gca); BW = createMask(h); BWs = imcomplement (BW); A(BWs)=0; MRIm (:,:,i) = A;endend
Best Answer