Class VoxelsResizerOpenCV
Object
org.anchoranalysis.image.voxel.resizer.VoxelsResizer
org.anchoranalysis.plugin.opencv.resizer.VoxelsResizerOpenCV
public class VoxelsResizerOpenCV
extends org.anchoranalysis.image.voxel.resizer.VoxelsResizer
Resizes
VoxelBuffers using OpenCV's cv2.resize function.
It uses Imgproc.INTER_AREA interpolation when downsampling, and Imgproc.INTER_LINEAR when upsampling.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description VoxelsResizerOpenCV() -
Method Summary
Modifier and Type Method Description booleancanValueRangeChange()protected org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer>resizeByte(org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer> voxelsSource, org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer> voxelsDestination, org.anchoranalysis.spatial.box.Extent extentSource, org.anchoranalysis.spatial.box.Extent extentDestination)protected org.anchoranalysis.image.voxel.buffer.VoxelBuffer<FloatBuffer>resizeFloat(org.anchoranalysis.image.voxel.buffer.VoxelBuffer<FloatBuffer> voxelsSource, org.anchoranalysis.image.voxel.buffer.VoxelBuffer<FloatBuffer> voxelsDestination, org.anchoranalysis.spatial.box.Extent extentSource, org.anchoranalysis.spatial.box.Extent extentDestination)protected org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedShortBuffer>resizeShort(org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedShortBuffer> voxelsSource, org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedShortBuffer> voxelsDestination, org.anchoranalysis.spatial.box.Extent extentSource, org.anchoranalysis.spatial.box.Extent extentDestination)
-
Constructor Details
-
VoxelsResizerOpenCV
public VoxelsResizerOpenCV()
-
-
Method Details
-
canValueRangeChange
public boolean canValueRangeChange()- Specified by:
canValueRangeChangein classorg.anchoranalysis.image.voxel.resizer.VoxelsResizer
-
resizeByte
protected org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer> resizeByte(org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer> voxelsSource, org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer> voxelsDestination, org.anchoranalysis.spatial.box.Extent extentSource, org.anchoranalysis.spatial.box.Extent extentDestination)- Specified by:
resizeBytein classorg.anchoranalysis.image.voxel.resizer.VoxelsResizer
-
resizeShort
protected org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedShortBuffer> resizeShort(org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedShortBuffer> voxelsSource, org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedShortBuffer> voxelsDestination, org.anchoranalysis.spatial.box.Extent extentSource, org.anchoranalysis.spatial.box.Extent extentDestination)- Specified by:
resizeShortin classorg.anchoranalysis.image.voxel.resizer.VoxelsResizer
-
resizeFloat
protected org.anchoranalysis.image.voxel.buffer.VoxelBuffer<FloatBuffer> resizeFloat(org.anchoranalysis.image.voxel.buffer.VoxelBuffer<FloatBuffer> voxelsSource, org.anchoranalysis.image.voxel.buffer.VoxelBuffer<FloatBuffer> voxelsDestination, org.anchoranalysis.spatial.box.Extent extentSource, org.anchoranalysis.spatial.box.Extent extentDestination)- Specified by:
resizeFloatin classorg.anchoranalysis.image.voxel.resizer.VoxelsResizer
-