Image processing for crater detection
12 ビュー (過去 30 日間)
古いコメントを表示
Can anyone help me with the code for the crater detection of the image
回答 (1 件)
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! "
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!