Prev: Matlab Integration
Next: database
From: Ganesh on 22 Jan 2010 23:05 People please help me in using roipoly and roifilt2 for watershed segmented mri brain tumor image.i want to locate the region in blue which is tumour and enlarge the image However roipoly and roifilt2 when used for watershed segmented image gives error "I must be a two dimensional array." How to use these commands to segment tumor portion? here is the part of code which i used. load mri; I=imread('mri.tif'); BW = edge(I,'sobel') level=0.0001 BW2 = im2bw(I,level); D = bwdist(~I); D = -D; D(~I) = -Inf; L = watershed(D); rgb = label2rgb(L,'jet',[.5 .5 .5]); figure, imshow(rgb) title('Watershed transform of D') c = [5 5 10 10]; r = [10 5 5 10]; BW3 = roipoly(rgb,c,r); h = fspecial('unsharp'); J = roifilt2(h,rgb,BW3); imshow(J) please help me in using command..
From: ImageAnalyst on 23 Jan 2010 00:31 You can't pass in an rgb image into roifilt2(). It has to be a 2D monochrome image. Not sure why you'd want to do an unsharp filter on a labeled image anyway - what's the rationale for that?
|
Pages: 1 Prev: Matlab Integration Next: database |