Image processing for crater detection
조회 수: 4 (최근 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!