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

Home » Public Forums » archive » Grayscale AND Binary Image
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: Grayscale AND Binary Image [message #29683 is a reply to message #29577] Mon, 11 March 2002 07:41 Go to previous messageGo to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
"Alex Schuster" <alex@pet.mpin-koeln.mpg.de> wrote in message
news:3C8C87B9.AB9F06DC@pet.mpin-koeln.mpg.de...

> And the indices _are_ already there, they are in the index array. If you
> need them as coordinates, you can calculate them like this:
>
> x_coord = index mod x_dim
> y_coord = index / y_dim

That may be a typo. In this kind of calculation, you would usually have:

y_coord = index / x_dim
^
Cheers,
--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL on mandrake 8
Next Topic: Re: CALL_EXTERNAL and memory allocation

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

Current Time: Fri Oct 10 15:11:20 PDT 2025

Total time taken to generate the page: 0.32152 seconds