Class ImposeResolution
Adds an explicit
Resolution
to an image after it has been read.
Any existing Resolution
associated with the image is replaced.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getDepth()
Physical pixel size of a voxel in z-dimension.double
Physical pixel size of a voxel in y-dimension.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 definedopenFile
(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 definedvoid
setStackReader
(StackReader stackReader) Reads an image before a resolution is imposed.void
setWidth
(double width) Physical pixel size of a voxel in x-dimension.Methods inherited from class org.anchoranalysis.image.io.bean.stack.reader.StackReader
readStack
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ImposeResolution
public ImposeResolution()
-
-
Method Details
-
openFile
public OpenedImageFile openFile(Path path, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException Description copied from class:StackReader
Opens a file containing one or more images.This method should run as computationally quicky as possible. Image voxels should not yet be read.
- Specified by:
openFile
in classStackReader
- Parameters:
path
- where the file is located.executionTimeRecorder
- records the execution-times of certain operations.- Returns:
- an interface to the opened file that should be closed when no longer in use.
- Throws:
ImageIOException
- if the file cannot be read.
-
getStackReader
Reads an image before a resolution is imposed. -
setStackReader
Reads an image before a resolution is imposed. -
getWidth
public double getWidth()Physical pixel size of a voxel in x-dimension. -
setWidth
public void setWidth(double width) Physical pixel size of a voxel in x-dimension. -
getHeight
public double getHeight()Physical pixel size of a voxel in y-dimension. -
setHeight
public void setHeight(double height) Physical pixel size of a voxel in y-dimension. -
getDepth
public double getDepth()Physical pixel size of a voxel in z-dimension. -
setDepth
public void setDepth(double depth) Physical pixel size of a voxel in z-dimension. -
isKeepZ
public boolean isKeepZ()Keep the z-resolution if it is already defined -
setKeepZ
public void setKeepZ(boolean keepZ) Keep the z-resolution if it is already defined
-