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

Home » Public Forums » archive » Convert 3D to 1D, apply fuction then convert back to 3D
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Convert 3D to 1D, apply fuction then convert back to 3D [message #71439] Sun, 20 June 2010 15:58
Mat is currently offline  Mat
Messages: 14
Registered: December 2009
Junior Member
I am converting a image (5 bands) to 1D using reform. I then apply a
function to this data and get a double "Array[3]"result. How do I then
convert this result back into the origional image dimensions? eg:

image= READ_IMAGE('test.tif')
imagesize = SIZE(image, /DIMENSIONS)
nx=imagesize[1]
ny=imagesize[2]
npix = nx*ny
coords_2d = array_indices([nx,ny], lindgen(npix), /dimen)
imageR= REFORM(image,5,npix)

I then apply a function to this data and get a return in the form of:

IDL> help, ret3
RET3 DOUBLE = Array[3]

I'm struggling to covert this back to a 3D image. Any ideas?
[Message index]
 
Read Message
Previous Topic: bar plot
Next Topic: Re: FITS IO Problem

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

Current Time: Wed Oct 08 20:01:21 PDT 2025

Total time taken to generate the page: 0.00399 seconds