Class ImposeResolution
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.image.io.bean.stack.reader.StackReader>
org.anchoranalysis.image.io.bean.stack.reader.StackReader
org.anchoranalysis.plugin.io.bean.stack.reader.ImposeResolution
public class ImposeResolution
extends org.anchoranalysis.image.io.bean.stack.reader.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 Constructor Description ImposeResolution() -
Method Summary
Modifier and Type Method Description doublegetDepth()Physical pixel size of a voxel in z-dimension.doublegetHeight()Physical pixel size of a voxel in y-dimension.org.anchoranalysis.image.io.bean.stack.reader.StackReadergetStackReader()Reads 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 definedorg.anchoranalysis.image.io.stack.input.OpenedImageFileopenFile(Path path, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder)voidsetDepth(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(org.anchoranalysis.image.io.bean.stack.reader.StackReader stackReader)Reads an image before a resolution is imposed.voidsetWidth(double width)Physical pixel size of a voxel in x-dimension.
-
Constructor Details
-
ImposeResolution
public ImposeResolution()
-
-
Method Details
-
openFile
public org.anchoranalysis.image.io.stack.input.OpenedImageFile openFile(Path path, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder) throws org.anchoranalysis.image.io.ImageIOException- Specified by:
openFilein classorg.anchoranalysis.image.io.bean.stack.reader.StackReader- Throws:
org.anchoranalysis.image.io.ImageIOException
-
getStackReader
public org.anchoranalysis.image.io.bean.stack.reader.StackReader getStackReader()Reads an image before a resolution is imposed. -
setStackReader
public void setStackReader(org.anchoranalysis.image.io.bean.stack.reader.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
-