|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgorithm.psgm.PSGMResult
public class PSGMResult
"dirty" matching result of the matching algorithm PSGM. The order of
the skeleton object might not be the same as the user input was, that is, the
original "skeleton1" now could be "skeleton2", as the algorithm requires that
the skeleton with lesser end nodes is skeleton1. Also, it might be that one
of the skeletons (the "smaller" one, thus, skeleton1) needed to be flipped in
order to get good matchings. The MatchList achieved is then defined
by the indices of the skeleton end nodes in the flipped skeleton. For a
result, with all this stuff cleaned up, use
getCleanMatchingResult().
| Field Summary | |
|---|---|
private boolean |
flipped
holds the information if for the found matching, skeleton 1 had to be flipped |
private MatchList |
ml
the found matching, maybe with switched partners and with flipped indices |
private boolean |
reordered
holds the information if the two skeletons were reordered for execution of the algorithm |
private SkeletonObject |
so1
the "smaller" skeleton object (with less end nodes) |
private SkeletonObject |
so1_flipped
the "smaller" skeleton object (with less end nodes) parsed from flipped image |
private SkeletonObject |
so2
the "bigger" skeleton object (with more end nodes) |
| Constructor Summary | |
|---|---|
PSGMResult()
|
|
| Method Summary | |
|---|---|
CleanMatchingResult |
getCleanMatchingResult()
From the "dirty" PSGMResult, extract a cleaned up result. |
private MatchList |
reorderMatchList(MatchList ml)
In case of reordered skeletons, the matching partners of each single matching in the found matchlist have to be swapped to reconstruct the original order |
void |
setFlipped(boolean flipped)
Set if the smaller skeleton (with less end nodes) was flipped in order to get better maching results. |
void |
setMl(MatchList ml)
Set the "dirty" matchlist |
void |
setReordered(boolean reordered)
Set if the two skeleton were reordered for the execution of the algorithm. |
void |
setSo1_flipped(SkeletonObject so1Flipped)
Set the flipped version of the "smaller" skeleton. |
void |
setSo1(SkeletonObject so1)
Set the first skeleton, that is, the one with lesser end nodes. |
void |
setSo2(SkeletonObject so2)
Set the second skeleton, that is, the one with more end nodes. |
private MatchList |
unflipMatchList(MatchList ml)
In case of flipped images, the matching list has to be "translated back": That is, for each matched end node in skeleton1 (the smaller skeleton), we translate back the coordinates to the unflipped image and look for the index of the end nodes with the computed coordinates in the original end node list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private SkeletonObject so1
private SkeletonObject so1_flipped
private SkeletonObject so2
private boolean flipped
private MatchList ml
private boolean reordered
| Constructor Detail |
|---|
public PSGMResult()
| Method Detail |
|---|
public CleanMatchingResult getCleanMatchingResult()
private MatchList unflipMatchList(MatchList ml)
ml - the flipped match list
private MatchList reorderMatchList(MatchList ml)
ml - a matchlist with swapped matching partners
public void setSo1_flipped(SkeletonObject so1Flipped)
so1Flipped - the flipped skeleton to setpublic void setReordered(boolean reordered)
reordered - true if the skeletons were reordered, false if notpublic void setSo1(SkeletonObject so1)
so1 - the "smaller" skeleton to setpublic void setSo2(SkeletonObject so2)
so2 - the "bigger" so2 to setpublic void setFlipped(boolean flipped)
flipped - true if the smaller skeleton was flipped for this matching,
false if not.public void setMl(MatchList ml)
ml - the ml to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||