コード例 #1
0
ファイル: DecoderSpecs.java プロジェクト: sbesson/bioformats
 /** 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;
 }
コード例 #2
0
 /**
  * Returns the number of decomposition levels that are applied to the LL band, in the specified
  * tile-component. A value of 0 means that no wavelet transform is applied.
  *
  * @param t The tile index
  * @param c The index of the component.
  * @return The number of decompositions applied to the LL band (0 for no wavelet transform).
  */
 public int getDecompLevels(int t, int c) {
   return ((Integer) dls.getTileCompVal(t, c)).intValue();
 }