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

Home » Public Forums » archive » Re: Moving window on an 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: Moving window on an image [message #67667] Sat, 15 August 2009 12:35 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Jeff N. writes:
>
>> Why do you need to add 2 to the indices returned by value_locate()
>> here? I can see why you'd need to add 1 to them, but not 2.
>
> If Value_Locate doesn't find *any* values in a particular
> range, it returns a -1. I can histogram values -1 to 6, but
> it seems to make more intuitive sense to histogram values
> 1 to 8 in this case.

If anyone else is struggling with the details of this,
I have written an article on the subject, which explains
the procedure in a bit more detail than I have included here.

http://www.dfanning.com/idl_way/smregval.html

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Moving window on an image
Next Topic: What a Wild, Wacky Place

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

Current Time: Sat Oct 11 18:48:24 PDT 2025

Total time taken to generate the page: 0.95733 seconds