CSJ2K.j2k.roi.encoder.ROIScaler.getNextCodeBlock C# (CSharp) Метод

getNextCodeBlock() публичный Метод

This function gets a datablk from the entropy coder. The sample sin the block, which consists of the quantized coefficients from the quantizer, are scaled by the values given for any ROIs specified.

The function calls on a ROIMaskGenerator to get the mask for scaling the coefficients in the current block.

The data returned by this method is a copy of the orignal data. Therfore it can be modified "in place" without any problems after being returned. The 'offset' of the returned data is 0, and the 'scanw' is the same as the code-block width. See the 'CBlkWTData' class.

public getNextCodeBlock ( int c, CSJ2K.j2k.wavelet.analysis.CBlkWTData cblk ) : CSJ2K.j2k.wavelet.analysis.CBlkWTData
c int The component for which to return the next code-block. /// ///
cblk CSJ2K.j2k.wavelet.analysis.CBlkWTData If non-null this object will be used to return the new /// code-block. If null a new one will be allocated and returned. If the /// "data" array of the object is non-null it will be reused, if possible, /// to return the data. /// ///
Результат CSJ2K.j2k.wavelet.analysis.CBlkWTData
        public virtual CBlkWTData getNextCodeBlock(int c, CBlkWTData cblk)
        {
            return getNextInternCodeBlock(c, cblk);
        }