Home > cellorganizer > utilities > improj.m

improj

PURPOSE ^

IMGPROJ Wrapper method for img2projection. Input argument img can

SYNOPSIS ^

function improj( img )

DESCRIPTION ^

 IMGPROJ Wrapper method for img2projection. Input argument img can
 be a tiff file or a Matlab array.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function improj( img )
0002 % IMGPROJ Wrapper method for img2projection. Input argument img can
0003 % be a tiff file or a Matlab array.
0004 %
0005 
0006 % Author: Ivan Cao-Berg
0007 % Created: Summer 2012
0008 %
0009 % Copyright (C) 2012 Murphy Lab
0010 % Lane Center for Computational Biology
0011 % School of Computer Science
0012 % Carnegie Mellon University
0013 %
0014 % This program is free software; you can redistribute it and/or modify
0015 % it under the terms of the GNU General Public License as published
0016 % by the Free Software Foundation; either version 2 of the License,
0017 % or (at your option) any later version.
0018 %
0019 % This program is distributed in the hope that it will be useful, but
0020 % WITHOUT ANY WARRANTY; without even the implied warranty of
0021 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0022 % General Public License for more details.
0023 %
0024 % You should have received a copy of the GNU General Public License
0025 % along with this program; if not, write to the Free Software
0026 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
0027 % 02110-1301, USA.
0028 %
0029 % For additional information visit http://murphylab.web.cmu.edu or
0030 % send email to murphy@cmu.edu
0031 
0032 if exist( img, 'var' )
0033     try
0034     img = img2projection( img );
0035     imshow( img, [] );
0036     catch %#ok<*CTCH>
0037         warning( 'Unable to display projection' );
0038     end
0039 elseif exist( img, 'file' );
0040     try
0041     img = tif2img( img );
0042     img = img2projection( img );
0043     imshow( img, [] );
0044     catch
0045         warning( 'Unable to open and display tiff file' );
0046     end
0047 else
0048     warning('Unrecognized input argument' );
0049 end

Generated on Sun 29-Sep-2013 18:44:06 by m2html © 2005