Info
This question is closed. Reopen it to edit or answer.
Generation of edge stop parameter according to self-snake model
1 view (last 30 days)
Show older comments
I want to generate an edge stop parameter according to the self snake model by G. Sapiro to remove multiplicative noise. The function is g(r) = 1/(1+(r/k)^2), where r is magnitude of ∇u. u is the actual image. My code is as follows
[GradientX,GradientY] = gradient(double(originimg));
Gr = sqrt((GradientX.*GradientX)+(GradientY.*GradientY));
[X1, Y1]=size(Gr);
for i=1:X1
for j=1:Y1
r = mean(Gr(i,:));
end
end
stParam = 1 / (1 + ((r / gradTP)^2));
But I'm not getting the expected result. Please suggest some way out. Thanks in advance.
2 Comments
Geoff Hayes
on 26 Apr 2015
Rajdeep - please describe the result that you are obtaining. Why is it not the expected one?
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!