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

Home » Public Forums » archive » need the dimensions of an array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: need the dimensions of an array [message #38806 is a reply to message #38748] Sun, 28 March 2004 15:53 Go to previous messageGo to previous message
pissulla is currently offline  pissulla
Messages: 1
Registered: March 2004
Junior Member
Thomas Nehls <thomas.nehls@tu-berlin.de> wrote in message news:<c41a69$pvv$1@mamenchi.zrz.TU-Berlin.DE>...
> Hi,
>
> using read_tiff I Read an image into a variable lets say pixel
> interleaved (channels, columns, rows)
>
> now I need the number of columns and the number of rows
>
> like that:
> img = READ_TIFF(file)
> num_col = ?(img[1])
> num_rows= ?(img[2])
>
> I tried SIZE(img,/Dimensions) which returns: 3, 385, 345
> very nice! I need only the Number "385" and the "345" respectively
> Do you understand what I want to say?
> Thanks
> Tom

Hi Tom,

I'm not sure if I understand your problem, but why don't you use

img = READ_TIFF(file)
info = SIZE(img,/DIMENSIONS)
num_col = info[1]
num_rows = info[2]

now num_col should have the value 385 and num_rows 345.

Cheers, Darius
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Image structure
Next Topic: Re: Averaging quaternions

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

Current Time: Sat Oct 11 00:57:08 PDT 2025

Total time taken to generate the page: 0.88004 seconds