Hi Steve, et al. Here's a module for reading Leica confocal data. I didn't write up a .txt file, sorry. But there's really little to it. I included the total comments at the front of the source. Also included are two sample datasets. The larger one is the prettier of the two. The other one is bland, but illustrates the point that one can go from one to the other without problem or memory leak. ------------------------------------------------------------------------- NOTE: THE SAMPLE DATASETS FOR THIS MODULE CAN BE FOUND IN avs.ncsc.org:/sample_data/avs_data/read_Leica in the files: -rw-rw-r-- 1 avs 1149052 Oct 17 12:07 read_Leica_testData1.tar.Z -rw-rw-r-- 1 avs 937039 Oct 17 12:07 read_Leica_testData2.tar.Z -Steve Thorpe avs@ncsc.org International AVS Center ------------------------------------------------------------------------- Anyway, have fun with them. Bye, -A.J. /* ************************************************************************ Read Leica Confocal module, designed to read in output from the Leica CLSM in it's native file format (not TIFF). The module is looking for a {imagename}.info file which it parses for the image plane numbers and plane sizes. It uses these values to open each image file in order. The contents are deposited in a 3D scalar byte field at the output port. Lots of error checking is done to make sure the .info file is not corrupted, and the data files read correctly. To generate files within CLSM, use the "save {filename}" command. Do NOT use compress, huffman, tiff or voxelview commands. (For example if tiff is on, enter the command "tiff 0" to turn it off.) No CR<->LF conversion or endian byte swapping is necessary for conversion from OS-9 to unix. FTP, rcp or NFS will work for file transfer or the module will read correctly from an NFS mounted OS-9 disk. Written by Andy Jacobson UCLA Dept. Pharmacology / Div. Nuclear Medicine CHS B2-086 UCLA School of Medicine Los Angeles, CA 90024-6948 or This software is copyright (C) 1994 Regents of the University of California. Anyone may reproduce readleica.c, the software in this distribution, in whole or in part, pro- vided that: (1) Any copy or redistribution of readleica.c must show the Regents of the University of California, through University of California, Los Angeles, Department of Pharmacology as the source, and must include this notice; (2) Any use of this software must reference this distribu- tion, state that the software copyright is held by the Regents of the University of California, and that the software is used by their permission. readleica.c is provided as a professional academic contribu- tion for joint exchange. Thus it is experimental, is pro- vided ``as is'', with no warranties of any kind whatsoever, no support, promise of updates, or printed documentation. The Regents of the University of California shall have no liability with respect to the infringement of copyrights by readleica.c, or any part thereof. **************************************************************************/