jj2000.j2k.quantization.quantizer.Quantizer.getMaxMagBits()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(84)

本文整理了Java中jj2000.j2k.quantization.quantizer.Quantizer.getMaxMagBits方法的一些代码示例,展示了Quantizer.getMaxMagBits的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Quantizer.getMaxMagBits方法的具体详情如下:
包路径:jj2000.j2k.quantization.quantizer.Quantizer
类名称:Quantizer
方法名:getMaxMagBits

Quantizer.getMaxMagBits介绍

[英]Returns the maximum number of magnitude bits in any subband in the current tile.
[中]返回当前分幅中任何子带的最大数量级位。

代码示例

代码示例来源:origin: edu.ucar/jj2000

/**
   * Calculates the maximum amount of magnitude bits for each
   * tile-component, and stores it in the 'maxMagBits' array. This is called
   * by the constructor
   *
   * @param encSpec The encoder specifications for addition of roi specs
   * */
  private void calcMaxMagBits(EncoderSpecs encSpec) {
    int tmp;
  MaxShiftSpec rois = encSpec.rois;

    int nt =  src.getNumTiles();
    int nc = src.getNumComps();

    maxMagBits = new int[nt][nc];
    
    src.setTile(0,0);
    for (int t=0; t<nt; t++) {
      for (int c=nc-1; c>=0; c--) {
    tmp = src.getMaxMagBits(c);
        maxMagBits[t][c] = tmp;
    rois.setTileCompVal(t,c,new Integer(tmp));
      }
      if( t<nt-1 ) src.nextTile();
    }
    // Reset to current initial tile position
    src.setTile(0,0);
  }
}

代码示例来源:origin: com.github.jai-imageio/jai-imageio-jpeg2000

/**
   * Calculates the maximum amount of magnitude bits for each
   * tile-component, and stores it in the 'maxMagBits' array. This is called
   * by the constructor
   *
   * @param encSpec The encoder specifications for addition of roi specs
   * */
  private void calcMaxMagBits(J2KImageWriteParamJava wp) {
    int tmp;
  MaxShiftSpec rois = wp.getROIs();

    int nt =  src.getNumTiles();
    int nc = src.getNumComps();

    maxMagBits = new int[nt][nc];

    src.setTile(0,0);
    for (int t=0; t<nt; t++) {
      for (int c=nc-1; c>=0; c--) {
    tmp = src.getMaxMagBits(c);
        maxMagBits[t][c] = tmp;
    rois.setTileCompVal(t,c,new Integer(tmp));
      }
      if( t<nt-1 ) src.nextTile();
    }
    // Reset to current initial tile position
    src.setTile(0,0);
  }
}

代码示例来源:origin: net.java.dev.jai-imageio/jai-imageio-jpeg2000

/**
   * Calculates the maximum amount of magnitude bits for each
   * tile-component, and stores it in the 'maxMagBits' array. This is called
   * by the constructor
   *
   * @param encSpec The encoder specifications for addition of roi specs
   * */
  private void calcMaxMagBits(J2KImageWriteParamJava wp) {
    int tmp;
  MaxShiftSpec rois = wp.getROIs();

    int nt =  src.getNumTiles();
    int nc = src.getNumComps();

    maxMagBits = new int[nt][nc];

    src.setTile(0,0);
    for (int t=0; t<nt; t++) {
      for (int c=nc-1; c>=0; c--) {
    tmp = src.getMaxMagBits(c);
        maxMagBits[t][c] = tmp;
    rois.setTileCompVal(t,c,new Integer(tmp));
      }
      if( t<nt-1 ) src.nextTile();
    }
    // Reset to current initial tile position
    src.setTile(0,0);
  }
}

代码示例来源:origin: poreid/poreid

/**
   * Calculates the maximum amount of magnitude bits for each
   * tile-component, and stores it in the 'maxMagBits' array. This is called
   * by the constructor
   *
   * @param encSpec The encoder specifications for addition of roi specs
   * */
  private void calcMaxMagBits(J2KImageWriteParamJava wp) {
    int tmp;
  MaxShiftSpec rois = wp.getROIs();

    int nt =  src.getNumTiles();
    int nc = src.getNumComps();

    maxMagBits = new int[nt][nc];

    src.setTile(0,0);
    for (int t=0; t<nt; t++) {
      for (int c=nc-1; c>=0; c--) {
    tmp = src.getMaxMagBits(c);
        maxMagBits[t][c] = tmp;
    rois.setTileCompVal(t,c,new Integer(tmp));
      }
      if( t<nt-1 ) src.nextTile();
    }
    // Reset to current initial tile position
    src.setTile(0,0);
  }
}

代码示例来源:origin: org.openmicroscopy/ome-jai

/**
   * Calculates the maximum amount of magnitude bits for each
   * tile-component, and stores it in the 'maxMagBits' array. This is called
   * by the constructor
   *
   * @param wp The encoder parameters for addition of roi specs
   * */
  private void calcMaxMagBits(J2KImageWriteParamJava wp) {
    int tmp;
  MaxShiftSpec rois = wp.getROIs();

    int nt =  src.getNumTiles();
    int nc = src.getNumComps();

    maxMagBits = new int[nt][nc];

    src.setTile(0,0);
    for (int t=0; t<nt; t++) {
      for (int c=nc-1; c>=0; c--) {
    tmp = src.getMaxMagBits(c);
        maxMagBits[t][c] = tmp;
    rois.setTileCompVal(t,c,new Integer(tmp));
      }
      if( t<nt-1 ) src.nextTile();
    }
    // Reset to current initial tile position
    src.setTile(0,0);
  }
}

相关文章