[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do you read a .bmp file?
From: |
Henry F. Mollet |
Subject: |
Re: How do you read a .bmp file? |
Date: |
Sat, 29 Sep 2007 12:12:46 -0700 |
User-agent: |
Microsoft-Entourage/11.1.0.040913 |
I could not find a 'bmpread.m' in octave-2.9.13 nor on octave-forge site.
I did find 'bmpwrite.m' on the octave forge site.
Henry
on 9/29/07 10:54 AM, Robert A. Macy at address@hidden wrote:
> Not in the binary
> octave-2..9.12-3-setup.exe
>
> I can strip the header from the file, leaving 512 by 512
> bytes of data. So how do I read in that file?
>
> Something about opening the file in 'b' mode and
> sequentially assign the value to a variable. like the
> wavread function does.
>
> Just hoped there was something already written to do this.
>
> Robert
>
> On Sat, 29 Sep 2007 19:31:35 +0200
> Søren Hauberg <address@hidden> wrote:
>> I believe there is a 'bmpread' function in the Octave
>> forge image package. I haven't used it though...
>>
>> Robert A. Macy skrev:
>>> Thank you for your very prompt response and URL's.
>>>
>>> I think I went through this before and found Imagmagic
>> is
>>> always missing or such. Do remember I got some custom
>> code
>>> from here that allowed me to make colored .bmp images.
>>
>>>
>>>
>>> I do most of the work on the Win98
>>> running binary octave 2.1.50a
>>>
>>> I have an adjacent machine running WinXP Professional
>> which
>>> I could try running the binary 2.9.12. I don't use that
>>> version of octave, because all my plot routines died.
>>>
>>> However, I could open the .bmp with it, store the data
>> as
>>> .txt, and then open the data file using 2.1.50a
>>>
>>> Is that possible? Does 2.9.12 have an easy way to read
>>> .bmp's ?
>>>
>>> Robert
>>>
>>> On Fri, 28 Sep 2007 23:58:31 -0400
>>> "James Sherman Jr." <address@hidden> wrote:
>>>> Have you tried the image package from octave forge?
>>>> Found here:
>>>> http://octave.sourceforge.net/packages.html
>>>>
>>>> You can get older versions of the packages to work
>> with
>>>> 2.1.50 here:
>>>>
>>>
>>
> http://sourceforge.net/project/showfiles.php?group_id=2888&package_id=29785
>>>> I'm assuming that you still need to have the same
>>>> requirements as the
>>>> current build, i.e. ImageMagik installed.
>>>>
>>>> James Sherman
>>>>
>>>> On 9/28/07, Robert A. Macy <address@hidden>
>> wrote:
>>>>> I have a simple .bmp file, actually in two forms.
>>>>>
>>>>> Both are 512 by 512 pixels, one is RGB 24 bit format
>>>> (?)
>>>>> and the same gray image is in single ?? format. Of
>>>> course
>>>>> the single format is 1/3 the size of the RGB image.
>>>>>
>>>>> Short of trashing the header, reading the file byte
>> by
>>>>> byte, is there some easy way to read in the pixel
>>>> values
>>>>> for a 512 by 512 image?
>>>>>
>>>>> I'm using Win98 to run octave 2.1.50a [I have to use
>>>> 50a to
>>>>> keep all those plotting functions.]
>>>>>
>>>>> Robert
>>> _______________________________________________
>>> Help-octave mailing list
>>> address@hidden
>>> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave