Main Content

addlift

(To be removed) Add lifting steps to lifting scheme

    This version of addlift will be removed in a future release. Use the new versions of addlift, liftingStep, and liftingScheme. For more information, see Compatibility Considerations.

    Description

    example

    LSN = addlift(LS,ELS) returns the new lifting scheme obtained by appending the elementary lifting step ELS to the lifting scheme LS.

    LSN = addlift(LS,ELS,'begin') prepends the specified elementary lifting step.

    LSN = addlift(LS,ELS,'end') appends the specified elementary lifting step. LSN = addlift(LS,ELS,'end') is equivalent to LSN = addfilt(LS,ELS).

    Examples

    collapse all

    This example shows how to start with the Haar lifting scheme and add a primal lifting step.

    LSbegin = liftwave('haar');

    Display the lifting scheme.

    displs(LSbegin);
    LSbegin = {...                       
    'd'             [ -1.00000000]  [0]  
    'p'             [  0.50000000]  [0]  
    [  1.41421356]  [  0.70710678]  []   
    };                                   
    

    Create a primal lifting step.

    pstep = { 'p', [-1 2 -1]/4 , 1 };

    Add the primal lifting step.

    LSend = addlift(LSbegin,pstep);

    Display the final lifting scheme.

    displs(LSend);
    LSend = {...                                                 
    'd'             [ -1.00000000]                          [0]  
    'p'             [  0.50000000]                          [0]  
    'p'             [ -0.25000000  0.50000000 -0.25000000]  [1]  
    [  1.41421356]  [  0.70710678]                          []   
    };                                                           
    

    Input Arguments

    collapse all

    Lifting scheme, specified as a cell array. The format of LS is identical to the format of the output of liftwave.

    Note

    liftwave is no longer recommended and will be removed in a future release. Use liftingScheme.

    Data Types: cell

    Elementary lifting step, specified as either a cell array or a structure whose formats are listed here.

    • cell array — {TYPEVAL, COEFS, MAX_DEG}

    • structure — struct('type',TYPEVAL,'value',LPVAL), where LPVAL = laurpoly(COEFS, MAX_DEG)

    If ELS is a sequence of elementary lifting steps, stored in a cell array or an array of structures, then each of the elementary lifting steps is added to LS.

    For more information, see lsinfo.

    Version History

    Introduced before R2006a

    expand all