sub-images [message #2792] |
Wed, 14 September 1994 07:56  |
pvemulakonda
Messages: 5 Registered: September 1994
|
Junior Member |
|
|
I am working on some images. I have some images of size 256X256 and my problem
is to divide these images into 8X8 sub-images and get the pixel intensity
values of those images. If somebody has already done this kind of thing on IDL
or know about it plz post or E-mail me.
Thanks
|
|
|
Re: sub-images [message #2793 is a reply to message #2792] |
Wed, 14 September 1994 13:28  |
grunes
Messages: 68 Registered: September 1993
|
Member |
|
|
In article <1994Sep14.095644.24172@msuvx1.memphis.edu> pvemulakonda@cc.memphis.edu (PAVAN VEMULAKONDA) writes:
> I am working on some images. I have some images of size 256X256 and my
> problem is to divide these images into 8X8 sub-images and get the pixel
> intensity values of those images. If somebody has already done this kind of
t>hing on IDL or know about it plz post or E-mail me.
if image is x, solution to the average problem is
rebin(x,256/8,256/8)
(opinions expressed are mine alone)
Mitchell R Grunes (grunes@imsy1.nrl.navy.mil)
Allied-Signal Technical Services
c/o Code 7230 Naval Research Lab
|
|
|
Re: sub-images [message #2795 is a reply to message #2792] |
Wed, 14 September 1994 11:39  |
velt
Messages: 19 Registered: June 1994
|
Junior Member |
|
|
> I am working on some images. I have some images of size 256X256 and my problem
> is to divide these images into 8X8 sub-images and get the pixel intensity
> values of those images. If somebody has already done this kind of thing on IDL
> or know about it plz post or E-mail me.
>
> Thanks
Probably the simplest way of doing what you want is this:
IDL> smallims=reform(im,8,32,8,32)
You can index the (xs,ys) 8x8 subimage as smallims(*,xs,*,ys).
Robert Velthuizen,
Digital Medical Imaging Program of the
H. Lee Moffitt Cancer Center and Research Institute at the
University of South Florida.
|
|
|