Class ScaleToSize
Object
AnchorBean<ThumbnailFromStack>
ThumbnailFromStack
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 TypeMethodDescriptionStackDisplayerHow to convert an image to be displayed to the user.InterpolatorSizeXYgetSize()voidsetDisplayer(StackDisplayer displayer) How to convert an image to be displayed to the user.voidsetInterpolator(Interpolator interpolator) voidsetSize(SizeXY size) voidstart()Initializes the thumbnail creation process.DisplayStackthumbnailFor(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
public DisplayStack thumbnailFor(Stack stack) throws CreateException 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
public SizeXY getSize() -
setSize
public void setSize(SizeXY size) -
getInterpolator
public Interpolator getInterpolator() -
setInterpolator
public void setInterpolator(Interpolator interpolator) -
getDisplayer
public StackDisplayer getDisplayer()How to convert an image to be displayed to the user. -
setDisplayer
public void setDisplayer(StackDisplayer displayer) How to convert an image to be displayed to the user.
-