Prev: optimization
Next: real coded ga
From: sweety on 7 Apr 2010 05:09 a=imread(‘spect heart image jpg'); a=rgb2gray(a); a=imresize(a,[100,100]); f=im2double(a); a= 1.7788; b= 0.4690; c= 1.4201; k= 2.0694; M=mean2(f); z=colfilt(f,[3 3],'sliding',@std); m=colfilt(f,[3 3],'sliding',@mean); t=z+b; A=k.*M; K=A./t; g=K.*(f-(c*m))+(m*a); figure, imshow(f), figure, imshow(g); after enhancing I perform these following commands h=fspecial(‘sobel’); b=imfilter(g,h); this is the way to find intensity of edges detected by sobel edge detector in 3*3 neighbourhood window
From: ImageAnalyst on 7 Apr 2010 06:17 On Apr 7, 5:09 am, "sweety " <sukhisem...(a)yahoo.co.in> wrote: [snip] > h=fspecial(sobel); > b=imfilter(g,h); > > this is the way to find intensity of edges detected by sobel edge detector in 3*3 neighbourhood window --------------------------------------------------------------------------------- Isn't that exactly what your (poorly named) "b" is?
From: sweety on 7 Apr 2010 07:59 modify it by placing b=imfilter(g,h) with intensityofedges=imfilter(g,h); a=imread(‘spect heart image jpg'); a=rgb2gray(a); a=imresize(a,[100,100]); f=im2double(a); a= 1.7788; b= 0.4690; c= 1.4201; k= 2.0694; M=mean2(f); z=colfilt(f,[3 3],'sliding',@std); m=colfilt(f,[3 3],'sliding',@mean); t=z+b; A=k.*M; K=A./t; g=K.*(f-(c*m))+(m*a); figure, imshow(f), figure, imshow(g); after enhancing I perform these following commands h=fspecial(‘sobel’); intensityofedges=imfilter(g,h);
From: Mark Shore on 7 Apr 2010 08:31 "sweety " <sukhisembhi(a)yahoo.co.in> wrote in message <hphf4c$3d7$1(a)fred.mathworks.com>... > what is the difference between std and std2 command http://www.mathworks.com/access/helpdesk/help/toolbox/images/std2.html and for future reference http://www.mathworks.com/support/functions/alpha_list.html
From: sweety on 8 Apr 2010 03:04
modify it by placing b=imfilter(g,h) with intensityofedges=imfilter(g,h); > > > a=imread(‘spect heart image jpg'); > a=rgb2gray(a); > a=imresize(a,[100,100]); > f=im2double(a); > a= 1.7788; > b= 0.4690; > c= 1.4201; > k= 2.0694; > M=mean2(f); > z=colfilt(f,[3 3],'sliding',@std); > m=colfilt(f,[3 3],'sliding',@mean); > t=z+b; > A=k.*M; > K=A./t; > g=K.*(f-(c*m))+(m*a); > figure, imshow(f), figure, imshow(g); > > after enhancing I perform these following commands > > h=fspecial(‘sobel’); > intensityofedges=imfilter(g,h); edges=edge(originalimage,'sobel'); sumofedges=sum(sum(edges)) is this program correct to find edges and intensity of edges detected with sobel edge detector |