Package ome.xml.model.primitives

Examples of ome.xml.model.primitives.PositiveFloat


    int width = retrieve.getPixelsSizeX(series).getValue().intValue();
    int height = retrieve.getPixelsSizeY(series).getValue().intValue();
    ifd.put(new Integer(IFD.IMAGE_WIDTH), new Long(width));
    ifd.put(new Integer(IFD.IMAGE_LENGTH), new Long(height));

    PositiveFloat px = retrieve.getPixelsPhysicalSizeX(series);
    Double physicalSizeX = px == null ? null : px.getValue();
    if (physicalSizeX == null || physicalSizeX.doubleValue() == 0) {
      physicalSizeX = 0d;
    }
    else physicalSizeX = 1d / physicalSizeX;

    PositiveFloat py = retrieve.getPixelsPhysicalSizeY(series);
    Double physicalSizeY = py == null ? null : py.getValue();
    if (physicalSizeY == null || physicalSizeY.doubleValue() == 0) {
      physicalSizeY = 0d;
    }
    else physicalSizeY = 1d / physicalSizeY;
View Full Code Here


        String experimenterID = MetadataTools.createLSID("Experimenter", 0);
        store.setExperimenterID(experimenterID, 0);
        store.setExperimenterUserName(userName, 0);
      }

      PositiveFloat pixX = FormatTools.getPhysicalSizeX(new Double(pixelSizeX));
      PositiveFloat pixY = FormatTools.getPhysicalSizeY(new Double(pixelSizeY));
      PositiveFloat pixZ = FormatTools.getPhysicalSizeZ(new Double(pixelSizeZ));
      if (pixX != null) {
        store.setPixelsPhysicalSizeX(pixX, series);
      }
      if (pixY != null) {
        store.setPixelsPhysicalSizeY(pixY, series);
View Full Code Here

TOP

Related Classes of ome.xml.model.primitives.PositiveFloat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.