public class ImageContainer extends Object
Modifier and Type | Field and Description |
---|---|
protected ij.ImagePlus |
ip |
protected boolean |
isStack |
protected ij.process.ShortProcessor |
lproc |
protected short[][] |
proc_pixels |
protected ij.process.ImageProcessor[] |
sproc |
protected int |
stack_size |
protected String |
title |
protected int |
width |
Constructor and Description |
---|
ImageContainer() |
ImageContainer(ij.ImagePlus ip)
Constructs a new ImageContainer.
|
ImageContainer(ij.process.ImageProcessor[] iproc) |
Modifier and Type | Method and Description |
---|---|
void |
applyFilter(Filter filter)
Applies the passed Filter on every image in the container.
|
void |
applyFilter(Filter filter,
int start,
int end)
Applies the passed filter on the selected range of images
|
double[][][] |
calculateGradients()
Calculates grey value gradients of the image container an returns a result
array.
|
ij.ImagePlus |
createImagePlus(String title) |
ImageContainer |
deepCopy()
Returns a deep copy of the whole ImageContainer
|
int |
getHeight()
Returns the height of the contained images
|
int |
getImageCount()
Returns the number of contained images
|
int |
getPixel(int x,
int y,
int z)
Returns an array filled with the pixel values at the selected
coordinates.
|
int |
getWidth()
Returns the width of the contained images
|
double |
getzScale() |
BufferedImage |
ij2bufferedImage(Image im) |
ImageProgressContainer |
progressCopy() |
void |
setData(double[][][] data)
Sets the image stack to the contents of the passed three-dimensional double
value array.
|
void |
setPixel(int x,
int y,
int z,
int pixel)
Sets the selected pixel to value provided by a array
|
ij.ImagePlus |
updateImagePlus(String title) |
protected ij.ImagePlus ip
protected String title
protected ij.process.ImageProcessor[] sproc
protected final short[][] proc_pixels
protected int width
protected int stack_size
protected boolean isStack
protected ij.process.ShortProcessor lproc
public ImageContainer()
public ImageContainer(ij.ImagePlus ip)
public ImageContainer(ij.process.ImageProcessor[] iproc)
public final ij.ImagePlus createImagePlus(String title)
public final ij.ImagePlus updateImagePlus(String title)
public final int getImageCount()
public final int getPixel(int x, int y, int z)
x
- The X coordinatey
- The Y coordinatez
- The Z coordinatepublic final int getWidth()
public final int getHeight()
public final void setPixel(int x, int y, int z, int pixel)
x
- The X coordinatey
- The Y coordinatez
- The Z coordinatepixel
- An array containing values for the pixel - usually RGB(A).public final ImageContainer deepCopy()
public final ImageProgressContainer progressCopy()
public final void setData(double[][][] data)
data
- The data arraypublic final double[][][] calculateGradients()
public final void applyFilter(Filter filter)
filter
- The filterpublic final void applyFilter(Filter filter, int start, int end)
filter
- The Filterstart
- The start index (zero based indices)end
- The end index (zero based indices)public final BufferedImage ij2bufferedImage(Image im)
public final double getzScale()
Copyright © 2015–2021 Fiji. All rights reserved.