Changeset 5217 for trunk/utils


Ignore:
Timestamp:
07/06/09 14:42:15 (11 years ago)
Author:
curtis
Message:

Update example programs to use new BufferedImageReader API.

Location:
trunk/utils
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/utils/ConvertToOmeTiff.java

    r5081 r5217  
    44 
    55import java.awt.image.BufferedImage; 
    6 import loci.formats.ImageReader; 
    76import loci.formats.MetadataTools; 
     7import loci.formats.gui.BufferedImageReader; 
    88import loci.formats.meta.MetadataRetrieve; 
    99import loci.formats.meta.MetadataStore; 
     
    1818      return; 
    1919    } 
    20     ImageReader reader = new ImageReader(); 
     20    BufferedImageReader reader = new BufferedImageReader(); 
    2121    OMETiffWriter writer = new OMETiffWriter(); 
    2222    for (int i=0; i<args.length; i++) { 
  • trunk/utils/MakeLZW.java

    r4036 r5217  
    55import java.awt.image.BufferedImage; 
    66import java.util.Hashtable; 
    7 import loci.formats.ImageReader; 
    87import loci.formats.MetadataTools; 
    98import loci.formats.TiffTools; 
     9import loci.formats.gui.BufferedImageReader; 
    1010import loci.formats.meta.MetadataRetrieve; 
    1111import loci.formats.meta.MetadataStore; 
     
    1616 
    1717  public static void main(String[] args) throws Exception { 
    18     ImageReader reader = new ImageReader(); 
     18    BufferedImageReader reader = new BufferedImageReader(); 
    1919    MetadataStore omexmlMeta = MetadataTools.createOMEXMLMetadata(); 
    2020    reader.setMetadataStore(omexmlMeta); 
  • trunk/utils/SewTiffs.java

    r5059 r5217  
    99import loci.formats.FilePattern; 
    1010import loci.formats.TiffTools; 
     11import loci.formats.gui.BufferedImageReader; 
    1112import loci.formats.in.TiffReader; 
    1213import loci.formats.out.TiffWriter; 
     
    3435    else num = Integer.parseInt(args[2]); 
    3536    System.out.println("Fixing " + base + "_C" + c + "_TP<1-" + num + ">.tiff"); 
    36     TiffReader in = new TiffReader(); 
     37    BufferedImageReader in = new BufferedImageReader(new TiffReader()); 
    3738    TiffWriter out = new TiffWriter(); 
    3839    String outId = base + "_C" + c + ".tiff"; 
  • trunk/utils/SumPlanes.java

    r2856 r5217  
    55import java.awt.image.*; 
    66import loci.formats.*; 
     7import loci.formats.gui.BufferedImageReader; 
    78 
    89/** 
     
    1415  public static void main(String[] args) throws Exception { 
    1516    String id = args[0]; 
    16     ImageReader r = new ImageReader(); 
     17    BufferedImageReader r = new BufferedImageReader(); 
    1718    System.out.print("Reading " + id); 
    1819    r.setId(id); 
Note: See TracChangeset for help on using the changeset viewer.