Class UploadMask


  • public class UploadMask
    extends java.lang.Object
    Uploaded for masks.
    Since:
    OME3.0
    • Constructor Summary

      Constructors 
      Constructor Description
      UploadMask​(long imageId)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addArray​(int[][] image, int z, int t, int c)
      Adds a Mask Shape to the appropriate ROIClass, creating one if necessary.
      void addImage​(byte[] image, int z, int t, int c)
      Adds a Mask Shape to the appropriate ROIClass, creating one if necessary.
      java.util.List<omero.model.RoiI> getROI()
      Returns the ROIs created from uploading the images.
      • Methods inherited from class java.lang.Object

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

      • UploadMask

        public UploadMask​(long imageId)
        Creates a new instance.
        Parameters:
        imageId - The ImageId where the uploaded images are from.
    • Method Detail

      • addImage

        public void addImage​(byte[] image,
                             int z,
                             int t,
                             int c)
                      throws java.io.IOException
        Adds a Mask Shape to the appropriate ROIClass, creating one if necessary.
        Parameters:
        image - The Image containing the mask data.
        z - The Z Section of the image.
        t - The Time point of the image.
        Throws:
        java.io.IOException - Thrown if an error occurred while creating the mask.
      • addArray

        public void addArray​(int[][] image,
                             int z,
                             int t,
                             int c)
                      throws java.io.IOException
        Adds a Mask Shape to the appropriate ROIClass, creating one if necessary.
        Parameters:
        image - The Image containing the mask data.
        z - The Z Section of the image.
        t - The Time point of the image.
        Throws:
        java.io.IOException - Thrown if an error occurred while creating the mask.
      • getROI

        public java.util.List<omero.model.RoiI> getROI()
        Returns the ROIs created from uploading the images.
        Returns:
        See above.