|
Re: Edge detection for saturn's rings [message #61341 is a reply to message #61340] |
Mon, 14 July 2008 18:45  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
frankosuna writes:
> filteredImage = SMOOTH(filteredImage,.001)
I don't think that SMOOTH function is doing what you
*think* it is doing, unless it belongs to a different
library than the one that comes with IDL. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Edge detection for saturn's rings [message #61342 is a reply to message #61341] |
Mon, 14 July 2008 18:41  |
frankosuna
Messages: 31 Registered: February 2008
|
Member |
|
|
Actually no, that is not the original image. I just did a quick print
screen to show you guys what it was. The original image is a
1024x1024 as is the edge detected. This is the following code that I
have:
LOADCT, 0
mydevice = !D.NAME
SET_PLOT, 'Z'
ERASE
DEVICE, SET_RESOLUTION=[1024,1024]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; SOBEL CODE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
filteredImage = SOBEL(img)
filteredImage=ROTATE(filteredImage, 7)
filteredImage = SMOOTH(filteredImage,.001)
tvscl, congrid(filteredImage, 1024, 1024)
image = TVRead(Filename='edgeDetect',/NODIALOG,/BMP)
image = READ_BMP('/home/users/fjosuna/NASA/CASVU_ISS/
edgeDetect.bmp')
OPENW, lun, 'edgeDetect.dat', /GET_LUN
WRITEU, lun, image
FREE_LUN, lun
ERASE
SET_PLOT, mydevice
|
|
|
Re: Edge detection for saturn's rings [message #61343 is a reply to message #61342] |
Mon, 14 July 2008 18:06  |
ben.bighair
Messages: 221 Registered: April 2007
|
Senior Member |
|
|
On Jul 14, 8:52 pm, David Fanning <n...@dfanning.com> wrote:
> frankosuna writes:
>> I've been trying to use some of the built in edge detection routines
>> implemented in idl such as sobel but I haven't found a very good one
>> that will work for images such as this:
>
>> http://frankosuna.googlepages.com/supportImage.jpg
>
>> I am trying to pull out all of the rings in this image and the best I
>> have gotten is this:
>
>> http://frankosuna.googlepages.com/edgeDetect.jpg
>
>> Any suggestions and opinions are welcome.
>
> Wow. You have admirably high expectations! I would've
> been thrilled with those results. :-)
>
Me, too! But, Frank, the images are two different sizes - is the
color one really the source for the edge image? If so, how did you
convert to greyscale? Did you do any steps other than Sobel?
CHeers,
Ben
|
|
|
|