ImageScience 3.0.0

imagescience.image
Class Dimensions

java.lang.Object
  extended by imagescience.image.Dimensions

public class Dimensions
extends java.lang.Object

Contains the dimensions of up to 5D image data objects.


Field Summary
 int c
          The c-dimension.
 int t
          The t-dimension.
 int x
          The x-dimension.
 int y
          The y-dimension.
 int z
          The z-dimension.
 
Constructor Summary
Dimensions()
          Default constructor.
Dimensions(int x)
          One-dimensional constructor.
Dimensions(int x, int y)
          Two-dimensional constructor.
Dimensions(int x, int y, int z)
          Three-dimensional constructor.
Dimensions(int x, int y, int z, int t)
          Four-dimensional constructor.
Dimensions(int x, int y, int z, int t, int c)
          Five-dimensional constructor.
 
Method Summary
 Dimensions duplicate()
          Duplicates this object.
 boolean equals(Dimensions dims)
          Indicates whether this object is in the same state as the given object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public final int x
The x-dimension. The default value is 1.


y

public final int y
The y-dimension. The default value is 1.


z

public final int z
The z-dimension. The default value is 1.


t

public final int t
The t-dimension. The default value is 1.


c

public final int c
The c-dimension. The default value is 1.

Constructor Detail

Dimensions

public Dimensions()
Default constructor.


Dimensions

public Dimensions(int x)
One-dimensional constructor.

Parameters:
x - The x-dimension.
Throws:
java.lang.IllegalArgumentException - If the parameter value is less than or equal to 0.

Dimensions

public Dimensions(int x,
                  int y)
Two-dimensional constructor.

Parameters:
x - The x-dimension.
y - The y-dimension.
Throws:
java.lang.IllegalArgumentException - If any of the parameter values is less than or equal to 0.

Dimensions

public Dimensions(int x,
                  int y,
                  int z)
Three-dimensional constructor.

Parameters:
x - The x-dimension.
y - The y-dimension.
z - The z-dimension.
Throws:
java.lang.IllegalArgumentException - If any of the parameter values is less than or equal to 0.

Dimensions

public Dimensions(int x,
                  int y,
                  int z,
                  int t)
Four-dimensional constructor.

Parameters:
x - The x-dimension.
y - The y-dimension.
z - The z-dimension.
t - The t-dimension.
Throws:
java.lang.IllegalArgumentException - If any of the parameter values is less than or equal to 0.

Dimensions

public Dimensions(int x,
                  int y,
                  int z,
                  int t,
                  int c)
Five-dimensional constructor.

Parameters:
x - The x-dimension.
y - The y-dimension.
z - The z-dimension.
t - The t-dimension.
c - The c-dimension.
Throws:
java.lang.IllegalArgumentException - If any of the parameter values is less than or equal to 0.
Method Detail

duplicate

public Dimensions duplicate()
Duplicates this object.

Returns:
A new Dimensions object that is an exact copy of this object. All information is copied and no memory is shared between this and the returned object.

equals

public boolean equals(Dimensions dims)
Indicates whether this object is in the same state as the given object.

Parameters:
dims - The object to compare this object with.
Returns:
Value true if the given object is not null and its dimensions are equal to the corresponding dimensions of this object, or false if this is not the case.

ImageScience 3.0.0

Copyright (C) Erik Meijering. Permission to use this software and corresponding documentation for educational, research, and not-for-profit purposes, without a fee and without a signed licensing agreement, is granted, subject to the following terms and conditions.

IT IS NOT ALLOWED TO REDISTRIBUTE, SELL, OR LEASE THIS SOFTWARE, OR DERIVATIVE WORKS THEREOF, WITHOUT PERMISSION IN WRITING FROM THE COPYRIGHT HOLDER. THE COPYRIGHT HOLDER IS FREE TO MAKE VERSIONS OF THE SOFTWARE AVAILABLE FOR A FEE OR COMMERCIALLY ONLY.

IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OF ANY KIND WHATSOEVER, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.

THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE EXPRESS OR IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE AND CORRESPONDING DOCUMENTATION IS PROVIDED "AS IS". THE COPYRIGHT HOLDER HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.