Package ome.xml.model

Examples of ome.xml.model.Pixels.sizeOfChannelList()


      putIfNotNull(map, MD_T, plane.getTheT().toString());
      putIfNotNull(map, MD_Z, plane.getTheZ().toString());
      final NonNegativeInteger c = plane.getTheC();
      if (c != null) {
        final int cidx = c.getValue().intValue();
        if (pixels.sizeOfChannelList() > cidx) {
          Channel channel = pixels.getChannel(cidx);
          if (channel != null) {
            putIfNotNull(map, MD_CHANNEL_NAME, channel.getName());
            final PositiveInteger samplesPerPixel = channel.getSamplesPerPixel();
            if (samplesPerPixel != null) {
View Full Code Here


          map.put(MD_COLOR_FORMAT, MD_MONOCHROME);
          Channel channel = pixels.getChannel(0);
          if (channel != null) {
            putIfNotNull(map, MD_CHANNEL_NAME, channel.getName());
          }
        } else if (pixels.sizeOfChannelList() == 1) {
          map.put(MD_COLOR_FORMAT, MD_RGB);
        } else {
          map.put(MD_COLOR_FORMAT, MD_MONOCHROME);
          Channel channel = pixels.getChannel(source.theC());
          if (channel != null) {
View Full Code Here

          Image seriesMetadata = imageSeries.getOMEImage();
          final Pixels pixels = seriesMetadata.getPixels();
          int nPlanes = pixels.sizeOfPlaneList();
          if (nPlanes == 0) {
            // The planes aren't populated - need to infer from size{C / Z / T}
            int nChannels = pixels.sizeOfChannelList();
            if (nChannels == 0) nChannels = pixels.getSizeC().getValue();
            nPlanes = nChannels * pixels.getSizeT().getValue() * pixels.getSizeZ().getValue();
            for (int plane=0; plane<nPlanes; plane++) {
              final ImagePlane imagePlane = new ImagePlane(imageSeries, plane, ImagePlane.ALWAYS_MONOCHROME);
              final ImagePlaneDetails ipd = extract(imagePlane);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.