help-octave
[Top][All Lists]
Advanced

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

Re: Image display in Windows


From: Douglas Steele
Subject: Re: Image display in Windows
Date: Fri, 15 Sep 2000 15:09:07 +0100

Michael Blume <address@hidden> writes
>Does anyone have a way to display Octave images in Windows? I know this
>capability is not built-in, but perhaps someone has written a pipe to a
>Windows compatible display program. Thanks.

Displaying a matrix is relatively straightforward eg:-

function image (x)

y=x-min(min(x))+0.5;
y=y/max(max(y)+0.5);

map = gray(256);
[m2,n2]=size(map);
bmpwrite(y*m2,map,'tmp');
system('mspaint tmp.bmp');
system('rm tmp.bmp');

endfunction

You can get bmpwrite.m (free) from the Mathworks site.


-- 
Douglas Steele



-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
Subscription information:  http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------



reply via email to

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