Class SizeMapping
Object
org.anchoranalysis.plugin.image.task.size.SizeMapping
public class SizeMapping extends Object
Maps a
Path to a particular image-size and orientation-change.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description SizeMapping(Path path, org.anchoranalysis.spatial.box.Extent extent) -
Method Summary
Modifier and Type Method Description voidassignExtent(org.anchoranalysis.spatial.box.Extent extent)Replace the existingExtentwith a new value.org.anchoranalysis.spatial.box.ExtentgetExtent()The size.PathgetPath()The path.SizeMappingscaleXYBy(org.anchoranalysis.spatial.scale.ScaleFactor scaleFactor)Scales the XY dimensions the factor.
-
Constructor Details
-
Method Details
-
assignExtent
public void assignExtent(org.anchoranalysis.spatial.box.Extent extent)Replace the existingExtentwith a new value.- Parameters:
extent- the extent to assign.
-
scaleXYBy
Scales the XY dimensions the factor.This is an immutable method.
- Parameters:
scaleFactor- the factor to scale by.- Returns:
- a new
SizeMappingwith the scale-factor applied.
-
getPath
The path. -
getExtent
public org.anchoranalysis.spatial.box.Extent getExtent()The size.
-