comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Edge detection for saturn's rings
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Edge detection for saturn's rings [message #61340] Mon, 14 July 2008 18:57
frankosuna is currently offline  frankosuna
Messages: 31
Registered: February 2008
Member
Oh yes... disregard that :) I was just messing with different stuff to
see if I could get better edge detection and forgot to comment that
out.
Re: Edge detection for saturn's rings [message #61341 is a reply to message #61340] Mon, 14 July 2008 18:45 Go to previous message
David Fanning is currently offline  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 Go to previous message
frankosuna is currently offline  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 Go to previous message
ben.bighair is currently offline  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
Re: Edge detection for saturn's rings [message #61344 is a reply to message #61343] Mon, 14 July 2008 17:52 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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. :-)

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: centering dialog_pickfile, printersetup, etc...
Next Topic: Using IDL to make a signal filter

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:30:59 PDT 2025

Total time taken to generate the page: 0.00617 seconds