encoder
Class Encoder3D

java.lang.Object
  extended by encoder.Encoder3D

public class Encoder3D
extends java.lang.Object

Encoder3D provides various sorting Techniques for LIP, LIS and refineLSP to process the data and sort them according to the priority

Author:
shankar

Constructor Summary
Encoder3D()
          Constructs a Encoder3D contains Significance
 
Method Summary
 double[][][] refineLSP(double[][][] waveletFrame, Counters counters, LinkedList LSP, Node LSPend, long maxBits, long nValue, DataFile layer1, DataFile layer2, DataFile layer3, int imageWidth, int imageHeight, int groupOfFrames, int spatialLevel, int temporalLevel)
          refineLSP refines the sorted frames further calculates maxBits
to accommodate the data in corresponding layers through output stream
 double[][][] sortLIP(double[][][] waveletFrame, Counters counters, SignInfo signInfo, LinkedList LIP, LinkedList LSP, DataFile layer1, DataFile layer2, DataFile layer3, int threshold)
          sortLIP sorts the List of Insignificant Pixels writes the sorted bits to the output stream
 double[][][] sortLIS(double[][][] waveletFrame, Counters counters, SignInfo signInfo, LinkedList LIS, LinkedList LIP, LinkedList LSP, DataFile layer1, DataFile layer2, DataFile layer3, int imageWidth, int imageHeight, int groupOfFrames, int spatialLevel, int temporalLevel, int threshold)
          sortLIS sorts the List of Insignificant Sets
writes the sorted bits to the output stream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Encoder3D

public Encoder3D()
Constructs a Encoder3D contains Significance

Method Detail

sortLIP

public double[][][] sortLIP(double[][][] waveletFrame,
                            Counters counters,
                            SignInfo signInfo,
                            LinkedList LIP,
                            LinkedList LSP,
                            DataFile layer1,
                            DataFile layer2,
                            DataFile layer3,
                            int threshold)
sortLIP sorts the List of Insignificant Pixels writes the sorted bits to the output stream

Parameters:
waveletFrame - is 3 Dimensional double array
counters - is Counters
signInfo - is SignInfo holds the sign information and current component
LIP - is LinkedList represents List of Insignificant pixels
LSP - is LinkedList represents List of Significant pixels
layer1 - is DataFile holds the first layer information
layer2 - is DataFile holds the second layer information
layer3 - is DataFile holds the third layer information
threshold - is int value
Returns:
waveletFrame is 3 dimensionaldouble array in sorted form

sortLIS

public double[][][] sortLIS(double[][][] waveletFrame,
                            Counters counters,
                            SignInfo signInfo,
                            LinkedList LIS,
                            LinkedList LIP,
                            LinkedList LSP,
                            DataFile layer1,
                            DataFile layer2,
                            DataFile layer3,
                            int imageWidth,
                            int imageHeight,
                            int groupOfFrames,
                            int spatialLevel,
                            int temporalLevel,
                            int threshold)
sortLIS sorts the List of Insignificant Sets
writes the sorted bits to the output stream

Parameters:
waveletFrame - is 3 dimensional double array
counters - is Counters
signInfo - is SignInfo holds the sign information and the current processesing component
LIS - is LinkedList represents the List of Insignificant Sets
LIP - is LinkedList represents the List of Insignificant Pixels
LSP - is LinkedList represents the List of Significant Pixels
layer1 - is DataFile holds the first layer information
layer2 - is DataFile holds the second layer information
layer3 - is DataFile holds the third layer information
imageWidth - is width of the frame
imageHeight - is height of the frame
groupOfFrames - is represents the number of frames in the group
spatialLevel - is int level in spatial domain
temporalLevel - is int level in temporal domain
threshold - is int
Returns:
waveletFrame is 3 dimensional double array in sorted form

refineLSP

public double[][][] refineLSP(double[][][] waveletFrame,
                              Counters counters,
                              LinkedList LSP,
                              Node LSPend,
                              long maxBits,
                              long nValue,
                              DataFile layer1,
                              DataFile layer2,
                              DataFile layer3,
                              int imageWidth,
                              int imageHeight,
                              int groupOfFrames,
                              int spatialLevel,
                              int temporalLevel)
refineLSP refines the sorted frames further calculates maxBits
to accommodate the data in corresponding layers through output stream

Parameters:
waveletFrame - represented in 3 dimensional doublearray
counters - is Counters
LSP - is LinkedList represents List of Significant Pixel
LSPend - is Node represents the end of the LSP
maxBits - is long maximum bits
nValue - is a long count for maximum bits
layer1 - is DataFile holds the first layer information
layer2 - is DataFile holds the second layer information
layer3 - is DataFile holds the third layer information
imageWidth - is width of the frame
imageHeight - is height of the frame
groupOfFrames - is represents the number of frames in the group
spatialLevel - is int level in spatial domain
temporalLevel - is int level in temporal domain
Returns:
waveletFrame is 3 dimensional double array in sorted form