volume
Class VolumeInteger

java.lang.Object
  |
  +--volume.Volume
        |
        +--volume.VolumeInteger
All Implemented Interfaces:
java.io.Serializable

public class VolumeInteger
extends Volume

This class implements int volumes and operations including convolutions on it. Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.

See Also:
Serialized Form

Field Summary
 int[][][] v
           
 
Fields inherited from class volume.Volume
aspectx, aspecty, aspectz, depth, edge, height, width
 
Constructor Summary
VolumeInteger()
           
VolumeInteger(ij.process.ImageProcessor ip)
           
VolumeInteger(ij.ImageStack s)
           
VolumeInteger(ij.ImageStack s, double aspectx, double aspecty, double aspectz)
           
VolumeInteger(ij.ImageStack s, int depth, int n)
          Creates a volume from an ImageStack, with depth slices from n * depth.
VolumeInteger(ij.ImageStack s, int depth, int n, double aspectx, double aspecty, double aspectz)
           
VolumeInteger(int width, int height, int depth)
           
VolumeInteger(int width, int height, int depth, double aspectx, double aspecty, double aspectz)
           
 
Method Summary
 java.lang.Object get(int x, int y, int z)
          Fill the volume from stack s with depth slices from start.
 int[][][] getVolume()
           
 void load(ij.process.ImageProcessor ip, int t)
           
 void load(ij.ImageStack s, int start)
           
protected  void loadImage(int[][] i, byte[] b)
           
protected  void loadImage(int[][] i, int[] sh)
           
 void loadInverse(ij.ImageStack s, int center)
           
protected  void loadSlice(int[][] i, ij.ImageStack s, int io)
           
 void set(java.lang.Object i, int x, int y, int z)
          Set the voxel at x,y,z to value.
 
Methods inherited from class volume.Volume
discreteSupport, getAspectx, getAspecty, getAspectz, getDepth, getEdge, getHeight, getWidth, in, setAspects, setEdge, toString, valid, valid
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

v

public int[][][] v
Constructor Detail

VolumeInteger

public VolumeInteger()

VolumeInteger

public VolumeInteger(int width,
                     int height,
                     int depth)

VolumeInteger

public VolumeInteger(int width,
                     int height,
                     int depth,
                     double aspectx,
                     double aspecty,
                     double aspectz)

VolumeInteger

public VolumeInteger(ij.ImageStack s,
                     double aspectx,
                     double aspecty,
                     double aspectz)

VolumeInteger

public VolumeInteger(ij.ImageStack s)

VolumeInteger

public VolumeInteger(ij.process.ImageProcessor ip)

VolumeInteger

public VolumeInteger(ij.ImageStack s,
                     int depth,
                     int n)
Creates a volume from an ImageStack, with depth slices from n * depth. This is used to extract n-th volume from an ImageStack representing a hypervolume (multiple volumes in one stack).

VolumeInteger

public VolumeInteger(ij.ImageStack s,
                     int depth,
                     int n,
                     double aspectx,
                     double aspecty,
                     double aspectz)
Method Detail

getVolume

public int[][][] getVolume()

get

public java.lang.Object get(int x,
                            int y,
                            int z)
Fill the volume from stack s with depth slices from start.
Overrides:
get in class Volume
Following copied from class: volume.Volume
Parameters:
x, - y, z the position in the volume you want the value of.
Returns:
the value of the volume at x,y,z.

set

public void set(java.lang.Object i,
                int x,
                int y,
                int z)
Description copied from class: Volume
Set the voxel at x,y,z to value.
Overrides:
set in class Volume
Following copied from class: volume.Volume
Parameters:
value - a value suitable for this volume.
x, - y, z the position in the volume.

load

public void load(ij.ImageStack s,
                 int start)

load

public void load(ij.process.ImageProcessor ip,
                 int t)

loadInverse

public void loadInverse(ij.ImageStack s,
                        int center)

loadSlice

protected void loadSlice(int[][] i,
                         ij.ImageStack s,
                         int io)

loadImage

protected void loadImage(int[][] i,
                         byte[] b)

loadImage

protected void loadImage(int[][] i,
                         int[] sh)