CADI.Server.LogicalTarget.JPEG2000
Class Transcoding

java.lang.Object
  extended by CADI.Server.LogicalTarget.JPEG2000.Transcoding

public class Transcoding
extends java.lang.Object

This class performs a transcoding of a JPEG2000 image. It only changes the precinct sizes, adjusting precinct sizes to block sizes (one block per precinct).

Usage example:
  constructor
  run
  getMethods

Version:
1.2.1 2009/02/18
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
private  java.util.Hashtable<java.lang.Long,DataBinInfo> dataBins
          Definition in CodestreamIndexing.dataBins.
private  int[][][][][][] imageStructure
          Definition in GenerateImageStructure.imageStructure
private  JPCParameters lastJPCParameters
          Definition in JP2LogicalTarget.jpcParameters
private  int MSBPlane
          Contains the Most Significant Bit Plane of whole image.
private  java.util.Hashtable<java.lang.Long,DataBinInfo> transDataBins
          Definition in CodestreamIndexing.dataBins.
private  int[][][][][][] transImageStructure
          Definition in GenerateImageStructure.imageStructure
private  JPCParameters transJPCParameters
          Definition in JP2LogicalTarget.jpcParameters
 
Constructor Summary
Transcoding(JPCParameters jpcParameters, java.util.Hashtable<java.lang.Long,DataBinInfo> dataBins, int[][][][][][] imageStructure)
          Constructor.
 
Method Summary
 java.util.Hashtable<java.lang.Long,DataBinInfo> getDataBins()
          Returns the transDataBins attribute.
 int[][][][][][] getImageStructure()
          Returns the transImageStructure attribute.
 JPCParameters getJPCParameters()
          Retuns the #jpcParameters attribute.
 int getMSBPlane()
          Returns the MSBPlane attribute.
 void list(java.io.PrintStream out)
          Prints the transcoding data out to the specified output stream.
 void run()
          Performs the transcoding of the image.
 java.lang.String toString()
           
private  void transcodeParameters()
          This method only trascodes the JPEG2000 image parameters.
private  void transcodeStructures()
          This method performs the transcoding of the JPEG2000 image structures.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lastJPCParameters

private JPCParameters lastJPCParameters
Definition in JP2LogicalTarget.jpcParameters


transJPCParameters

private JPCParameters transJPCParameters
Definition in JP2LogicalTarget.jpcParameters


dataBins

private java.util.Hashtable<java.lang.Long,DataBinInfo> dataBins
Definition in CodestreamIndexing.dataBins.


transDataBins

private java.util.Hashtable<java.lang.Long,DataBinInfo> transDataBins
Definition in CodestreamIndexing.dataBins.


imageStructure

private int[][][][][][] imageStructure
Definition in GenerateImageStructure.imageStructure


transImageStructure

private int[][][][][][] transImageStructure
Definition in GenerateImageStructure.imageStructure


MSBPlane

private int MSBPlane
Contains the Most Significant Bit Plane of whole image.

Constructor Detail

Transcoding

public Transcoding(JPCParameters jpcParameters,
                   java.util.Hashtable<java.lang.Long,DataBinInfo> dataBins,
                   int[][][][][][] imageStructure)
Constructor.

Parameters:
jpcParameters - definition in lastJPCParameters
dataBins - definition in dataBins.
imageStructure - definition in imageStructure.
Method Detail

run

public void run()
Performs the transcoding of the image.


getJPCParameters

public JPCParameters getJPCParameters()
Retuns the #jpcParameters attribute.

Returns:
the #jpcParameters attribute.

getDataBins

public java.util.Hashtable<java.lang.Long,DataBinInfo> getDataBins()
Returns the transDataBins attribute.

Returns:
the transDataBins attribute.

getMSBPlane

public int getMSBPlane()
Returns the MSBPlane attribute.

Returns:
the MSBPlane attribute.

getImageStructure

public int[][][][][][] getImageStructure()
Returns the transImageStructure attribute.

Returns:
the transImageStructure attribute.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

list

public void list(java.io.PrintStream out)
Prints the transcoding data out to the specified output stream. This method is useful for debugging.

Parameters:
out - an output stream.

transcodeParameters

private void transcodeParameters()
This method only trascodes the JPEG2000 image parameters.


transcodeStructures

private void transcodeStructures()
This method performs the transcoding of the JPEG2000 image structures.

Throws:
ErrorException


CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Group on Interactive Coding of Images (GICI) (contact)