/* * #%L * OME Bio-Formats package for reading and converting biological file formats. * %% * Copyright (C) 2017 Open Microscopy Environment: * - Board of Regents of the University of Wisconsin-Madison * - Glencoe Software, Inc. * - University of Dundee * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program. If not, see * . * #L% */ import java.nio.ByteBuffer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import ch.qos.logback.classic.Level; import loci.common.services.ServiceFactory; import loci.formats.FormatTools; import loci.formats.ImageReader; import loci.formats.MetadataTools; import loci.formats.meta.IMetadata; import loci.formats.meta.MetadataRetrieve; import loci.formats.out.OMETiffWriter; import loci.formats.services.OMEXMLService; import ome.units.quantity.Length; public class OrthogonalReader { private static final Logger log = LoggerFactory.getLogger(OrthogonalReader.class); private String input; private String output; private boolean debug; /** * Launches the Orthogonal reader. * * @param args Input files, Output files and debugging option. * @throws Exception thrown if an error occurred while reading data. */ public static void main(String[] args) throws Throwable { log.info("Orthogonal reader started"); OrthogonalReader main = new OrthogonalReader(); for (int i=0; i