Class J2KImageReadParamJava


  • public class J2KImageReadParamJava
    extends J2KImageReadParam
    A subclass of ImageReadParam for reading images in the JPEG 2000 format.

    The decoding parameters for JPEG 2000 are listed below:

    JPEG 2000 Plugin Decoding Parameters
    Parameter Name Description
    decodingRate Specifies the decoding rate in bits per pixel (bpp) where the number of pixels is related to the image's original size (Note: this parameter is not affected by resolution). The codestream is either parsed (default) or truncated depending parsingEnabled. The default is Double.MAX_VALUE. It means decoding with the encoding rate.
    resolution Specifies the resolution level wanted for the decoded image (0 means the lowest available resolution, the resolution level gives an image with the original dimension). If the given index is greater than the number of available resolution levels of the compressed image, the decoded image has the lowest available resolution (among all tile-components). This parameter affects only the inverse wavelet transform and not the number of bytes read by the codestream parser, which depends only on decodingRate.
    noROIDescaling Ensures that no ROI de-scaling is performed. Decompression is done like there is no ROI in the image.
    parsingEnabled Enable the parsing mode or not when the decoding rate is specified. If it is false, the codestream is decoded as if it were truncated to the given rate. If it is true, the decoder creates, truncates and decodes a virtual layer progressive codestream with the same truncation points in each code-block.
    • Constructor Detail

      • J2KImageReadParamJava

        public J2KImageReadParamJava()
        Constructs a default instance of J2KImageReadParamJava.
      • J2KImageReadParamJava

        public J2KImageReadParamJava​(ImageReadParam param)
    • Method Detail

      • setNoROIDescaling

        public void setNoROIDescaling​(boolean value)
        Sets noROIDescaling
      • getNoROIDescaling

        public boolean getNoROIDescaling()
        Gets noROIDescaling
      • setParsingEnabled

        public void setParsingEnabled​(boolean value)
        Sets parsingEnabled
      • getParsingEnabled

        public boolean getParsingEnabled()
        Gets parsingEnabled