def image_create(comptparms, clrspc):
OPENJP2.opj_image_create.argtypes = [ctypes.c_uint32,<EOL>ctypes.POINTER(ImageComptParmType),<EOL>COLOR_SPACE_TYPE]<EOL>OPENJP2.opj_image_create.restype = ctypes.POINTER(ImageType)<EOL>image = OPENJP2.opj_image_create(len(comptparms),<EOL>comptparms,<EOL>clrspc)<EOL>return image<EOL>
Creates a new image structure.

    Wraps the openjp2 library function opj_image_create.

    Parameters
    ----------
    cmptparms : comptparms_t
        The component parameters.
    clrspc : int
        Specifies the color space.

    Returns
    -------
    image : ImageType
        Reference to ImageType instance.