Home > src > matlab > pfsput.m

pfsput   Linux x86

PURPOSE ^

Write frame to the pfs stream. See also help for pfsopen function.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Write frame to the pfs stream. See also help for pfsopen function.

 usage: pfsput( pfs_struct );
   pfs_struct - the structure returned by pfsopen. The stream must be open for writing

 Typical usage:

 ## Create you image
 Y = ones( 512, 512 );
 Y(256,:) = 10;

 ## Create pfs stream for writing
 pout = pfsopen( \"output.pfs\", size( Y ) );

 ## Add channels
 pout.channels.Y = Y;

 ## Write frame. You can 'put' multiple frames.
 pfsput( pout );

 ##Close stream
 pfsclose( pout )

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Write frame to the pfs stream. See also help for pfsopen function.
0002 %
0003 % usage: pfsput( pfs_struct );
0004 %   pfs_struct - the structure returned by pfsopen. The stream must be open for writing
0005 %
0006 % Typical usage:
0007 %
0008 % ## Create you image
0009 % Y = ones( 512, 512 );
0010 % Y(256,:) = 10;
0011 %
0012 % ## Create pfs stream for writing
0013 % pout = pfsopen( \"output.pfs\", size( Y ) );
0014 %
0015 % ## Add channels
0016 % pout.channels.Y = Y;
0017 %
0018 % ## Write frame. You can 'put' multiple frames.
0019 % pfsput( pout );
0020 %
0021 % ##Close stream
0022 % pfsclose( pout )

Generated on Tue 03-Mar-2009 13:03:09 by m2html © 2003