| java.lang.Object jj2000.j2k.ModuleSpec jj2000.j2k.quantization.QuantTypeSpec
QuantTypeSpec | public class QuantTypeSpec extends ModuleSpec (Code) | | This class extends ModuleSpec class in order to hold specifications about
the quantization type to use in each tile-component. Supported quantization
type are:
- Reversible (no quantization)
- Derived (the quantization step size is derived from the one of the
LL-subband)
- Expounded (the quantization step size of each subband is signalled in
the codestream headers)
See Also: ModuleSpec |
Constructor Summary | |
public | QuantTypeSpec(int nt, int nc, byte type) Constructs an empty 'QuantTypeSpec' with specified number of tile and
components. | public | QuantTypeSpec(int nt, int nc, byte type, J2KImageWriteParamJava wp, String values) Constructs a new 'QuantTypeSpec' for the specified number of components
and tiles and the arguments of "-Qtype" option. |
Method Summary | |
public boolean | isDerived(int t, int c) Returns true if given tile-component uses derived quantization step
size. | public boolean | isFullyNonReversible() Check the irreversibility of the whole image. | public boolean | isFullyReversible() Check the reversibility of the whole image. | public boolean | isReversible(int t, int c) Check the reversibility of the given tile-component. |
QuantTypeSpec | public QuantTypeSpec(int nt, int nc, byte type)(Code) | | Constructs an empty 'QuantTypeSpec' with specified number of tile and
components. This constructor is called by the decoder.
Parameters: nt - Number of tiles Parameters: nc - Number of components Parameters: type - the type of the specification module i.e. tile specific,component specific or both. |
QuantTypeSpec | public QuantTypeSpec(int nt, int nc, byte type, J2KImageWriteParamJava wp, String values)(Code) | | Constructs a new 'QuantTypeSpec' for the specified number of components
and tiles and the arguments of "-Qtype" option. This constructor is
called by the encoder.
Parameters: nt - The number of tiles Parameters: nc - The number of components Parameters: type - the type of the specification module i.e. tile specific,component specific or both. |
isDerived | public boolean isDerived(int t, int c)(Code) | | Returns true if given tile-component uses derived quantization step
size.
Parameters: t - Tile index Parameters: c - Component index True if derived quantization step size |
isFullyNonReversible | public boolean isFullyNonReversible()(Code) | | Check the irreversibility of the whole image.
Whether or not the whole image is reversible |
isFullyReversible | public boolean isFullyReversible()(Code) | | Check the reversibility of the whole image.
Whether or not the whole image is reversible |
isReversible | public boolean isReversible(int t, int c)(Code) | | Check the reversibility of the given tile-component.
Parameters: t - The index of the tile Parameters: c - The index of the component Whether or not the tile-component is reversible |
|
|