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

Home » Public Forums » archive » Why interleaving in image??
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: Why interleaving in image?? [message #93617 is a reply to message #93613] Tue, 06 September 2016 21:52 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 9/6/16 2:31 AM, Sanu wrote:
> Why we have to use interleaving in image in IDL.
> Please tell me meaning of this..How image size is different from image dimension.
>
> imageSize = imageInfo.dimensions
> image = READ_IMAGE(file)
> imageDims = SIZE(image, /DIMENSIONS)
> interleaving = WHERE((imageDims NE imageSize[0]) AND (imageDims NE imageSize[1])) + 1
> PRINT, 'Type of Interleaving = ', interleaving
>

When there are many channels to an image, you end up with a
3-dimensional cube of images instead of just a single m by n array. But
this gives three choices for the dimensions when you have a cube: m by n
by nbands (band sequential), m by nbands by n (band interleaved by
pixel), or nbands by m by n (band interleaved). These simply indicate
the order the bytes are stored (which can effect performance depending
on how you intend to access the data).

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Problem regarding ENVI file opening
Next Topic: Basic problem

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

Current Time: Sat Oct 11 09:29:54 PDT 2025

Total time taken to generate the page: 1.12506 seconds