Exemple #1
0
 /** Returns a copy of the current object. */
 public DecoderSpecs getCopy() {
   DecoderSpecs decSpec2;
   try {
     decSpec2 = (DecoderSpecs) this.clone();
   } catch (CloneNotSupportedException e) {
     throw new Error("Cannot clone the DecoderSpecs instance");
   }
   // Quantization
   decSpec2.qts = (QuantTypeSpec) qts.getCopy();
   decSpec2.qsss = (QuantStepSizeSpec) qsss.getCopy();
   decSpec2.gbs = (GuardBitsSpec) gbs.getCopy();
   // Wavelet transform
   decSpec2.wfs = (SynWTFilterSpec) wfs.getCopy();
   decSpec2.dls = (IntegerSpec) dls.getCopy();
   // Component transformation
   decSpec2.cts = (CompTransfSpec) cts.getCopy();
   // ROI
   if (rois != null) {
     decSpec2.rois = (MaxShiftSpec) rois.getCopy();
   }
   return decSpec2;
 }