|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgorithm.PathSimilaritySkeletonGraphMatching
Matching2D instead
@Deprecated public class PathSimilaritySkeletonGraphMatching
Kind of a wrapper class for the usage of PSGM, the "real" execution
class for the matching algorithm.
When using this class as a caller for PSGM, additional meta problems
will be taken of:
| Field Summary | |
|---|---|
private org.apache.log4j.Logger |
logger
Deprecated. logger instance |
private boolean |
reordered
Deprecated. hold the information if the two skeletons were reordered for the algorithm, that is, so1
originally was the second skeleton, and the other way around. |
private SkeletonObject |
so1
Deprecated. the first skeleton object (the one with lesser end nodes |
private SkeletonObject |
so1_flipped
Deprecated. the first skeleton object, read from an image flipped horizontally |
private SkeletonObject |
so2
Deprecated. the second skeleton object (the one with more end nodes |
| Constructor Summary | |
|---|---|
PathSimilaritySkeletonGraphMatching(SkeletonObject so1,
SkeletonObject so1_flipped,
SkeletonObject so2)
Deprecated. Constructor. |
|
PathSimilaritySkeletonGraphMatching(java.lang.String skeletonfilename1,
java.lang.String objectfilename1,
java.lang.String skeletonfilename2,
java.lang.String objectfilename2)
Deprecated. Constructor. |
|
PathSimilaritySkeletonGraphMatching(java.lang.String skeletonfilename1,
java.lang.String objectfilename1,
java.lang.String skeletonfilename2,
java.lang.String objectfilename2,
boolean preprocess)
Deprecated. Constructor. |
|
| Method Summary | |
|---|---|
CleanMatchingResult |
go(Config config)
Deprecated. Execute the PSGM algorithm. |
private void |
loadSkeletons(java.lang.String skeletonfilename1,
java.lang.String objectfilename1,
java.lang.String skeletonfilename2,
java.lang.String objectfilename2)
Deprecated. load both skeletons, specified by the filename. |
| 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 so2
private SkeletonObject so1_flipped
private boolean reordered
so1
originally was the second skeleton, and the other way around.
private final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public PathSimilaritySkeletonGraphMatching(java.lang.String skeletonfilename1,
java.lang.String objectfilename1,
java.lang.String skeletonfilename2,
java.lang.String objectfilename2)
throws java.io.IOException,
InvalidSkeletonException,
InvalidConfigParameterException
Given the paths to two skeleton images and two shape images (all four must be binary images), the skeletons will automatically be parsed, reordered if need be, and the smaller skeleton is parsed again from the images flipped horizontally. *
skeletonfilename1 - - path to the first skeleton imageobjectfilename1 - - path to the first shape image (belonging to
skeletonfilename1)skeletonfilename2 - - path to the second skeleton imageobjectfilename2 - - path to the second skeleton image (belonging to
skeletonfilename2)
java.io.IOException - - if one or more of the images was not found
InvalidSkeletonException - - if one of the skeletons seems broken
InvalidConfigParameterException
public PathSimilaritySkeletonGraphMatching(java.lang.String skeletonfilename1,
java.lang.String objectfilename1,
java.lang.String skeletonfilename2,
java.lang.String objectfilename2,
boolean preprocess)
throws java.io.IOException,
InvalidSkeletonException,
InvalidConfigParameterException
Given the paths to two skeleton images and two shape images (all four must be binary images), the skeletons will automatically be parsed, reordered if need be, and the smaller skeleton is parsed again from the images flipped horizontally. *
skeletonfilename1 - - path to the first skeleton imageobjectfilename1 - - path to the first shape image (belonging to
skeletonfilename1)skeletonfilename2 - - path to the second skeleton imageobjectfilename2 - - path to the second skeleton image (belonging to
skeletonfilename2)preprocess -
java.io.IOException - - if one or more of the images was not found
InvalidSkeletonException - - if one of the skeletons seems broken
InvalidConfigParameterException
public PathSimilaritySkeletonGraphMatching(SkeletonObject so1,
SkeletonObject so1_flipped,
SkeletonObject so2)
throws InvalidSkeletonException,
WrongUsageOfAlgorithmException
Given already parsed skeleton objects, execute the PSGM
algorithm. Make sure that the preconditions are fullfilled for the two
skeleton objects, i.e., the first skeleton object *must* have less or
equal end nodes than the second skeleton object. The two skeleton objects
are assumed not to have been reordered.
so1 - - the first skeleton object, *must* have less end nodes than
the second object.so1_flipped - - the first skeleton object, parsed from an image flipped
horizontallyso2 - - the second skeleton object, *must* have more end nodes than
the first object.
InvalidSkeletonException - - if one of the skeletons seems broken
WrongUsageOfAlgorithmException - - if the specified first skeleton object has more end nodes
than the second.| Method Detail |
|---|
public CleanMatchingResult go(Config config)
throws InvalidSkeletonException,
InvalidWeightFunctionGivenException,
WrongUsageOfAlgorithmException,
InvalidConfigParameterException
PSGM algorithm. It is automatically executed twice
for each skeleton pair:
config - - the configuration parameters for this algorithm
InvalidSkeletonException - - if one of the skeleton seems broken
InvalidWeightFunctionGivenException - - if no valid weight function could be extracted for
HungarianAlgorithm
WrongUsageOfAlgorithmException
InvalidConfigParameterException
private void loadSkeletons(java.lang.String skeletonfilename1,
java.lang.String objectfilename1,
java.lang.String skeletonfilename2,
java.lang.String objectfilename2)
throws java.io.IOException,
InvalidSkeletonException,
InvalidConfigParameterException
skeletonfilename1 - - path to the first skeleton imageobjectfilename1 - - path to the first shape image (belonging to
skeletonfilename1)skeletonfilename2 - - path to the second skeleton imageobjectfilename2 - - path to the second skeleton image (belonging to
skeletonfilename2)
java.io.IOException - - if one of the image was not found
InvalidSkeletonException - - if one of the skeletons seems broken
InvalidConfigParameterException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||