|
Re: Conversion of 2D to 1D [message #70312 is a reply to message #70222] |
Mon, 29 March 2010 13:05  |
Maxwell Peck
Messages: 61 Registered: February 2010
|
Member |
|
|
On Mar 30, 2:13 am, chris <rog...@googlemail.com> wrote:
> On 29 Mrz., 09:52, Maxwell Peck <maxjp...@gmail.com> wrote:
>
>> On Mar 29, 5:45 pm, Neil <swapneil.v...@gmail.com> wrote:
>
>>> Hi,
>
>>> How can we convert a 2D array (image) into 1D in IDL?
>
>>> Plz reply
>
>>> Regards
>>> Neil
>
>> imageoned = reform(imagetwod,n_elements(imagetwod))
>
> Or simplier: imageoned=imagetwod[*]
>
> Regards
>
> CR
The only reason I don't do it that way is I've never been completely
sure after reading http://www.dfanning.com/misc_tips/submemory.html
whether that operation generates an index vector.
Max
|
|
|