public class MeshImageStack extends Object
Modifier and Type | Field and Description |
---|---|
int |
CURRENT |
double[][][] |
data |
double |
MAX_VALUE |
double |
MIN_VALUE |
double[] |
offsets |
double[] |
pixel_dimensions |
double |
SCALE |
double[] |
scale_values |
Constructor and Description |
---|
MeshImageStack() |
MeshImageStack(ij.ImagePlus original) |
MeshImageStack(ij.ImagePlus original,
int frame,
int channel) |
MeshImageStack(Path path)
Creates an ImagePlus from the provided path.
|
Modifier and Type | Method and Description |
---|---|
void |
copyValues()
Copies the image data from the image stack to the double[][] backing the
image data that is used for obtaining values.
|
void |
copyValues(ij.ImagePlus other)
For creating a backing double array of another ImagePlus that uses the same geometry as the original image
plus.
|
FurrowTransformer |
createFurrowTransform(double[] pos,
double[] normal) |
Image |
createSlice(double[] pos,
double[] normal) |
BufferedImage |
createSlice(FurrowTransformer transformer) |
MeshImageSubStack |
createSubStack(Box3D box) |
double[] |
getCenterOfMass() |
ij.ImagePlus |
getCurrentFrame()
Returns a single channel image plus of the current frame.
|
static MeshImageStack |
getEmptyStack() |
int |
getHeightPx() |
double[] |
getImageCoordinates(double[] r)
Returns x, y, z in (px, px, slice) indexes of the backing data array.
|
double[] |
getIntensityValues() |
double |
getInterpolatedValue(double[] xyz) |
double |
getInterpolatedValue(double x,
double y,
double z) |
Box3D |
getLimits() |
double |
getMinPx()
Smallest pixel, in the x,y, or z direction from the input image.
|
int |
getNFrames() |
double[] |
getNormalizedCoordinate(double[] r)
Finds the position in normalized coordinates using.
|
double |
getNormalizedImageDepth()
Normalized length of the image along the z-axis.
|
double |
getNormalizedImageHeight()
Normalized length of the image along the y-axis.
|
double |
getNormalizedImageWidth()
Normalized length of the image along the x-axis.
|
int |
getNSlices() |
ij.ImagePlus |
getOriginalPlus() |
String |
getUnits() |
double |
getValue(int x,
int y,
int z)
Gets the value at the image coordintes x,y,z doesn't perform any sort of check.
|
int |
getWidthPx() |
void |
nextFrame() |
void |
previousFrame() |
ij.ImagePlus |
samplePlus(Box3D box) |
double[] |
scaleToNormalizedLength(double[] l)
given a length in px, px, slices this scales the length to normalized
coordinate values.
|
void |
setChannel(int c) |
void |
setFrame(int i) |
public double[][][] data
public double SCALE
public double[] scale_values
public double[] offsets
public double[] pixel_dimensions
public int CURRENT
public double MIN_VALUE
public double MAX_VALUE
public MeshImageStack()
public MeshImageStack(ij.ImagePlus original, int frame, int channel)
public MeshImageStack(ij.ImagePlus original)
public MeshImageStack(Path path)
path
- public int getNFrames()
public int getNSlices()
public int getWidthPx()
public int getHeightPx()
public String getUnits()
public double[] scaleToNormalizedLength(double[] l)
l
- px, px, slices (x,y,z lengths in image slices)public double[] getNormalizedCoordinate(double[] r)
r
- location in px,px,slicepublic void nextFrame()
public void previousFrame()
public void setFrame(int i)
public void setChannel(int c)
public void copyValues()
public void copyValues(ij.ImagePlus other)
other
- public double getInterpolatedValue(double x, double y, double z)
public double getInterpolatedValue(double[] xyz)
public double getValue(int x, int y, int z)
x
- y
- z
- public BufferedImage createSlice(FurrowTransformer transformer)
public Image createSlice(double[] pos, double[] normal)
public double getNormalizedImageDepth()
public double getNormalizedImageWidth()
public double getNormalizedImageHeight()
public FurrowTransformer createFurrowTransform(double[] pos, double[] normal)
public double[] getCenterOfMass()
public double[] getImageCoordinates(double[] r)
r
- x, y, z in normalized coordinates.public double getMinPx()
public Box3D getLimits()
public static MeshImageStack getEmptyStack()
public MeshImageSubStack createSubStack(Box3D box)
public ij.ImagePlus samplePlus(Box3D box)
public ij.ImagePlus getCurrentFrame()
public double[] getIntensityValues()
public ij.ImagePlus getOriginalPlus()
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.