pojos.util
Class UploadMask

java.lang.Object
  extended by pojos.util.UploadMask

public class UploadMask
extends Object

Uploaded for masks.

Since:
OME3.0
Version:
3.0 (Internal version: $Revision: $Date: $)
Author:
Jean-Marie Burel      j.burel@dundee.ac.uk, Donald MacDonald      donald@lifesci.dundee.ac.uk

Constructor Summary
UploadMask(long imageId)
          Creates a new instance.
 
Method Summary
 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.
 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 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:
IOException - Thrown if an error occurred while creating the mask.

addArray

public void addArray(int[][] image,
                     int z,
                     int t,
                     int c)
              throws 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:
IOException - Thrown if an error occurred while creating the mask.

getROI

public List<omero.model.RoiI> getROI()
Returns the ROIs created from uploading the images.

Returns:
See above.


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.