ini.trakem2.imaging
Class LayerStack

java.lang.Object
  extended by ij.ImageStack
      extended by ini.trakem2.imaging.LayerStack

public class LayerStack
extends ij.ImageStack

This class represents an entire LayerSet of Patch objects only, as it is presented read-only to ImageJ.


Constructor Summary
LayerStack(LayerSet layer_set, double scale, int type, java.lang.Class clazz, int c_alphas)
           
LayerStack(LayerSet layer_set, double scale, int type, java.lang.Class clazz, int c_alphas, boolean invert)
           
LayerStack(java.util.List<Layer> layers, java.awt.Rectangle roi, double scale, int type, java.lang.Class clazz, int c_alphas, boolean invert)
          If scale <=0 || scale > 1, throws IllegalArgumentException.
 
Method Summary
 void addSlice(java.lang.String sliceLabel, ij.process.ImageProcessor ip)
          Does nothing.
 void addSlice(java.lang.String sliceLabel, ij.process.ImageProcessor ip, int n)
          Does nothing.
 void addSlice(java.lang.String sliceLabel, java.lang.Object pixels)
          Does nothing.
 void deleteLastSlice()
          Does nothing.
 void deleteSlice(int n)
          Does nothing.
 java.lang.Object[] getImageArray()
          Returns a linear array for each slice, real (not virtual)!
 ij.ImagePlus getImagePlus()
           
 java.lang.Object getPixels(int n)
          Returns the pixel array for the specified slice, were 1<=n<=nslices.
 ij.process.ImageProcessor getProcessor(int n)
          Returns an ImageProcessor for the specified slice, were 1<=n<=nslices.
 int getSize()
          Returns the number of slices in this stack.
 java.lang.String getSliceLabel(int n)
          Returns the file name of the Nth image.
 int getType()
           
 boolean isHSB()
          Override: always false.
 boolean isRGB()
          Override: always false.
 boolean isVirtual()
          Always return true.
 void setPixels(java.lang.Object pixels, int n)
          Does nothing.
 void setSliceLabel(java.lang.String label, int n)
          Does nothing.
 void trim()
          Does nothing.
 
Methods inherited from class ij.ImageStack
addUnsignedShortSlice, getColorModel, getHeight, getRoi, getShortSliceLabel, getSliceLabels, getVoxel, getWidth, setColorModel, setRoi, setVoxel, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LayerStack

public LayerStack(LayerSet layer_set,
                  double scale,
                  int type,
                  java.lang.Class clazz,
                  int c_alphas,
                  boolean invert)

LayerStack

public LayerStack(java.util.List<Layer> layers,
                  java.awt.Rectangle roi,
                  double scale,
                  int type,
                  java.lang.Class clazz,
                  int c_alphas,
                  boolean invert)
If scale <=0 || scale > 1, throws IllegalArgumentException.


LayerStack

public LayerStack(LayerSet layer_set,
                  double scale,
                  int type,
                  java.lang.Class clazz,
                  int c_alphas)
Method Detail

addSlice

public void addSlice(java.lang.String sliceLabel,
                     java.lang.Object pixels)
Does nothing.

Overrides:
addSlice in class ij.ImageStack

addSlice

public void addSlice(java.lang.String sliceLabel,
                     ij.process.ImageProcessor ip)
Does nothing.

Overrides:
addSlice in class ij.ImageStack

addSlice

public void addSlice(java.lang.String sliceLabel,
                     ij.process.ImageProcessor ip,
                     int n)
Does nothing.

Overrides:
addSlice in class ij.ImageStack

deleteSlice

public void deleteSlice(int n)
Does nothing.

Overrides:
deleteSlice in class ij.ImageStack

deleteLastSlice

public void deleteLastSlice()
Does nothing.

Overrides:
deleteLastSlice in class ij.ImageStack

getPixels

public java.lang.Object getPixels(int n)
Returns the pixel array for the specified slice, were 1<=n<=nslices. The scale of the returned flat image for the Layer at index 'n-1' will be defined by the LayerSet virtualization options.

Overrides:
getPixels in class ij.ImageStack

setPixels

public void setPixels(java.lang.Object pixels,
                      int n)
Does nothing.

Overrides:
setPixels in class ij.ImageStack

getProcessor

public ij.process.ImageProcessor getProcessor(int n)
Returns an ImageProcessor for the specified slice, were 1<=n<=nslices. Returns null if the stack is empty.

Overrides:
getProcessor in class ij.ImageStack

getSize

public int getSize()
Returns the number of slices in this stack.

Overrides:
getSize in class ij.ImageStack

getSliceLabel

public java.lang.String getSliceLabel(int n)
Returns the file name of the Nth image.

Overrides:
getSliceLabel in class ij.ImageStack

getImageArray

public java.lang.Object[] getImageArray()
Returns a linear array for each slice, real (not virtual)!

Overrides:
getImageArray in class ij.ImageStack

setSliceLabel

public void setSliceLabel(java.lang.String label,
                          int n)
Does nothing.

Overrides:
setSliceLabel in class ij.ImageStack

isVirtual

public boolean isVirtual()
Always return true.

Overrides:
isVirtual in class ij.ImageStack

isHSB

public boolean isHSB()
Override: always false.

Overrides:
isHSB in class ij.ImageStack

isRGB

public boolean isRGB()
Override: always false.

Overrides:
isRGB in class ij.ImageStack

trim

public void trim()
Does nothing.

Overrides:
trim in class ij.ImageStack

getType

public int getType()

getImagePlus

public ij.ImagePlus getImagePlus()