encoder
Class Decomposition

java.lang.Object
  extended by encoder.Decomposition

public class Decomposition
extends java.lang.Object

Decomposition Provides methods for temporal decomposition and spatial decomposition of group of frames

Author:
shankar

Method Summary
 int[][][] getSignFrame(double[][][] waveletFrames, Counters counters, MaxBits maxBits, int imageWidth, int imageHeight, int numberOfFrames)
          calculates the sign frames for the frames data
 double[][][] temporalDecomposition(double[][][] inputFrames, int imageWidth, int imageHeight, int numberOfFrames, int temporalLevel)
          Applies temporal decomposition to the frames
 double[] wavelet1D(double[] temp, int size, int level)
          Applies one dimensional wavelet decomposition to the specified frames data
 double[][][] wavelet2D(double[][][] temporalFrame, int imageWidth, int imageHeight, int numberOfFrames, int spatialLevel)
          Applies 2 Dimensional wavelet decomposition to the temporally decomposed frames
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

temporalDecomposition

public double[][][] temporalDecomposition(double[][][] inputFrames,
                                          int imageWidth,
                                          int imageHeight,
                                          int numberOfFrames,
                                          int temporalLevel)
Applies temporal decomposition to the frames

Parameters:
inputFrames -
imageWidth -
imageHeight -
numberOfFrames -
temporalLevel -
Returns:
temporalFrames

wavelet2D

public double[][][] wavelet2D(double[][][] temporalFrame,
                              int imageWidth,
                              int imageHeight,
                              int numberOfFrames,
                              int spatialLevel)
Applies 2 Dimensional wavelet decomposition to the temporally decomposed frames

Parameters:
temporalFrame - represents a 3 dimensional temporally decomposed frames
imageWidth - width of the frame
imageHeight - height of the frame
numberOfFrames - total numnber of the frames
spatialLevel - spatial level
Returns:
waveletFrame a 3 dimensional wavelet frame

wavelet1D

public double[] wavelet1D(double[] temp,
                          int size,
                          int level)
Applies one dimensional wavelet decomposition to the specified frames data

Parameters:
temp - single dimensional frames data
size - length of the frames data array
level -
Returns:
temp wavelet decomposed frames data

getSignFrame

public int[][][] getSignFrame(double[][][] waveletFrames,
                              Counters counters,
                              MaxBits maxBits,
                              int imageWidth,
                              int imageHeight,
                              int numberOfFrames)
calculates the sign frames for the frames data

Parameters:
waveletFrames -
counters -
maxBits -
imageWidth - width of the frame
imageHeight - height of the frame
numberOfFrames - represents the total number of the frames
Returns:
signFrame