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

Home » Public Forums » archive » 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 #76939 is a reply to message #76838] Wed, 13 July 2011 10:47 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jul 13, 2:03 pm, M <manishared...@gmail.com> wrote:
>> Regarding the image intensity, will the problem be solved if I use
>> colored images?

I do not know what you mean there. David was saying that a problem is
that these images seem to be RGB, thus probably their values are not
intensities, but colors derived from a single channel image (the
intensities) mapped through a colortable.

>
> And thirdly, when I have tried the following,
>
> fil = file_search('filepath\*.bmp',COUNT = count)
> imag=read_bmp(fil[0])
> dims=size(imag, /DIMENSIONS)
> arms = make_array(dims[0],dims[1],dims[2],count,/byte)
>
> for i=0, count-1 do begin
>    image = read_bmp(fil[i])
>    arm[*,*,*,i]=image
>     end
>
>    TV,MAX (arm, dimension = 3)
>
>  end
>
> The output is
> Unable to allocate memory: to make array.
>   Not enough space

That is simple. The array arm would be too big to fit in memory. If
you have RGB images with 2216x1254x3 bytes, each is just short of 8MB,
so probably a few hundred of those would be enough to fill your
available memory.
[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
Read Message
Read Message
Previous Topic: Re: Shell startup file not recognized in IDL 8.0 Workbench
Next Topic: Re: percentile with dimension keyword

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

Current Time: Sun Oct 12 07:35:24 PDT 2025

Total time taken to generate the page: 1.76005 seconds