I have an MRI image in the form of a 3d array of size 128*128*128. I have identifed the sample using connected components technique. Now I need to define a region of interest around it for further processing with atleast 1 voxel and atmost 5 voxels away from the sample. I can loop around and use mathematical operators, but it costs more. Any idea how to do it efficiently/Is there any inbuilt function?

Thanks in advance

Similar questions and discussions