Class ScaleToSize
Create a thumbnail by scales an image to a particular size.
The aspect ratio between width and height is not preserved.
If it's a z-stack, a maximum intensity projection is first applied.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionHow to convert an image to be displayed to the user.getSize()
void
setDisplayer
(StackDisplayer displayer) How to convert an image to be displayed to the user.void
setInterpolator
(Interpolator interpolator) void
void
start()
Initializes the thumbnail creation process.thumbnailFor
(Stack stack) Creates a thumbnail for a stack.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ScaleToSize
public ScaleToSize()
-
-
Method Details
-
start
public void start()Description copied from class:ThumbnailFromStack
Initializes the thumbnail creation process.Should always be called once before any calls to
ThumbnailFromStack.thumbnailFor(org.anchoranalysis.image.core.stack.Stack)
.- Specified by:
start
in classThumbnailFromStack
-
thumbnailFor
Description copied from class:ThumbnailFromStack
Creates a thumbnail for a stack.- Specified by:
thumbnailFor
in classThumbnailFromStack
- Parameters:
stack
- theStack
to create a thumbnail from- Returns:
- a
DisplayStack
representing the thumbnail - Throws:
CreateException
- if the thumbnail creation fails
-
getSize
-
setSize
-
getInterpolator
-
setInterpolator
-
getDisplayer
How to convert an image to be displayed to the user. -
setDisplayer
How to convert an image to be displayed to the user.
-