From: sweety on
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
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
modify it by placing b=imfilter(g,h) with intensityofedges=imfilter(g,h);


a=imread(&#8216;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(&#8216;sobel&#8217;);
intensityofedges=imfilter(g,h);
From: Mark Shore on
"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
modify it by placing b=imfilter(g,h) with intensityofedges=imfilter(g,h);
>
>
> a=imread(&#8216;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(&#8216;sobel&#8217;);
> 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
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9
Prev: optimization
Next: real coded ga