Home > matlab > misc > sopt_mltb_fwdcurvelet.m

sopt_mltb_fwdcurvelet

PURPOSE ^

sopt_mltb_fwdcurvelet - Forward curvelet transform

SYNOPSIS ^

function coef = sopt_mltb_fwdcurvelet(im,real)

DESCRIPTION ^

 sopt_mltb_fwdcurvelet - Forward curvelet transform

 Compute the forward curvelet transform of an image and stores it in
 vector coef.

 Inputs:

   - im: Input image.

   - real: Flag indicating if the transform is real or complex (1 = real,  
       0 = complex).

 Outputs:

   - coef: Curvelet coefficients.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function coef = sopt_mltb_fwdcurvelet(im,real)
0002 % sopt_mltb_fwdcurvelet - Forward curvelet transform
0003 %
0004 % Compute the forward curvelet transform of an image and stores it in
0005 % vector coef.
0006 %
0007 % Inputs:
0008 %
0009 %   - im: Input image.
0010 %
0011 %   - real: Flag indicating if the transform is real or complex (1 = real,
0012 %       0 = complex).
0013 %
0014 % Outputs:
0015 %
0016 %   - coef: Curvelet coefficients.
0017 
0018 C = fdct_usfft(im,real); 
0019 
0020 % Compute vector version of curvelets coeffcients
0021 coef = [];
0022 
0023 for s=1:length(C)
0024   for w=1:length(C{s})
0025     A = C{s}{w};
0026     coef= [coef; A(:)];
0027   end
0028 end

Generated on Fri 22-Feb-2013 15:54:47 by m2html © 2005