|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgorithm.Matching3D
public class Matching3D
Wrapper class to use PSGM for the matching of 3D data. Takes care of
loading the data and reordering the skeletons, if needed.
PSGM is then applied to the two skeletons, where the end nodes of the
two skeletons are matched.
| Field Summary | |
|---|---|
private Config |
config
holding configuration parameters |
private org.apache.log4j.Logger |
logger
logger instance |
private boolean |
reordered
true if the two skeletons had to be reordered |
private SkeletonObject |
so1
first, "smaller" skeleton object (the one with less end nodes |
private SkeletonObject |
so2
second, " bigger" skeleton object (the one with more end nodes) |
| Constructor Summary | |
|---|---|
Matching3D(java.lang.String thinningfile1,
java.lang.String thinninginfo1,
java.lang.String volumefile1,
java.lang.String volumeinfo1,
java.lang.String thinningfile2,
java.lang.String thinninginfo2,
java.lang.String volumefile2,
java.lang.String volumeinfo2,
Config config)
Constructor. |
|
| Method Summary | |
|---|---|
CleanMatchingResult |
go()
Applying PSGM.go(Config) to the two skeletons loaded. |
private void |
loadSkeletons(java.lang.String thinningfile1,
java.lang.String thinninginfo1,
java.lang.String volumefile1,
java.lang.String volumeinfo1,
java.lang.String thinningfile2,
java.lang.String thinninginfo2,
java.lang.String volumefile2,
java.lang.String volumeinfo2)
Load the skeletons. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final org.apache.log4j.Logger logger
private SkeletonObject so1
private SkeletonObject so2
private boolean reordered
private final Config config
| Constructor Detail |
|---|
public Matching3D(java.lang.String thinningfile1,
java.lang.String thinninginfo1,
java.lang.String volumefile1,
java.lang.String volumeinfo1,
java.lang.String thinningfile2,
java.lang.String thinninginfo2,
java.lang.String volumefile2,
java.lang.String volumeinfo2,
Config config)
throws java.io.IOException,
InvalidSkeletonException
go().
thinningfile1 - - the path to the skeleton data filethinninginfo1 - - the path to the skeleton info filevolumefile1 - - the path to the volume data filevolumeinfo1 - - the path to the volume info filethinningfile2 - - the path to the second skeleton data filethinninginfo2 - - the path to the second skeleton info filevolumefile2 - - the path to the second volume data filevolumeinfo2 - - the path to the second volume info fileconfig - - holding all configuration parameters
java.io.IOException - - if one or more of the input files could not be found
InvalidSkeletonException - - if one of the skeletons could not be parsed correctly| Method Detail |
|---|
public CleanMatchingResult go()
throws InvalidSkeletonException,
InvalidWeightFunctionGivenException,
WrongUsageOfAlgorithmException,
InvalidConfigParameterException
PSGM.go(Config) to the two skeletons loaded. Return
value is a CleanMatchingResult, which means that the resulting
matchlist from PSGM.go(config.Config) is already cleaned up. That is, if the two
skeleton have been reordered in the matching process, the matchings are
now "translated back" to the original skeleton order. The matchings are
given by the end nodes' indices in the original skeleton.
InvalidSkeletonException - if one of the skeletons seems to be broken
InvalidWeightFunctionGivenException - if no valid weight function could be extracted for Hungarian
algorihthm
WrongUsageOfAlgorithmException - if one of the algorithm has been applied in a wrong way
InvalidConfigParameterException
private void loadSkeletons(java.lang.String thinningfile1,
java.lang.String thinninginfo1,
java.lang.String volumefile1,
java.lang.String volumeinfo1,
java.lang.String thinningfile2,
java.lang.String thinninginfo2,
java.lang.String volumefile2,
java.lang.String volumeinfo2)
throws java.io.IOException,
InvalidSkeletonException
thinningfile1 - - the path to the skeleton data filethinninginfo1 - - the path to the skeleton info filevolumefile1 - - the path to the volume data filevolumeinfo1 - - the path to the volume info filethinningfile2 - - the path to the second skeleton data filethinninginfo2 - - the path to the second skeleton info filevolumefile2 - - the path to the second volume data filevolumeinfo2 - - the path to the second volume info file
java.io.IOException - - if one of the input files could not be found
InvalidSkeletonException - - if the skeleton seems to be broken
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||