public class TemplateMatchingWithIterators 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, virtual
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
TemplateMatchingWithIterators(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, setVirtual
activeCount, 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, yield
private 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 TemplateMatchingWithIterators(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 ImageProcessingTask
public long getPosition()
getPosition
in class ImageProcessingTask
public void run()
run
in interface Runnable
run
in class ImageProcessingTask
public boolean isFinished()
isFinished
in class ImageProcessingTask
public javax.media.jai.TiledImage getOutput()
Copyright © 2009–2016 Helmut Ahammer, Philipp Kainz. All rights reserved.