public class ImposeResolution extends StackReader
Resolution
to an image after it has been read.
Any existing Resolution
associated with the image is replaced.
Constructor and Description |
---|
ImposeResolution() |
Modifier and Type | Method and Description |
---|---|
double |
getDepth()
Physical pixel size of a voxel in z-dimension.
|
double |
getHeight()
Physical pixel size of a voxel in y-dimension.
|
StackReader |
getStackReader()
Reads an image before a resolution is imposed.
|
double |
getWidth()
Physical pixel size of a voxel in x-dimension.
|
boolean |
isKeepZ()
Keep the z-resolution if it is already defined
|
OpenedImageFile |
openFile(Path path,
ExecutionTimeRecorder executionTimeRecorder)
Opens a file containing one or more images.
|
void |
setDepth(double depth)
Physical pixel size of a voxel in z-dimension.
|
void |
setHeight(double height)
Physical pixel size of a voxel in y-dimension.
|
void |
setKeepZ(boolean keepZ)
Keep the z-resolution if it is already defined
|
void |
setStackReader(StackReader stackReader)
Reads an image before a resolution is imposed.
|
void |
setWidth(double width)
Physical pixel size of a voxel in x-dimension.
|
readStack
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public OpenedImageFile openFile(Path path, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException
StackReader
This method should run as computationally quicky as possible. Image voxels should not yet be read.
openFile
in class StackReader
path
- where the file is located.executionTimeRecorder
- records the execution-times of certain operations.ImageIOException
- if the file cannot be read.public StackReader getStackReader()
public void setStackReader(StackReader stackReader)
public double getWidth()
public void setWidth(double width)
public double getHeight()
public void setHeight(double height)
public double getDepth()
public void setDepth(double depth)
public boolean isKeepZ()
public void setKeepZ(boolean keepZ)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.