[14389] in Athena Bugs

home help back first fref pref prev next nref lref last post

Matlab: "tiffread.m" function

daemon@ATHENA.MIT.EDU (davknav@MIT.EDU)
Mon Jun 17 09:53:11 1996

From: davknav@MIT.EDU
Date: Mon, 17 Jun 1996 09:53:06 -0400
To: bugs@MIT.EDU

Dear bug-fixers,

I was trying to read in a tiff file for display in Matlab.  I noted
that Athena has a "tiffread" function, so I attempted to use it:

	[X,MAP] = tiffread('StanLaurel.tif');

On at least two platforms, Solaris and Linux, the M-file crashes with
this error message:

	???  Improper null index in null matrix.

	Error in ==> /mit/matlab/Matlab4.2/toolbox/images/tiffread.m
	On line 425  ==> draw(a) = draw(a) + 256;


Not wanting to try and debug the M-file, I surfed on over to the
Matlab web page and downloaded "their" version of tiffread.m at 

	ftp://ftp.mathworks.com/pub/mathworks/toolbox/images/tiffread.m


*This* version does differ from the Athena version, although it was
clearly cut from the same cloth.  The major difference is that this
version works on the Linux and Solaris platforms!  I suspect that it's
a newer version of the M-file which is more tolerant of different
flavors of tiff file (the file I was trying to read had been created
by the Athena xv program).

Could you please replace Athena's current version of tiffread with the
one I pointed you to above?  Thanks!

							Dave

-- 
=========================================================================
David Lum                    ||      davknav@mit.edu	
34 Harris Street Apt. #5     ||      617-253-2589 (work)   
Brookline, MA 02146          ||      617-566-1923 (home)
=========================================================================



home help back first fref pref prev next nref lref last post