[]
        
(Showing Draft Content)

CSJ2K.j2k.codestream.reader.HeaderDecoder.createResampler

createResampler Method

createResampler(BlkImgDataSrc, ColorSpace)

Creates and returns the Resampler which converts the input source to one in which all channels have the same number of samples. This is required for colorspace conversions.

Declaration
public virtual BlkImgDataSrc createResampler(BlkImgDataSrc src, ColorSpace csMap)
Parameters
Type Name Description
BlkImgDataSrc src

The bit stream reader agent where to get code-block data from.

ColorSpace csMap

provides color space information from the image file

Returns
Type Description
BlkImgDataSrc

The resampled BlkImgDataSrc

Exceptions
Type Condition
ColorSpaceException

if image contains a bad colorspace box