java.lang.Object
java.util.Observable
de.grogra.video.util.ProgressObservable
de.grogra.video.interpolation.InterpolationStrategy
de.grogra.video.interpolation.SimpleInterpolationStrategy
de.grogra.video.interpolation.AlphaFadingStrategy
Generates images using a simple alpha fading strategy.
- Author:
- Dominick Leppich
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<VideoImage>
computeImages
(VideoImage a, VideoImage b, int n) Computen
images between the imagesA
andB
.getName()
Get the name of the image generating strategy instance.Methods inherited from class de.grogra.video.interpolation.SimpleInterpolationStrategy
computeImages, setSubProgress
Methods inherited from class de.grogra.video.interpolation.InterpolationStrategy
generateImages, toString
Methods inherited from class de.grogra.video.util.ProgressObservable
setProgress
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
AlphaFadingStrategy
public AlphaFadingStrategy()
-
-
Method Details
-
computeImages
Description copied from class:SimpleInterpolationStrategy
Computen
images between the imagesA
andB
. In order to calculate the progress of this strategy correctly, each subclass needs to call the methodSimpleInterpolationStrategy.setSubProgress(double)
after the computation of each image inside this method.- Specified by:
computeImages
in classSimpleInterpolationStrategy
- Parameters:
a
- - Image Ab
- - Image Bn
- - Number of images to compute between A and B- Returns:
- A list of computed images
- Throws:
IOException
- if the computation fails
-
getName
Description copied from class:InterpolationStrategy
Get the name of the image generating strategy instance.- Specified by:
getName
in classInterpolationStrategy
- Returns:
- Name
-