public class JPEG2KComponent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
component
Records the component.
|
private CADIPoint |
location
Offset from the origin of the reference grid to the upper-left sample of
the image area.
|
protected JPEG2KTile |
parent
Is a pointer to the parent.
|
protected java.util.HashMap<java.lang.Integer,JPEG2KResolutionLevel> |
resolutionLevels |
Constructor and Description |
---|
JPEG2KComponent(JPEG2KTile parent,
int component)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int[][] |
availableFrameSizes()
Calculates the frame sizes for each resolution level according to the
image parameters that are passed to the function.
|
void |
createResolutionLevel(int rLevel)
Creates a new resolution level in the tile-component.
|
void |
deleteAllResolutionLevels()
Removes all resolution levels from this tile-component.
|
int |
findPrecinct(long inClassIdentifier)
Returns the number of precinct within the tile-component.
|
int |
findResolutionLevel(long inClassIdentifier)
Returns the resolution level of the precinct within the tile-component.
|
int |
getBlockHeight() |
int |
getBlockWidth() |
CADIRectangle |
getBounds()
Returns the offset and dimensions of the component.
|
CADIRectangle |
getBounds(int rLevel)
Returns the offsetand dimensions of the resolution level
rLevel . |
int |
getComponent() |
int |
getExponent(int rLevel,
int subband)
Returns the exponent for the resolution level
rLevel and
subband subband . |
int |
getGuardBits()
Returns the number of guard bits.
|
CADIPoint |
getLocation()
Offset from the origin of the reference grid to the upper-left sample of
the image area.
|
int |
getMantisa(int rLevel,
int subband)
Returns the mantisa for the resolution level
rLevel and
subband subband . |
int |
getNumPrecincts()
Returns the maximum number of precincts in the tile-component.
|
JPEG2KTile |
getParent() |
int |
getPrecinctHeights(int rLevel) |
int |
getPrecinctWidths(int rLevel) |
int |
getQuantizationStyle() |
JPEG2KResolutionLevel |
getResolutionLevel(int rLevel)
Returns the resolution level whose index is
rLevel . |
CADIRectangle |
getResolutionLevelBounds(int rLevel)
Returns the bounds (location and size) of a resolution level.
|
CADIDimension |
getSize()
Dimensions of the component.
|
CADIDimension |
getSize(int rLevel)
Returns the size of the resolution level within the domain of the
tile-component.
|
int |
getWTLevels() |
int |
getWTType() |
int |
getXRsize(int component)
Returns the horizontal separation of sample of component
component
with respect to the reference grid. |
int |
getYRsize(int component)
Returns the vertical separation of sample of component
component
with respect to the reference grid. |
boolean |
isBypass() |
boolean |
isCausal() |
boolean |
isErterm() |
boolean |
isReset() |
boolean |
isRestart() |
boolean |
isSegmark() |
void |
list(java.io.PrintStream out)
Prints this Server JPEG2K Component out to the specified output stream.
|
void |
removeResolutionLevel(int rLevel)
Removes a resolution level from the tile-component.
|
java.lang.String |
toString() |
protected int component
Only positive values are allowed.
protected JPEG2KTile parent
It is useful to scan the tree structure from leaves to the root.
protected java.util.HashMap<java.lang.Integer,JPEG2KResolutionLevel> resolutionLevels
private CADIPoint location
It is computed by the getLocation()
method.ß
public JPEG2KComponent(JPEG2KTile parent, int component)
parent
- component
- definition in component
.public int getComponent()
public JPEG2KTile getParent()
public void createResolutionLevel(int rLevel)
rLevel
- definition in JPEG2KResolutionLevel.rLevel
.public JPEG2KResolutionLevel getResolutionLevel(int rLevel)
rLevel
.rLevel
- definition in JPEG2KResolutionLevel.rLevel
.public void removeResolutionLevel(int rLevel)
It also removes all precincts defined in the resolution level.
rLevel
- definition in JPEG2KResolutionLevel.rLevel
.public void deleteAllResolutionLevels()
public int findPrecinct(long inClassIdentifier)
inClassIdentifier
- public int findResolutionLevel(long inClassIdentifier)
OBS: not implemented yet.
inClassIdentifier
- public int getXRsize(int component)
component
with respect to the reference grid.component
- definition in component
.public int getYRsize(int component)
component
with respect to the reference grid.component
- definition in component
.public int getWTLevels()
public int getWTType()
public boolean isBypass()
public boolean isReset()
public boolean isRestart()
public boolean isCausal()
public boolean isErterm()
public boolean isSegmark()
public int getBlockHeight()
public int getBlockWidth()
public int getPrecinctHeights(int rLevel)
public int getPrecinctWidths(int rLevel)
public int getQuantizationStyle()
public int getExponent(int rLevel, int subband)
rLevel
and
subband subband
.rLevel
- definition in JPEG2KResolutionLevel.rLevel
.subband
- a subband name. Allowed values are #LL
, #HL
,
#LH
, or #HH
.public int getMantisa(int rLevel, int subband)
rLevel
and
subband subband
.rLevel
- definition in JPEG2KResolutionLevel.rLevel
.subband
- a subband name. Allowed values are #LL
, #HL
,
#LH
, or #HH
.public int getGuardBits()
public CADIPoint getLocation()
public CADIDimension getSize()
public CADIRectangle getBounds()
public CADIRectangle getBounds(int rLevel)
rLevel
.rLevel
- definition in #CADI.Common.LogicalTarget.JPEG2000.JPEG2KResolutionLevel#rLevel
.public CADIDimension getSize(int rLevel)
public int[][] availableFrameSizes()
public int getNumPrecincts()
public CADIRectangle getResolutionLevelBounds(int rLevel)
rLevel
- public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
out
- an output stream.
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)