omerojava.util
Class Plane2D

java.lang.Object
  extended by omerojava.util.Plane2D

public class Plane2D
extends Object

Holds structure used to mapped the raw pixels data.

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
Plane2D(ReadOnlyByteArray data, int sizeX, int sizeY, int bytesPerPixel, omerojava.util.BytesConverter strategy)
          Creates a new intance.
 
Method Summary
 byte[][] getPixelsArrayAsByte(boolean transpose)
          Return the pixels array of the mapped data.
 double[][] getPixelsArrayAsDouble(boolean transpose)
          Return the pixels array of the mapped data.
 int[][] getPixelsArrayAsInt(boolean transpose)
          Return the pixels array of the mapped data.
 long[][] getPixelsArrayAsLong(boolean transpose)
          Return the pixels array of the mapped data.
 short[][] getPixelsArrayAsShort(boolean transpose)
          Return the pixels array of the mapped data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Plane2D

public Plane2D(ReadOnlyByteArray data,
               int sizeX,
               int sizeY,
               int bytesPerPixel,
               omerojava.util.BytesConverter strategy)
Creates a new intance.

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

getPixelsArrayAsDouble

public double[][] getPixelsArrayAsDouble(boolean transpose)
Return the pixels array of the mapped data.

Parameters:
transpose - transpose the mapped array (used for row, col matrices of matlab)
Returns:
see above.

getPixelsArrayAsLong

public long[][] getPixelsArrayAsLong(boolean transpose)
Return the pixels array of the mapped data.

Parameters:
transpose - transpose the mapped array (used for row, col matrices of matlab)
Returns:
see above.

getPixelsArrayAsInt

public int[][] getPixelsArrayAsInt(boolean transpose)
Return the pixels array of the mapped data.

Parameters:
transpose - transpose the mapped array (used for row, col matrices of matlab)
Returns:
see above.

getPixelsArrayAsShort

public short[][] getPixelsArrayAsShort(boolean transpose)
Return the pixels array of the mapped data.

Parameters:
transpose - transpose the mapped array (used for row, col matrices of matlab)
Returns:
see above.

getPixelsArrayAsByte

public byte[][] getPixelsArrayAsByte(boolean transpose)
Return the pixels array of the mapped data.

Parameters:
transpose - transpose the mapped array (used for row, col matrices of matlab)
Returns:
see above.


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

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