Why interleaving in image?? [message #93613] |
Tue, 06 September 2016 01:31  |
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 #93618 is a reply to message #93617] |
Wed, 07 September 2016 03:15  |
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.
|
|
|