public class TemplateMatchingWithRasters extends ImageProcessingTask
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
private boolean |
finished |
private int |
hotSpotX |
private int |
hotSpotY |
private int |
imageHeight |
private int |
imageWidth |
private javax.media.jai.PlanarImage |
input |
private javax.media.jai.TiledImage |
output |
private int |
position |
private javax.media.jai.PlanarImage |
template |
private int |
templateHeight |
private int |
templateWidth |
isCancelable, parentTask, virtualMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
TemplateMatchingWithRasters(javax.media.jai.PlanarImage input,
javax.media.jai.PlanarImage template)
The constructor for this class, which gets the input images and set some
parameters.
|
| Modifier and Type | Method and Description |
|---|---|
javax.media.jai.TiledImage |
getOutput()
This method returns the output image.
|
long |
getPosition()
This method returns a measure of the progress of the algorithm.
|
long |
getSize()
This method returns a measure of length for the algorithm.
|
boolean |
isFinished()
This method tells whether the algorithm has finished.
|
void |
run()
This method is the main driver of the algorithm, it will perform the template
matching.
|
addProgressListener, fireProgressChanged, getParentTask, getPcs, getProgressListeners, isCancelable, isCancelled, isVirtual, setCancelable, setParentTask, setPcs, setVirtualactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprivate javax.media.jai.PlanarImage input
private javax.media.jai.PlanarImage template
private javax.media.jai.TiledImage output
private int imageWidth
private int imageHeight
private int templateWidth
private int templateHeight
private int hotSpotX
private int hotSpotY
private boolean finished
private int position
public TemplateMatchingWithRasters(javax.media.jai.PlanarImage input,
javax.media.jai.PlanarImage template)
input - the input image.template - the template matching mask.public long getSize()
getSize in class ImageProcessingTaskpublic long getPosition()
getPosition in class ImageProcessingTaskpublic void run()
run in interface Runnablerun in class ImageProcessingTaskpublic boolean isFinished()
isFinished in class ImageProcessingTaskpublic javax.media.jai.TiledImage getOutput()
Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.