Changeset 2369


Ignore:
Timestamp:
03/01/07 14:06:57 (13 years ago)
Author:
curtis
Message:

Add RGB channel count and RGB sanity test to testRead core metadata printout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/FormatReader.java

    r2367 r2369  
    833833      int imageCount = reader.getImageCount(id); 
    834834      boolean rgb = reader.isRGB(id); 
     835      int rgbChanCount = reader.getRGBChannelCount(id); 
    835836      boolean interleaved = reader.isInterleaved(id); 
    836837      int sizeX = reader.getSizeX(id); 
     
    850851      System.out.println("Series #" + j + ":"); 
    851852      System.out.println("\tImage count = " + imageCount); 
    852       System.out.print("\tRGB = " + rgb); 
     853      System.out.print("\tRGB = " + rgb + " (" + rgbChanCount + ")"); 
    853854      if (merge) System.out.print(" (merged)"); 
    854855      else if (separate) System.out.print(" (separated)"); 
     856      if (rgb != (rgbChanCount != 1)) { 
     857        System.out.println("\t************ Warning: RGB mismatch ************"); 
     858      } 
    855859      System.out.println(); 
    856860      System.out.println("\tInterleaved = " + interleaved); 
Note: See TracChangeset for help on using the changeset viewer.