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

Home » Public Forums » archive » Re: MIP from BMP Images
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: MIP from BMP Images [message #76829 is a reply to message #76828] Wed, 06 July 2011 11:57 Go to previous messageGo to previous message
M R is currently offline  M R
Messages: 19
Registered: July 2011
Junior Member
On Jul 6, 11:57 am, Wox <s...@nomail.com> wrote:
> On Wed, 6 Jul 2011 09:10:27 -0700 (PDT), M R <manisha....@gmail.com>
> wrote:
>
>> I am fairly new to IDl and trying to learn.
>> I have a series of 255 bitmap images in a folder.I have to create a
>> rotating MIP from these images. Each image is of the size 2216 X 1254.
>> I cannot use read_bmp (as mentioned in IDL Help 8.1 as each line
>> should be evenly divisible by 4). I am trying to create a 3D array of
>> the size (3000 X 3000 X 500) in case the image size and number of
>> images change for each data set. How should I go about addressing this
>> issue of loading images into IDL? I will be using FOR loop to build
>> the MIP. I haven't yet thought about rotating the MIP. Any help,
>> suggestions, advice is greatly appreciated. Thank you!
>
> Not an expert in this but:
>
> 1. read_bmp works for me:
> IDL> write_bmp,'c:/tst.bmp',bytarr(2216,1254)
> IDL> help,read_bmp('c:/tst.bmp')
> <Expression>    BYTE      = Array[2216, 1254]
>
> 2. Use read_bmp in a loop just as you suggested. If you run into
> memory issues, use CONGRID or REBIN to make the images smaller before
> adding them to the stack. If all images are of the same dimension in 1
> dataset, why do you need to convert them to 3000x3000?
>
> 3. Checkout XVOLUME_ROTATE+XVOLUME for MIP. Maybe also iVolume and
> xslicer helps?
>
> I must say I was never convinced by IDL's 3D rendering/handling. I
> think products like Avizo and VGStudio MAX are more appropriate.

Thank you for the feedback. I have tried the following. The errors are
pasted below.

arm=bytarr(2216,1254,255,/nozero)
for i=0,254 do begin
file=file_search('filepath.bmp')
image=read_image(file[i])
arm=image[i]
end
TV,MAX(arm,dimension=3)
end

Errors
% Attempt to subscript FILE with I is out of range.

I was changing the array dimensions to 3000X3000X500 to accommodate
data sets of different sizes. Yes, I did run into problems with that
and stuck to 2216 X 1254 X 255.

Why does it say file[i] is out of range?Should I declare file as
another array to store the images?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Aw: Re: Aw: Re: TOTAL gives totally different result on identical array
Next Topic: Variable is undefined: Actually a function

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

Current Time: Fri Oct 10 00:39:17 PDT 2025

Total time taken to generate the page: 0.24142 seconds