|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
retrieval.SearchThread
public class SearchThread
A thread to handle the parsing of one skeleton and comparing it with
PSGM to the query object (passed as "ready-to-use" skeleton object).
The result is saved to a priority queue, passed by reference, automatically
ordering all results of all concurrent threads according to their descending
similarity.
See also SimilaritySearch.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private java.lang.String |
category
the category of the second skeleton objecz |
private Config |
config
configuring algorithm |
private MatchList |
ml
the correspondence list to hold the found matchings between the two skeleton objects. |
private java.lang.String |
objectfilename1
the path to the shape image of the first skeleton object |
private java.lang.String |
objectfilename2
the path to the shape image of the second skeleton object |
private SimilaritySearchResult |
result
the result to hold meta data about the found result. |
private java.util.PriorityQueue<SimilaritySearchResult> |
results
priority queue to store all found results in. |
private java.lang.String |
skeletonfilename1
the path to the skeleton image of the first skeleton object |
private java.lang.String |
skeletonfilename2
the path to the skeleton image of the second skeleton object |
private SkeletonObject |
so
the query skeleton object to be compared |
private SkeletonObject |
so_flipped
the query skeleton object, parsed from flipped image |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
SearchThread(SkeletonObject so,
SkeletonObject so_flipped,
java.lang.String skeletonfilename1,
java.lang.String objectfilename1,
java.lang.String skeletonfilename2,
java.lang.String objectfilename2,
java.lang.String category,
int nosp,
double alpha,
java.util.PriorityQueue<SimilaritySearchResult> results)
create a new search thread. |
|
| Method Summary | |
|---|---|
java.lang.String |
getObjectfilename1()
|
java.lang.String |
getObjectfilename2()
|
java.lang.String |
getSkeletonfilename1()
|
java.lang.String |
getSkeletonfilename2()
|
void |
run()
Start the search thread. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final SkeletonObject so
private final SkeletonObject so_flipped
private final java.lang.String skeletonfilename1
private final java.lang.String objectfilename1
private final java.lang.String skeletonfilename2
private final java.lang.String objectfilename2
private final java.lang.String category
private Config config
private MatchList ml
private SimilaritySearchResult result
private final java.util.PriorityQueue<SimilaritySearchResult> results
| Constructor Detail |
|---|
public SearchThread(SkeletonObject so,
SkeletonObject so_flipped,
java.lang.String skeletonfilename1,
java.lang.String objectfilename1,
java.lang.String skeletonfilename2,
java.lang.String objectfilename2,
java.lang.String category,
int nosp,
double alpha,
java.util.PriorityQueue<SimilaritySearchResult> results)
throws InvalidConfigParameterException
so - - the skeleton object for which the similarities are searchedso_flipped - - the skeleton object for which the similarities are searched,
parsed from flipped image.skeletonfilename1 - - the path to the skeleton image of the query skeleton objectobjectfilename1 - - the path to the shape image of the query skeleton objectskeletonfilename2 - - the path to the skeleton image of the target skeleton objectobjectfilename2 - - the path to the shape image of the target skeleton objectcategory - - the category of the second skeleton objectnosp - - the number of sample pointsalpha - - the weight factor for path lengthsresults - - the PriorityQueue to store all results in
InvalidConfigParameterException| Method Detail |
|---|
public java.lang.String getSkeletonfilename2()
public java.lang.String getObjectfilename2()
public void run()
PSGM is
applied to this second skeleton object and the query object. The result
is saved to a priority queue, automatically ordering the results
according to their similarity to the query object.
run in interface java.lang.Runnablerun in class java.lang.Threadpublic java.lang.String getObjectfilename1()
public java.lang.String getSkeletonfilename1()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||