Class Plane2D


  • public class Plane2D
    extends java.lang.Object
    Holds structure used to mapped the raw pixels data.
    Since:
    OME3.0
    • Constructor Summary

      Constructors 
      Constructor Description
      Plane2D​(omero.util.ReadOnlyByteArray data, int sizeX, int sizeY, int bytesPerPixel, omero.gateway.rnd.BytesConverter strategy)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getPixelValue​(int x, int y)
      Returns the pixels value at the point specified by the x-coordinate and y-coordinate.
      double[][] getPixelValues()
      Returns the pixels values
      byte getRawValue​(int offset)
      Returns the raw data value at the given offset
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Plane2D

        public Plane2D​(omero.util.ReadOnlyByteArray data,
                       int sizeX,
                       int sizeY,
                       int bytesPerPixel,
                       omero.gateway.rnd.BytesConverter strategy)
        Creates a new instance.
        Parameters:
        data - The array of byte.
        sizeX - The number of pixels along the x-axis.
        sizeY - The number of pixels along the y-axis.
        bytesPerPixel - The number of bytes per pixel.
        strategy - Strategy to transform pixel.
    • Method Detail

      • getPixelValue

        public double getPixelValue​(int x,
                                    int y)
        Returns the pixels value at the point specified by the x-coordinate and y-coordinate.
        Parameters:
        x - The x-coordinate.
        y - The y-coordinate.
        Returns:
        See above.
      • getPixelValues

        public double[][] getPixelValues()
        Returns the pixels values
        Returns:
        See above.
      • getRawValue

        public byte getRawValue​(int offset)
        Returns the raw data value at the given offset
        Parameters:
        offset - The offset
        Returns:
        See above.