def get_decoded_tile(codec, stream, imagep, tile_index):
OPENJP2.opj_get_decoded_tile.argtypes = [CODEC_TYPE,<EOL>STREAM_TYPE_P,<EOL>ctypes.POINTER(ImageType),<EOL>ctypes.c_uint32]<EOL>OPENJP2.opj_get_decoded_tile.restype = check_error<EOL>OPENJP2.opj_get_decoded_tile(codec, stream, imagep, tile_index)<EOL>
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.