Jafar
|
This class provides functions to match two lineSegmentSet. More...
This class provides functions to match two lineSegmentSet.
This class provides functions to match two lineSegmentSet. The main work is done by the descriptor members and corresponding functions in LineSegment, thus this class is strongly related to it.
Definition at line 22 of file lsMatching.hpp.
#include <lsMatching.hpp>
void jafar::lines::LsMatching::matchingSchemeGreyspace | ( | jafar::lines::LineSegmentSet & | lsA, |
jafar::lines::LineSegmentSet & | lsB, | ||
jafar::lines::MatchingSet & | match, | ||
double | thresh | ||
) |
Matching scheme to match to LineSegmentSet.
Matching scheme to match to LineSegmentSet with use of greyspace descriptors stored in LineSegment. The lsA is matched to lsB (imortant to know how to read the MatchingSet). To use this function you have to assign a greyspace to each LineSegment. The following steps should be done: (if you want to orient the line: LineSegment::orientLine) LineSegment::assignContourPts LineSegment::calcGreyspaceDescriptor
This function is a development version, the matching is not reliable.
lsA | old LineSegmentSet |
lsB | new LineSegmentSet |
match | storage for the matching |
thresh | threshold on similarity of greyspace to accept the matching (e.g. 200), similarity of greyspaces has to be higher that that value |
void jafar::lines::LsMatching::matchingSchemeHistoAndGrey | ( | jafar::lines::LineSegmentSet & | lsA, |
jafar::lines::LineSegmentSet & | lsB, | ||
jafar::lines::MatchingSet & | match, | ||
double | threshHisto, | ||
double | threshGrey | ||
) |
Matching scheme to match to LineSegmentSet.
Matching scheme to match to LineSegmentSet with use of greyspace descriptors stored in LineSegment and histograms. The lsA is matched to lsB (imortant to know how to read the MatchingSet). To use this function you have to assign a greyspace to each LineSegment. The following steps should be done: (if you want to orient the line: LineSegment::orientLine) LineSegment::assignContourPts LineSegment::calcGreyspaceDescriptor
The histograms have to be be extracted befor using that function as well: LineSegment:: calcHistogramDescriptor
This function is a development version, the matching is still not reliable.
lsA | old LineSegmentSet |
lsB | new LineSegmentSet |
match | storage for the matching |
histoThresh | threshold on histogram difference to accept the matching (e.g. 20, depends on internal used comparison function)), histogram difference has to be smaller than that value |
threshGrey | threshold on similarity of greyspace to accept the matching (e.g. 200), similarity of greyspaces has to be higher that that value |
void jafar::lines::LsMatching::matchingSchemeHistoAndGreyWithPrediction | ( | jafar::lines::LineSegmentSet & | lsA, |
jafar::lines::LineSegmentSet & | lsB, | ||
jafar::lines::MatchingSet & | match, | ||
double | threshHisto, | ||
double | threshGrey, | ||
double | threshA, | ||
double | threshMPt | ||
) |
Matching scheme to match to LineSegmentSet.
Matching scheme to match to LineSegmentSet with use of greyspace descriptors stored in LineSegment and histograms.
Some geometric constrains are used to decrease the search range. Therfore a prediction for lsB is needed.
The lsA is matched to lsB (imortant to know how to read the MatchingSet). To use this function you have to assign a greyspace to each LineSegment. The following steps should be done: (if you want to orient the line: LineSegment::orientLine) LineSegment::assignContourPts LineSegment::calcGreyspaceDescriptor
The histograms have to be be extracted befor using that function as well: LineSegment:: calcHistogramDescriptor
This function is a development version, the matching is still not reliable.
lsA | old LineSegmentSet |
lsB | new LineSegmentSet |
match | storage for the matching |
histoThresh | threshold on histogram difference to accept the matching (e.g. 20, depends on internal used comparison function)), histogram difference has to be smaller than that value |
threshGrey | threshold on similarity of greyspace to accept the matching (e.g. 200), similarity of greyspaces has to be higher that that value |
threshA | maximal angular difference between matched lines |
threshMPt | maxmimal euklidean distance of midpoints |
void jafar::lines::LsMatching::matchingSchemeHistograms | ( | jafar::lines::LineSegmentSet & | lsA, |
jafar::lines::LineSegmentSet & | lsB, | ||
jafar::lines::MatchingSet & | match, | ||
double | histoThresh | ||
) |
Matching scheme to match to LineSegmentSet.
Matching scheme to match to LineSegmentSet with use of histograms. The lsA is matched to lsB (imortant to know how to read the MatchingSet). The histograms have to be be extracted befor using that function: LineSegment:: calcHistogramDescriptor This function is a development version, the matching is not reliable.
lsA | old LineSegmentSet |
lsB | new LineSegmentSet |
match | storage for the matching |
histoThresh | threshold on histogram difference to accept the matching (e.g. 20, depends on internal used comparison function)), histogram difference has to be smaller than that value |
void jafar::lines::LsMatching::topologicalFilter | ( | jafar::lines::LineSegmentSet & | lsA, |
jafar::lines::LineSegmentSet & | lsB, | ||
jafar::lines::MatchingSet & | match | ||
) |
Reduce the matching ba applying topological constraints.
Reduce the matching ba applying topological constraints. It's still in development.
Generated on Wed Oct 15 2014 00:37:42 for Jafar by doxygen 1.7.6.1 |