public class WritableVirtualStack
extends ij.ImageStack
Constructor and Description |
---|
WritableVirtualStack(String dir)
Creates a new Writable Stack, using the given directory
as a folder for the individual images.
|
WritableVirtualStack(String dir,
int w,
int h)
Creates a new Writable Stack, using the given directory
as a folder for the individual images.
|
Modifier and Type | Method and Description |
---|---|
void |
addSlice(String name)
Adds a slice to the end of the stack.
|
void |
addSlice(String name,
ij.process.ImageProcessor ip)
Adds the given ImageProcessor as a slice to the end of the stack.
|
void |
addSlice(String name,
ij.process.ImageProcessor ip,
int n)
Adds the given ImageProcessor as a slice at the specified
position in the stack.
|
void |
addSlice(String name,
Object pixels)
Adds a slice with the given pixels to the end of the stack.
|
void |
deleteLastSlice()
Deletes the last slice in the stack.
|
void |
deleteSlice(int n)
Deletes the specified slice.
|
String |
getDirectory()
Returns the path to the directory containing the images.
|
String |
getFileName(int n)
Returns the file name of the specified slice,
where 1 <= n <= nslices.
|
int |
getHeight()
Returns the height of this stack.
|
Object[] |
getImageArray()
Returns null.
|
Object |
getPixels(int n)
Returns the pixel array for the specified slice,
where 1 <= n <= nslices.
|
ij.process.ImageProcessor |
getProcessor(int n)
Returns an ImageProcessor for the specified slice.
|
int |
getSize()
Returns the number of slices in this stack.
|
String |
getSliceLabel(int n)
Returns the label of the Nth image, where 1 <= n <= nSlices.
|
int |
getWidth()
Returns the width of this stack.
|
boolean |
isVirtual()
Always return true.
|
void |
saveIndicesFile()
Saves the 'indices' file to the image directory.
|
void |
setPixels(Object pixels,
int n)
Assigns a pixel array to the specified slice.
|
void |
setSliceLabel(String label,
int n)
Does nothing.
|
void |
trim()
Does nothing.
|
addSlice, addUnsignedShortSlice, convertToFloat, create, create, crop, drawSphere, duplicate, getBitDepth, getColorModel, getRoi, getShortSliceLabel, getSliceLabels, getVoxel, getVoxels, getVoxels, isHSB, isHSB32, isLab, isRGB, setBitDepth, setColorModel, setProcessor, setRoi, setVoxel, setVoxels, setVoxels, size, toString, update
public WritableVirtualStack(String dir, int w, int h)
public WritableVirtualStack(String dir)
public int getWidth()
getWidth
in class ij.ImageStack
public int getHeight()
getHeight
in class ij.ImageStack
public void saveIndicesFile()
public void addSlice(String name)
name
- The name of the slice. This parameter exists only for
compatibility reasons with ImageStack, but is not used
here.public void addSlice(String name, Object pixels)
addSlice
in class ij.ImageStack
name
- The name of the slice. This parameter exists only for
compatibility reasons with ImageStack, but is not used
here.pixels
- The pixel array for the new slice.public void addSlice(String name, ij.process.ImageProcessor ip)
addSlice
in class ij.ImageStack
name
- The name of the slice. This parameter exists only for
compatibility reasons with ImageStack, but is not used
here.ip
- The ImageProcessor for the new slice.public void addSlice(String name, ij.process.ImageProcessor ip, int n)
addSlice
in class ij.ImageStack
name
- The name of the slice. This parameter exists only for
compatibility reasons with ImageStack, but is not used
here.ip
- The ImageProcessor for the new slice.n
- The position of the slice, 0 to add it at the beginning.public void deleteSlice(int n)
deleteSlice
in class ij.ImageStack
n
- The position of the slice to delete, where 1 <= n <= nslices.public void deleteLastSlice()
deleteLastSlice
in class ij.ImageStack
public Object getPixels(int n)
getPixels
in class ij.ImageStack
public void setPixels(Object pixels, int n)
setPixels
in class ij.ImageStack
pixels
- The pixel array to be assigned.n
- The slice index, where 1 <= n <= nslices.public ij.process.ImageProcessor getProcessor(int n)
getProcessor
in class ij.ImageStack
n
- The slice index, where 1 <= n <= nSlices.public int getSize()
getSize
in class ij.ImageStack
public String getSliceLabel(int n)
getSliceLabel
in class ij.ImageStack
public Object[] getImageArray()
getImageArray
in class ij.ImageStack
public void setSliceLabel(String label, int n)
setSliceLabel
in class ij.ImageStack
public boolean isVirtual()
isVirtual
in class ij.ImageStack
public void trim()
trim
in class ij.ImageStack
public String getDirectory()
public String getFileName(int n)
Copyright © 2015–2021 Fiji. All rights reserved.