Image processing for crater detection

4 次查看(过去 30 天)
Vishnu
Vishnu 2011-10-27
Can anyone help me with the code for the crater detection of the image
  5 个评论
Vishnu
Vishnu 2011-10-31
can i know how can we do morphological image analysis here ????

请先登录,再进行评论。

回答(1 个)

Ashish Uthama
Ashish Uthama 2012-9-17
"This seems like an interesting problem. I suppose, for the thresholding, the way they calculate the limits Rm, Rmin and Rmax needs to be known. If this is known, the resulting image can be written as easily as:
I = imread('lunar1.png');
For the rgb to hsv conversion (though I don't really see the point doing this), http://www.mathworks.com/help/techdoc/ref/rgb2hsv.html can be used on I.
I = rgb2hsv(I);
I would rather do
I = rgb2gray(I); %So that thresholding in 1 image layer is easier, unless multiband thresholding is what you want.
For the thresholding, something like:
J = (I > Rmin & I < Rmax); %To extract the parts of the image that's needed.
Alternatively, threshold at somewhere suitable so that:
K = (J > Rmed); %where Rmed is between Rmin and Rmax.
now with K, all the morphological operations can be done, since K is already a logical matrix.
You could use imdilate, imerode, with suitable SE, created using strel.
The distance and angle representation seems a bit more complicated, and I would not want to delve into that unless I know more about how it really works.
Hope this helps! "

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by