help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you read a .bmp file?


From: Robert A. Macy
Subject: Re: How do you read a .bmp file?
Date: Sun, 30 Sep 2007 08:28:08 -0700

Luckily have Win Office that allows me to save a .bmp in
.jpg, or even .png, format.  

Then, 

>> [R, G, B]=jpgread("image.jpg");

Works Great!

Thank you.  

jpgread exists in both 2.1.0a and 2.9.12, so I don't have
to go back and forth, can work straight in 2.1.50 to keep
the gsplot displays.  

Robert

On Sat, 29 Sep 2007 13:49:59 -0700
 Ben Abbott <address@hidden> wrote:
> There are jpgread and pngread scripts available. Is
> converting to one  of those formats first an option?
> 
> 
> 
> On Sep 29, 2007, at 12:12 PM, "Henry F. Mollet"
> <address@hidden>  wrote:
> 
> > 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]