ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.quantization.quantizer Namespace / StdQuantizer Class
Fields Properties Methods


In This Topic
    StdQuantizer Class Members
    In This Topic

    The following tables list the members exposed by StdQuantizer.

    Public Constructors
     NameDescription
    Public ConstructorInitializes the source of wavelet transform coefficients. The constructor takes information on whether the quantizer is in reversible, derived or expounded mode. If the quantizer is reversible the value of 'derived' is ignored. If the source data is not integer (int) then the quantizer can not be reversible.

    After initializing member attributes, getAnSubbandTree is called for all components setting the 'stepWMSE' for all subbands in the current tile.

     
    Top
    Public Fields
     NameDescription
    Public FieldThe number of exponent bits for the quantization steps  
    Public FieldThe number of mantissa bits for the quantization steps  
    Public Fieldstatic (Shared in Visual Basic)The maximum value of the exponent for the quantization steps  
    Public Fieldstatic (Shared in Visual Basic)The maximum value of the mantissa for the quantization steps  
    Top
    Public Properties
     NameDescription
    Public PropertyReturns the horizontal offset of the code-block partition. Allowable values are 0 and 1, nothing else. (Inherited from CSJ2K.j2k.quantization.quantizer.Quantizer)
    Public PropertyReturns the vertical offset of the code-block partition. Allowable values are 0 and 1, nothing else. (Inherited from CSJ2K.j2k.quantization.quantizer.Quantizer)
    Public PropertyReturns 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)
    Public PropertyReturns the horizontal coordinate of the image origin, the top-left corner, in the canvas system, on the reference grid.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public PropertyReturns the vertical coordinate of the image origin, the top-left corner, in the canvas system, on the reference grid.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public PropertyReturns 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)
    Public PropertyReturns the nominal tiles height (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public PropertyReturns the nominal tiles width (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public PropertyReturns the number of components in the image.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public PropertyReturns the quantization type spec object associated to the quantizer.  
    Public PropertyReturns 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.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public PropertyReturns the index of the current tile, relative to a standard scan-line order.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public PropertyReturns the horizontal tile partition offset in the reference grid (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public PropertyReturns the vertical tile offset in the reference grid (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public PropertyReturns 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.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Top
    Public Methods
     NameDescription
    Public Methodstatic (Shared in Visual Basic)Converts the floating point value to its exponent-mantissa representation. The mantissa occupies the 11 least significant bits (bits 10-0), and the exponent the previous 5 bits (bits 15-11).  
    Public Method (Inherited from CSJ2K.j2k.quantization.quantizer.Quantizer)
    Public MethodReturns 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)
    Public MethodReturns 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)
    Public MethodReturns 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)
    Public MethodReturns 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)
    Public MethodReturns the horizontal coordinate of the upper-left corner of the specified component in the current tile.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public MethodReturns the vertical coordinate of the upper-left corner of the specified component in the current tile.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public MethodOverridden. Returns the maximum number of magnitude bits in any subband of the current tile.  
    Public MethodOverridden. Returns the next code-block in the current tile for the specified component, as a copy (see below). The order in which code-blocks are returned is not specified. However each code-block is returned only once and all code-blocks will be returned if the method is called 'N' times, where 'N' is the number of code-blocks in the tile. After all the code-blocks have been returned for the current tile calls to this method will return 'null'.

    When changing the current tile (through 'setTile()' or 'nextTile()') this method will always return the first code-block, as if this method was never called before for the new current tile.

    The data returned by this method is always a copy of the data. Therfore it can be modified "in place" without any problems after being returned. The 'offset' of the returned data is 0, and the 'scanw' is the same as the code-block width. See the 'CBlkWTData' class.

    The 'ulx' and 'uly' members of the returned 'CBlkWTData' object contain the coordinates of the top-left corner of the block, with respect to the tile, not the subband.

     
    Public MethodOverridden. Returns the next code-block in the current tile for the specified component. The order in which code-blocks are returned is not specified. However each code-block is returned only once and all code-blocks will be returned if the method is called 'N' times, where 'N' is the number of code-blocks in the tile. After all the code-blocks have been returned for the current tile calls to this method will return 'null'.

    When changing the current tile (through 'setTile()' or 'nextTile()') this method will always return the first code-block, as if this method was never called before for the new current tile.

    The data returned by this method can be the data in the internal buffer of this object, if any, and thus can not be modified by the caller. The 'offset' and 'scanw' of the returned data can be arbitrary. See the 'CBlkWTData' class.

    The 'ulx' and 'uly' members of the returned 'CBlkWTData' object contain the coordinates of the top-left corner of the block, with respect to the tile, not the subband.

     
    Public Method (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public MethodOverridden. Returns the number of guard bits used by this quantizer in the given tile-component.  
    Public MethodOverloaded. Returns the number of tiles in the horizontal and vertical directions.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public MethodReturns the indexes of the current tile. These are the horizontal and vertical indexes of the current tile.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public MethodReturns the height in pixels of the specified tile-component.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public MethodReturns the width in pixels of the specified tile-component tile.

    This default implementation returns the value of the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public MethodOverridden. Returns true if given tile-component uses derived quantization step sizes.  
    Public MethodOverridden. Returns true if the quantized data is reversible, for the specified tile-component. For the quantized data to be reversible it is necessary and sufficient that the quantization is reversible.  
    Public MethodAdvances 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).

    This default implementation just advances to the next tile in the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Public MethodChanges the current tile, given the new indexes. An IllegalArgumentException is thrown if the indexes do not correspond to a valid tile.

    This default implementation just changes the tile in the source.

    (Inherited from CSJ2K.j2k.image.ImgDataAdapter)
    Top
    See Also