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

Home » Public Forums » archive » miracle of !order
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
miracle of !order [message #42656] Sat, 19 February 2005 04:10 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Dear all

probably this is already known, but there is some risk to do something wrong
so I like to note it here. Probably David likes to put it on his marvellous
page.

I came to a problem reading and processing an image. If I have used the
default !order=0 all goes right while it wasn't possible to read the text
on the image so I switched to !order=1. Then a journey starts to understand
why all was a bit wrong.

I try to decribe the situation.

We have a circular pattern nearly in the center of a 1024x1024 image. To
compare all the images the pattern must be aligned. First we detected the
center of the circle and then we could do the alignment by rotating the
image around this center point. This was done in a widget by displaying the
image. The widget is used for selecting the center of the circle and some
other things. With !order=0 all goes right.

Then I switched to !order=1 and the results where different. It takes some
time to understand what goes wrong.
If you use !order=1 only the image on screen got's reordered. The function
which I used to rotate (rot) the data of the image does not recognice this
Sysvar set to 1 and it rotates the image not reordered.
The center point was wrong.

If you like to have reordered data on display and you like to do something
else with this image data then you should reorder it yourself. !order=0
should not be changed. That's the only way to use the right data in all
your routines.


cheers
Reimar

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Previous Topic: Weird MIN behavior
Next Topic: Histogram fill?

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

Current Time: Sat Oct 11 13:34:57 PDT 2025

Total time taken to generate the page: 0.88048 seconds