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

Home » Public Forums » archive » sub-images
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
sub-images [message #2792] Wed, 14 September 1994 07:56 Go to next message
pvemulakonda is currently offline  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 Go to previous message
grunes is currently offline  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 Go to previous message
velt is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL license prices
Next Topic: sound card interface?

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

Current Time: Wed Oct 08 19:49:07 PDT 2025

Total time taken to generate the page: 0.00577 seconds