Description of sopt_mltb_struct2size
Description: sopt_mltb_struct2size - Compute curvelet data structure

Home > matlab > misc > sopt_mltb_struct2size.m

# sopt_mltb_struct2size

## PURPOSE

sopt_mltb_struct2size - Compute curvelet data structure

## SYNOPSIS

function Mod = sopt_mltb_struct2size(C)

## DESCRIPTION

    sopt_mltb_struct2size - Compute curvelet data structure

     Compute data structure to store the sizes of the curvelet transform
     generated from the CurveLab toolbox.

     Inputs:

       - C: Curvelet coefficients arranged in the original format.

     Outputs:

       - Mod: Data structure with the appropiate sizes.

## CROSS-REFERENCE INFORMATION

This function calls:

This function is called by:

## SOURCE CODE

    0001 function Mod = sopt_mltb_struct2size(C)
    0002 %sopt_mltb_struct2size - Compute curvelet data structure
    0003 %
    0004 % Compute data structure to store the sizes of the curvelet transform
    0005 % generated from the CurveLab toolbox.
    0006 %
    0007 % Inputs:
    0008 %
    0009 %   - C: Curvelet coefficients arranged in the original format.
    0010 %
    0011 % Outputs:
    0012 %
    0013 %   - Mod: Data structure with the appropiate sizes.
    0014
    0015  Mod=cell(size(C));
    0016  for s=1:length(C)
    0017    Mod{s} = cell(size(C{s}));
    0018    for w=1:length(C{s})
    0019      [m,n]=size(C{s}{w});
    0020      Mod{s}{w}=[m,n];
    0021    end
    0022  end