CSJ2K.j2k.roi.encoder.ROIScaler.ROIScaler C# (CSharp) Method

ROIScaler() public method

Constructor of the ROI scaler, takes a Quantizer as source of data to scale.
public ROIScaler ( CSJ2K.j2k.quantization.quantizer.Quantizer src, CSJ2K.j2k.roi.encoder.ROIMaskGenerator mg, bool roi, int sLev, bool uba, CSJ2K.j2k.encoder.EncoderSpecs encSpec ) : System
src CSJ2K.j2k.quantization.quantizer.Quantizer The quantizer that is the source of data. /// ///
mg CSJ2K.j2k.roi.encoder.ROIMaskGenerator The mask generator that will be used for all components /// ///
roi bool Flag indicating whether there are rois specified. /// ///
sLev int The resolution levels that belong entirely to ROI /// ///
uba bool Flag indicating whether block aligning is used. /// ///
encSpec CSJ2K.j2k.encoder.EncoderSpecs The encoder specifications for addition of roi specs /// ///
return System
        public ROIScaler(Quantizer src, ROIMaskGenerator mg, bool roi, int sLev, bool uba, EncoderSpecs encSpec)
            : base(src)
        {
            this.src = src;
            this.roi = roi;
            this.useStartLevel = sLev;
            if (roi)
            {
                // If there is no ROI, no need to do this
                this.mg = mg;
                roiMask = new DataBlkInt();
                calcMaxMagBits(encSpec);
                blockAligned = uba;
            }
        }