code: def get_decoded_tile(codec, stream, imagep, tile_index):
      
      OPENJP2.opj_get_decoded_tile.argtypes = [CODEC_TYPE,
                                               STREAM_TYPE_P,
                                               ctypes.POINTER(ImageType),
                                               ctypes.c_uint32]
      OPENJP2.opj_get_decoded_tile.restype = check_error
  
      OPENJP2.opj_get_decoded_tile(codec, stream, imagep, tile_index)
docs: get the decoded tile from the codec
  
      Wraps the openjp2 library function opj_get_decoded_tile.
  
      Parameters
      ----------
      codec : CODEC_TYPE
          The jpeg2000 codec.
      stream : STREAM_TYPE_P
          The input stream.
      image : ImageType
          Output image structure.
      tiler_index : int
          Index of the tile which will be decoded.
  
      Raises
      ------
      RuntimeError
          If the OpenJPEG library routine opj_get_decoded_tile fails.