omerojava.util
Class Plane1D

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

public class Plane1D
extends Object

Since:
3.0-Beta4
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
Plane1D(ReadOnlyByteArray data, int sizeX, int sizeY, int bytesPerPixel, omerojava.util.BytesConverter strategy)
          Creates a new intance.
 
Method Summary
 byte[] getPixelsArrayAsByte()
          Return the pixels array of the mapped data.
 double[] getPixelsArrayAsDouble()
          Return the pixels array of the mapped data.
 int[] getPixelsArrayAsInt()
          Return the pixels array of the mapped data.
 long[] getPixelsArrayAsLong()
          Return the pixels array of the mapped data.
 short[] getPixelsArrayAsShort()
          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

Plane1D

public Plane1D(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()
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()
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()
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()
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()
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.