|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgorithm.psgm.SkeletonPathGetter
public class SkeletonPathGetter
we use a special representation for skeleton paths in our algorithm: the idea is to sample each skeleton path in M equidistant points in both skeletons. That way, we include some knowledge about the contours in the following calculations.
for each of these skeleton points, we get the distance to the feature points on the object counter, approximated by the skeleton object's distance map.
These M distances are saved in a vector. this vector is used to represent this skeleton path.
| Field Summary | |
|---|---|
private static org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
SkeletonPathGetter()
|
|
| Method Summary | |
|---|---|
static void |
getAllSkeletonPathVectors(SkeletonObject so1,
SkeletonObject so2)
use this function to set the skeletons' skeleton path vectors. |
static void |
getAllSkeletonPathVectors(SkeletonObject so1,
SkeletonObject so2,
int numberOfSamplePoints)
use this function to set the skeletons' skeleton path vectors. |
private static double |
getNormalization(SkeletonObject so)
to make sure the approach is scale - invariant, get a normalization factor based on the average distance of any object pixel to the contour. |
private static int |
getNumberOfSamplePoints(SkeletonObject so1,
SkeletonObject so2)
Deprecated. |
static void |
getSkeletonPathRepresentation(SkeletonObject so,
SkeletonPath path,
int numberOfSamplePoints,
double normalization)
get the path vector representation for the specified skeleton path. |
private static void |
getSkeletonPathVectors(SkeletonObject so,
int numberOfSamplePoints)
helper function to get skeleton path vectors for the specified skeleton. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public SkeletonPathGetter()
| Method Detail |
|---|
public static void getAllSkeletonPathVectors(SkeletonObject so1,
SkeletonObject so2)
throws InvalidSkeletonException
so1 - first skeletonobject to be sampledso2 - second skeletonobject to be sampled
InvalidSkeletonException
public static void getAllSkeletonPathVectors(SkeletonObject so1,
SkeletonObject so2,
int numberOfSamplePoints)
throws InvalidSkeletonException
so1 - first skeletonobject to be sampledso2 - second skeletonobject to be samplednumberOfSamplePoints - the number of points to sample the paths with
InvalidSkeletonException
private static void getSkeletonPathVectors(SkeletonObject so,
int numberOfSamplePoints)
throws InvalidSkeletonException
so - skeleton whose parts shall be samplednumberOfSamplePoints -
InvalidSkeletonException
public static void getSkeletonPathRepresentation(SkeletonObject so,
SkeletonPath path,
int numberOfSamplePoints,
double normalization)
throws InvalidSkeletonException
path - the path to be samplednumberOfSamplePoints - the number of skeleton points to be samplednormalization - the normalization factor
InvalidSkeletonException
private static int getNumberOfSamplePoints(SkeletonObject so1,
SkeletonObject so2)
throws InvalidSkeletonException
we assume the average number of points in all skeleton paths (in both skeletons) as the best number of sample points.
so1 - the first skeleton to be sampledso2 - the second skeleton to be sampled
InvalidSkeletonExceptionprivate static double getNormalization(SkeletonObject so)
so - SkeletonObject to get the normalization factor for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||