Re: same value, same color, different pictures [message #66734] |
Thu, 11 June 2009 10:51 |
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  |
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.")
|
|
|