Name | Description | |
---|---|---|
Tiler Constructor |
The following tables list the members exposed by Tiler.
Name | Description | |
---|---|---|
Tiler Constructor |
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.
This default implementation returns the value of the source. (Inherited from CSJ2K.j2k.image.ImgDataAdapter) | |
ImgULX | Overridden. Returns the horizontal coordinate of the image origin, the top-left corner, in the canvas system, on the reference grid. | |
ImgULY | Overridden. Returns the vertical coordinate of the image origin, the top-left corner, in the canvas system, on the reference grid. | |
ImgWidth | Returns the overall width of the image in pixels. This is the image's width without accounting for any component subsampling or tiling.
This default implementation returns the value of the source. (Inherited from CSJ2K.j2k.image.ImgDataAdapter) | |
NomTileHeight | Overridden. Returns the nominal width of the tiles in the reference grid. | |
NomTileWidth | Overridden. Returns the nominal width of the tiles in the reference grid. | |
NumComps | Returns the number of components in the image.
This default implementation returns the value of the source. (Inherited from CSJ2K.j2k.image.ImgDataAdapter) | |
TileHeight | Overridden. Returns the overall height of the current tile in pixels. This is the tile's width without accounting for any component subsampling. | |
TileIdx | Overridden. Returns the index of the current tile, relative to a standard scan-line order. | |
TilePartULX | Overridden. Returns the horizontal tile partition offset in the reference grid | |
TilePartULY | Overridden. Returns the vertical tile partition offset in the reference grid | |
TileWidth | Overridden. Returns the overall width of the current tile in pixels. This is the tile's width without accounting for any component subsampling. |
Name | Description | |
---|---|---|
getCompData | Returns, in the blk argument, a block of image data containing the specifed rectangular area, in the specified component. The data is returned, as a copy of the internal data, therefore the returned data can be modified "in place".
The rectangular area to return is specified by the 'ulx', 'uly', 'w' and 'h' members of the 'blk' argument, relative to the current tile. These members are not modified by this method. The 'offset' of the returned data is 0, and the 'scanw' is the same as the block's width. See the 'DataBlk' class. This method, in general, is less efficient than the 'getInternCompData()' method since, in general, it copies the data. However if the array of returned data is to be modified by the caller then this method is preferable. If the data array in 'blk' is 'null', then a new one is created. If the data array is not 'null' then it is reused, and it must be large enough to contain the block's data. Otherwise an 'ArrayStoreException' or an 'IndexOutOfBoundsException' is thrown by the Java system. The returned data may have its 'progressive' attribute set. In this case the returned data is only an approximation of the "final" data. | |
getCompImgHeight | Returns the height in pixels of the specified component in the overall image.
This default implementation returns the value of the source. (Inherited from CSJ2K.j2k.image.ImgDataAdapter) | |
getCompImgWidth | Returns the width in pixels of the specified component in the overall image.
This default implementation returns the value of the source. (Inherited from CSJ2K.j2k.image.ImgDataAdapter) | |
getCompSubsX | 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.
This default implementation returns the value of the source. (Inherited from CSJ2K.j2k.image.ImgDataAdapter) | |
getCompSubsY | 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.
This default implementation returns the value of the source. (Inherited from CSJ2K.j2k.image.ImgDataAdapter) | |
getCompULX | Overridden. Returns the horizontal coordinate of the upper-left corner of the specified component in the current tile. | |
getCompULY | Overridden. Returns the vertical coordinate of the upper-left corner of the specified component in the current tile. | |
getFixedPoint | Returns the position of the fixed point in the specified component. This is the position of the least significant integral (i.e. non-fractional) bit, which is equivalent to the number of fractional bits. For instance, for fixed-point values with 2 fractional bits, 2 is returned. For floating-point data this value does not apply and 0 should be returned. Position 0 is the position of the least significant bit in the data. | |
getInternCompData | Returns, in the blk argument, a block of image data containing the specifed rectangular area, in the specified component. The data is returned, as a reference to the internal data, if any, instead of as a copy, therefore the returned data should not be modified.
The rectangular area to return is specified by the 'ulx', 'uly', 'w' and 'h' members of the 'blk' argument, relative to the current tile. These members are not modified by this method. The 'offset' and 'scanw' of the returned data can be arbitrary. See the 'DataBlk' class. This method, in general, is more efficient than the 'getCompData()' method since it may not copy the data. However if the array of returned data is to be modified by the caller then the other method is probably preferable. If the data array in blk is null, then a new one is created if necessary. The implementation of this interface may choose to return the same array or a new one, depending on what is more efficient. Therefore, the data array in blk prior to the method call should not be considered to contain the returned data, a new array may have been created. Instead, get the array from blk after the method has returned. The returned data may have its 'progressive' attribute set. In this case the returned data is only an approximation of the "final" data. | |
getNomRangeBits | (Inherited from CSJ2K.j2k.image.ImgDataAdapter) | |
getNumTiles | Overloaded. Overridden. Returns the number of tiles in the horizontal and vertical directions. | |
getTile | Overridden. Returns the horizontal and vertical indexes of the current tile. | |
getTileCompHeight | Overridden. Returns the height in pixels of the specified tile-component. | |
getTileCompWidth | Overridden. Returns the width in pixels of the specified tile-component. | |
getTilingOrigin | Returns the tiling origin, referred to as '(xt0siz,yt0siz)' in the codestream header (SIZ marker segment). | |
nextTile | Overridden. 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). | |
setTile | Overridden. Changes the current tile, given the new tile indexes. An IllegalArgumentException is thrown if the coordinates do not correspond to a valid tile. | |
ToString | Returns a String object representing Tiler's informations |