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 
Switch to threaded view of this topic Create a new topic Submit Reply
Why interleaving in image?? [message #93613] Tue, 06 September 2016 01:31 Go to next message
Suresh Negi is currently offline  Suresh Negi
Messages: 28
Registered: August 2016
Junior Member
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
Re: Why interleaving in image?? [message #93617 is a reply to message #93613] Tue, 06 September 2016 21:52 Go to previous messageGo to next 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)
Re: Why interleaving in image?? [message #93618 is a reply to message #93617] Wed, 07 September 2016 03:15 Go to previous message
Suresh Negi is currently offline  Suresh Negi
Messages: 28
Registered: August 2016
Junior Member
On Wednesday, September 7, 2016 at 10:22:43 AM UTC+5:30, Michael Galloy wrote:
> 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)

Thank you.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem regarding ENVI file opening
Next Topic: Basic problem

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

Current Time: Wed Oct 08 09:13:36 PDT 2025

Total time taken to generate the page: 0.00412 seconds