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

Home » Public Forums » archive » Re: rough lines in IDL graphic window
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: rough lines in IDL graphic window [message #46390 is a reply to message #46378] Mon, 14 November 2005 14:40 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
The problem you describe is called aliasing, a common problem in
computer graphics:

http://en.wikipedia.org/wiki/Aliasing


Techniques for minimizing aliasing are called anti-aliasing:

http://en.wikipedia.org/wiki/Anti-aliasing


A simple approach to anti-aliasing is to to create a very large image,
say 4 times your desired size and then use REBIN or CONGRID to shrink
your image back to your desired size. I posted regarding this a while back:

http://tinyurl.com/8dxaq

The code at the bottom of that post could be integrated into your
program which dumps the images to disk.

-Rick


arctorit@yahoo.com wrote:
> Dear all,
> I have a 2D field of which I make contour lines. On the graphic window
> this contour lines
> appear quite rough, i.e. they seem to be formed by small rods one after
> the other.
> When I print this to a PS file, the lines become magically smooth and
> very nice to look at.
>
> Usually I don't care that much about this problem, but as now I would
> like to do a movie,
> starting from graphic window dumps, I would like to have the same
> smooth lines also
> in the graphic window.
>
> If someone can resolve this puzzle.................
>
> Thank you all.
> Franco.
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: One More Mac Question
Next Topic: widget ?

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

Current Time: Sat Oct 11 13:17:58 PDT 2025

Total time taken to generate the page: 0.72036 seconds