EVP Toolbox
imshow - calling imdraw (Windows). Popup a window to show image ( Linux ).
Calling Sequence
imshow(im)
Parameters w
* im: MxNx3, a color (0-255 range) image.
Description
This function is a simple wrap of imdraw.
Implement
function imshow(im)
[h,w,c]=size(im);
if MSDOS then
imdraw (im, 0, 0, 0, w, h );
else
TCL_EvalStr( 'toplevel .imdraw_window' );
TCL_EvalStr( 'global imdraw_window_id' );
TCL_EvalStr( 'set imdraw_window_id [winfo id .imdraw_window] ');
TCL_EvalStr( 'wm geometry .imdraw_window ' + string(w) +' '+ string(h) );
ID = TCL_GetVar( 'imdraw_window_id' );
imdraw ( im, ID, 0,0,0,0 );
end;