Exemplo n.º 1
0
  public void setUp() {
    try {
      sid = new MrSIDImageReader(file1);
      sid.initialize();

    } catch (MrSIDException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
    }
  }
Exemplo n.º 2
0
  public void testStack() {
    try {
      numBands = sid.getNumBands();
      width = sid.getWidth();
      height = sid.getHeight();
      metadata = sid.getMetadata();
      System.out.println("**** TEST DE ACCESO A IMÁGENES MRSID ****");
      System.out.println("     IMAGEN: " + fileName);
      System.out.println("Número de bandas: " + numBands);
      System.out.println("Anchura: " + width);
      System.out.println("Altura: " + height);

      // for (int i = 0 ; i<metadata.getIndexCount() ; i++){
      // record = metadata.getDataByIndex(i);
      // System.out.println(record.getTagName() + ": " +
      // record.getScalarData());
      // }
      sid.close();
    } catch (MrSIDException e) {
      e.printStackTrace();
    }
  }