Class ImposeResolution
Object
AnchorBean<StackReader>
StackReader
ImposeResolution
public class ImposeResolution
extends StackReader
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 TypeMethodDescriptiondoublegetDepth()Physical pixel size of a voxel in z-dimension.doublePhysical pixel size of a voxel in y-dimension.StackReaderReads an image before a resolution is imposed.doublegetWidth()Physical pixel size of a voxel in x-dimension.booleanisKeepZ()Keep the z-resolution if it is already definedOpenedImageFilevoidsetDepth(double depth) Physical pixel size of a voxel in z-dimension.voidsetHeight(double height) Physical pixel size of a voxel in y-dimension.voidsetKeepZ(boolean keepZ) Keep the z-resolution if it is already definedvoidsetStackReader(StackReader stackReader) Reads an image before a resolution is imposed.voidsetWidth(double width) Physical pixel size of a voxel in x-dimension.Methods inherited from class org.anchoranalysis.image.io.bean.stack.reader.StackReader
readStackMethods 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 - Specified by:
openFilein classStackReader- Throws:
ImageIOException
-
getStackReader
public StackReader getStackReader()Reads an image before a resolution is imposed. -
setStackReader
public void setStackReader(StackReader stackReader) 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
-