주요 콘텐츠

wpcoef

웨이블릿 패킷 계수

    설명

    wpcoef는 1차원 또는 2차원 웨이블릿 패킷 분석 함수입니다.

    x = wpcoef(wpt,n)은 웨이블릿 패킷 트리 wpt의 노드 n과 연결된 계수를 반환합니다. 노드 n이 존재하지 않으면 x = []입니다.

    예제

    x = wpcoef(wpt)x = wpcoef(wpt,0)과 동일합니다.

    예제

    모두 축소

    1차원 신호를 불러옵니다. 현재 확장 모드를 저장합니다.

    load noisdopp
    x = noisdopp;
    origMode = dwtmode("status","nodisp");

    dwtmode를 사용하여 확장 모드를 0 채우기로 변경합니다. db1 웨이블릿을 사용하여 신호의 3-레벨 웨이블릿 패킷 분해에 대응하는 웨이블릿 패킷 트리 객체를 구합니다. 트리를 플로팅합니다.

    dwtmode("zpd","nodisp")
    wpt = wpdec(x,3,"db1");
    plot(wpt)

    Figure contains 2 axes objects and other objects of type uimenu. Axes object 1 with title Tree Decomposition contains 29 objects of type line, text. Axes object 2 with title data for node: 0 or (0,0). contains an object of type line.

    노드 (3,0)에서의 계수를 구합니다. 신호와 계수를 플로팅합니다.

    cfs = wpcoef(wpt,[3 0]);
    tiledlayout(2,1)
    nexttile
    plot(x)
    title("Signal")
    axis tight
    nexttile
    plot(cfs)
    title("Packet (3,0) Coefficients")
    axis tight

    Figure contains 2 axes objects. Axes object 1 with title Signal contains an object of type line. Axes object 2 with title Packet (3,0) Coefficients contains an object of type line.

    영상을 불러옵니다. sym4 웨이블릿을 사용하여 영상의 1-레벨 웨이블릿 패킷 분해에 해당하는 웨이블릿 패킷 트리를 구합니다.

    load mask
    t = wpdec2(X,1,"sym4");

    트리를 플로팅합니다.

    plot(t)

    Figure contains 2 axes objects and other objects of type uimenu. Axes object 1 with title Tree Decomposition contains 9 objects of type line, text. Axes object 2 with title data for node: 0 or (0,0). contains an object of type image.

    노드 (1,0)에서의 계수를 구합니다. 계수를 플로팅합니다.

    cfs = wpcoef(t,[1 0]);
    figure
    imagesc(cfs)
    colormap(pink)
    title("Packet (1,0) Coefficients")

    Figure contains an axes object. The axes object with title Packet (1,0) Coefficients contains an object of type image.

    확장 모드를 원래 설정으로 복원합니다.

    dwtmode(origMode,"nodisp")

    입력 인수

    모두 축소

    웨이블릿 패킷 트리로, wptree 객체로 지정됩니다.

    웨이블릿 패킷 트리의 노드로, 음이 아닌 정수 또는 음이 아닌 정수 쌍으로 지정됩니다. depo2indind2depo 항목을 참조하십시오.

    예: wpt = wpdec(1:256,2,"sym4")인 경우, wpcoef(wpt,3)wpcoef(wpt,[2 0])은 동일한 노드를 지정합니다.

    데이터형: double

    출력 인수

    모두 축소

    노드 계수로, 벡터 또는 행렬로 반환됩니다.

    데이터형: double

    버전 내역

    R2006a 이전에 개발됨