[]
        
(Showing Draft Content)

CSJ2K.j2k.wavelet.synthesis.InvWTAdapter

InvWTAdapter Class

This class provides default implementation of the methods in the 'InvWT' interface. The source is always a 'MultiResImgData', which is a multi-resolution image. The default implementation is just to return the value of the source at the current image resolution level, which is set by the 'setImgResLevel()' method.

       <p>This abstract class can be used to facilitate the development of other
       classes that implement the 'InvWT' interface, because most of the trivial
       methods are already implemented.</p><p>If the default implementation of a method provided in this class does
       not suit a particular implementation of the 'InvWT' interface, the method
       can be overriden to implement the proper behaviour.</p><p>If the 'setImgResLevel()' method is overriden then it is very important
       that the one of this class is called from the overriding method, so that
       the other methods in this class return the correct values.</p>
Inheritance
InvWTAdapter
Namespace: CSJ2K.j2k.wavelet.synthesis
Assembly: C1.WPF.PdfViewer.4.6.2.dll
Syntax
public abstract class InvWTAdapter : InvWT, WaveletTransform, ImgData

Constructors

Name Description
InvWTAdapter(MultiResImgData, DecoderSpecs)

Instantiates the 'InvWTAdapter' object using the specified 'MultiResImgData' source. The reconstruction resolution level is set to full resolution (i.e. the maximum resolution level).

Fields

Name Description
decSpec

The decoder specifications

maxImgRes

The maximum available image resolution level

mressrc

The 'MultiResImgData' source

reslvl

The resquested image resolution level for reconstruction.

Properties

Name Description
ImgHeight

Returns the overall height of the image in pixels. This is the image's height without accounting for any component subsampling or tiling.

ImgResLevel

Sets the image reconstruction resolution level. A value of 0 means reconstruction of an image with the lowest resolution (dimension) available.

       <p>Note: Image resolution level indexes may differ from tile-component
       resolution index. They are indeed indexed starting from the lowest
       number of decomposition levels of each component of each tile.</p><p>Example: For an image (1 tile) with 2 components (component 0 having
       2 decomposition levels and component 1 having 3 decomposition levels),
       the first (tile-) component has 3 resolution levels and the second one
       has 4 resolution levels, whereas the image has only 3 resolution levels
       available.</p>
ImgULX

Returns the horizontal coordinate of the image origin, the top-left corner, in the canvas system, on the reference grid.

       <p>This default implementation returns the value of the source at the
       current reconstruction resolution level.</p>
ImgULY

Returns the vertical coordinate of the image origin, the top-left corner, in the canvas system, on the reference grid.

       <p>This default implementation returns the value of the source at the
       current reconstruction resolution level.</p>
ImgWidth

Returns the overall width of the image in pixels. This is the image's width without accounting for any component subsampling or tiling.

NomTileHeight

Returns the nominal height of tiles

NomTileWidth

Returns the nominal width of tiles

NumComps

Returns the number of components in the image.

TileHeight

Returns the overall height of the current tile in pixels. This is the tile's height without accounting for any component subsampling. This is also referred as the reference grid height in the current tile.

       <p>This default implementation returns the value of the source at the
       current reconstruction resolution level.</p>
TileIdx

Returns the index of the current tile, relative to a standard scan-line order.

       <p>This default implementation returns the value of the source.</p>
TilePartULX

Returns the horizontal tile partition offset in the reference grid

TilePartULY

Returns the vertical tile partition offset in the reference grid

TileWidth

Returns the overall width of the current tile in pixels. This is the tile's width without accounting for any component subsampling. This is also referred as the reference grid width in the current tile.

       <p>This default implementation returns the value of the source at the
       current reconstruction resolution level.</p>

Methods

Name Description
getCompImgHeight(int)

Returns the height in pixels of the specified component in the overall image.

       <p>This default implementation returns the value of the source at the
       current reconstruction resolution level.</p>
getCompImgWidth(int)

Returns the width in pixels of the specified component in the overall image.

getCompSubsX(int)

Returns the component subsampling factor in the horizontal direction, for the specified component. This is, approximately, the ratio of dimensions between the reference grid and the component itself, see the 'ImgData' interface desription for details.

getCompSubsY(int)

Returns the component subsampling factor in the vertical direction, for the specified component. This is, approximately, the ratio of dimensions between the reference grid and the component itself, see the 'ImgData' interface desription for details.

getCompULX(int)

Returns the horizontal coordinate of the upper-left corner of the specified component in the current tile.

getCompULY(int)

Returns the vertical coordinate of the upper-left corner of the specified component in the current tile.

getImplementationType(int)

Returns the implementation type of this wavelet transform (WT_IMPL_LINE or WT_IMPL_FRAME) for the specified component, in the current tile.

getNomRangeBits(int)
getNumTiles()

Returns the total number of tiles in the image.

       <p>This default implementation returns the value of the source.</p>
getNumTiles(Coord)

Returns the number of tiles in the horizontal and vertical directions.

       <p>This default implementation returns the value of the source.</p>
getSynSubbandTree(int, int)

Returns the specified synthesis subband tree

getTile(Coord)

Returns the indixes of the current tile. These are the horizontal and vertical indexes of the current tile.

       <p>This default implementation returns the value of the source.</p>
getTileCompHeight(int, int)

Returns the height in pixels of the specified tile-component.

       <p>This default implementation returns the value of the source at the
       current reconstruction resolution level.</p>
getTileCompWidth(int, int)

Returns the width in pixels of the specified tile-component

isReversible(int, int)

Returns the reversibility of the wavelet transform for the specified component and tile. A wavelet transform is reversible when it is suitable for lossless and lossy-to-lossless compression.

nextTile()

Advances to the next tile, in standard scan-line order (by rows then columns). An NoNextElementException is thrown if the current tile is the last one (i.e. there is no next tile).

       <p>This default implementation calls the same method on the source.</p>
setTile(int, int)

Changes the current tile, given the new indices. An IllegalArgumentException is thrown if the coordinates do not correspond to a valid tile.

       <p>This default implementation calls the same method on the source.</p>

See Also