|
From: | Ben Abbott |
Subject: | Re: How do you read a .bmp file? |
Date: | Sat, 29 Sep 2007 13:49:59 -0700 |
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 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 Imagmagicisalways missing or such. Do remember I got some customcodefrom 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 ProfessionalwhichI 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 dataas.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 workwith2.1.50 here:http://sourceforge.net/project/showfiles.php?group_id=2888&package_id=29785I'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. Ofcoursethe single format is 1/3 the size of the RGB image. Short of trashing the header, reading the file bytebybyte, is there some easy way to read in the pixelvaluesfor a 512 by 512 image? I'm using Win98 to run octave 2.1.50a [I have to use50a tokeep 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_______________________________________________ Help-octave mailing list address@hidden https://www.cae.wisc.edu/mailman/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |