Home > src > matlab > pfs_transform_colorspace.m

pfs_transform_colorspace   Linux x86

PURPOSE ^

PFS_TRANSFORM_COLORSPACE Tranform between color spaces using pfs library.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

PFS_TRANSFORM_COLORSPACE Tranform between color spaces using pfs library.

 [C1 C2 C2] = PFS_TRANSFORM_COLORSPACE( inCSname, c1, c2, c3, outCSname );
 img_out = PFS_TRANSFORM_COLORSPACE( inCSname, img_in, outCSname );
 img_out = PFS_TRANSFORM_COLORSPACE( inCSname, c1, c2, c3, outCSname );
 [C1 C2 C2] = PFS_TRANSFORM_COLORSPACE( inCSname, img_in, outCSname );

   inCSname - name of the input color space
   c<n> - matrix with n-th channel of input color space
   C<n> - matrix with n-th channel of output color space
   img_in - input image given as 3D height/width/3 matrix 
   img_out - output image given as 3D height/width/3 matrix 
   outCSname - name of the output color space

 Recognized color space names: 'XYZ', 'RGB', 'sRGB', 'YUV', 'Yxy'.
 Color space names are case insensitive.

 See also: PFS_READ_IMAGE, PFS_WRITE_IMAGE, PFSVIEW.

 Copyright 2009 Rafal Mantiuk

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %PFS_TRANSFORM_COLORSPACE Tranform between color spaces using pfs library.
0002 %
0003 % [C1 C2 C2] = PFS_TRANSFORM_COLORSPACE( inCSname, c1, c2, c3, outCSname );
0004 % img_out = PFS_TRANSFORM_COLORSPACE( inCSname, img_in, outCSname );
0005 % img_out = PFS_TRANSFORM_COLORSPACE( inCSname, c1, c2, c3, outCSname );
0006 % [C1 C2 C2] = PFS_TRANSFORM_COLORSPACE( inCSname, img_in, outCSname );
0007 %
0008 %   inCSname - name of the input color space
0009 %   c<n> - matrix with n-th channel of input color space
0010 %   C<n> - matrix with n-th channel of output color space
0011 %   img_in - input image given as 3D height/width/3 matrix
0012 %   img_out - output image given as 3D height/width/3 matrix
0013 %   outCSname - name of the output color space
0014 %
0015 % Recognized color space names: 'XYZ', 'RGB', 'sRGB', 'YUV', 'Yxy'.
0016 % Color space names are case insensitive.
0017 %
0018 % See also: PFS_READ_IMAGE, PFS_WRITE_IMAGE, PFSVIEW.
0019 %
0020 % Copyright 2009 Rafal Mantiuk

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