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()voidsetDisplayer(StackDisplayer displayer) How to convert an image to be displayed to the user.voidsetInterpolator(Interpolator interpolator) voidvoidstart()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:ThumbnailFromStackInitializes the thumbnail creation process.Should always be called once before any calls to
ThumbnailFromStack.thumbnailFor(org.anchoranalysis.image.core.stack.Stack).- Specified by:
startin classThumbnailFromStack
-
thumbnailFor
Description copied from class:ThumbnailFromStackCreates a thumbnail for a stack.- Specified by:
thumbnailForin classThumbnailFromStack- Parameters:
stack- theStackto create a thumbnail from- Returns:
- a
DisplayStackrepresenting 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.
-