comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: ROI stack

ROI stack
type: item
description: Hello, Can anyone see where I'm going wrong here? I'm trying to generate a binary mask of a multislice MRI image. When I run this at the command line it works, but when I put it in a loop, it fails to return anything. i.e. all variables of interest are "undefined" Any help/tips would be appreciated! Thanks, Megan AT COMMAND LINE: xroi, img[*,*,i], regions_out = roi, /Block mask = roi -> ComputeMask(Dimensions = dims, Mask_Rule=2) masks[*,*,i] = mask LOOP: pro twodmask img = read_nifti(dialog_pickfile()) dims = size(img[*,*,3], /dimensions) s = size(img, /dimensions) n_slices = 2 ;s[2] masks = fltarr(dims[0], dims[1], s[2]) for i = 0,n_slices-1 do begin xroi, img[*,*,i], regions_out = roi, /Block mask = roi -> ComputeMask(Dimensions = dims, Mask_Rule=2) masks[*,*,i] = mask endfor end
creator: megan17
date: 2008-06-12T21:45:25-00:00