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

Home » Public Forums » archive » Get values from one image according to pixel locations of maxima on another image
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
Get values from one image according to pixel locations of maxima on another image [message #82564] Fri, 21 December 2012 06:05
Dry in water is currently offline  Dry in water
Messages: 18
Registered: October 2012
Junior Member
Hello all

I have two tiff images (named A and B). Both have 7 layers at the same dimension (4169,6289,7). First I'd like to find location of max value in A image and then I need to get the values (not max values, reall values) of B image in matrix dimension (4169, 6289) according to location of max value which found from A image in previous step. I just wrote next code to achieve this purpose. Then I wrote output tiff image. But when I display this tiff image, whole screen is black. Can you tell me what's wrong with this code?
A_max_loc=MAX(A,INDEX,DIMENSION=3)
B_val=B[INDEX]
write_tiff,'D:\Output_IDL\B_val_2000.TIF',B_val

Thank you so much
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Link to Peter Alberts' old map_image library? (lonlat2reg.pro code request)
Next Topic: Re: resizing system variable

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

Current Time: Wed Oct 08 15:26:41 PDT 2025

Total time taken to generate the page: 0.00546 seconds