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

Home » Public Forums » archive » Re: same value, same color, different pictures
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: same value, same color, different pictures [message #66734] Thu, 11 June 2009 10:51
Hu is currently offline  Hu
Messages: 35
Registered: January 2009
Member
On Jun 11, 12:52 pm, David Fanning <n...@dfanning.com> wrote:
> Hu writes:
>> I want to got 'same value, same color' in different pictures so that I
>> could make a comparison between the pictures.
>
>> for example, I get two pictures of a same location (picture A and B).
>> the valid range for A and B are [m,n]. now I want to display A and B
>> using same legend. if the values in A and B are same, the got the same
>> color in the pictures.
>
>> How can I do this in IDL?
>
>    minA = Min(A, MAX=maxA)
>    minB = Min(B, MAX=maxB)
>    TV, BytScl(A, MIN=minA < minB, MAX=maxA > maxB)
>    TV, BytScl(B, MIN=minA < minB, MAX=maxA > maxB)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Thanks, David.
Re: same value, same color, different pictures [message #66735 is a reply to message #66734] Thu, 11 June 2009 09:52 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Hu writes:

> I want to got 'same value, same color' in different pictures so that I
> could make a comparison between the pictures.
>
> for example, I get two pictures of a same location (picture A and B).
> the valid range for A and B are [m,n]. now I want to display A and B
> using same legend. if the values in A and B are same, the got the same
> color in the pictures.
>
> How can I do this in IDL?

minA = Min(A, MAX=maxA)
minB = Min(B, MAX=maxB)
TV, BytScl(A, MIN=minA < minB, MAX=maxA > maxB)
TV, BytScl(B, MIN=minA < minB, MAX=maxA > maxB)

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (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: same value, same color, different pictures
Next Topic: Re: huge image file.

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

Current Time: Fri Oct 10 09:07:38 PDT 2025

Total time taken to generate the page: 2.72162 seconds