Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Following Der Luftmensh's advice: The functions HarrisResponses and ICAngles in orb.cpp can be copied and modified. Note that these functions do not check whether the points that are used are too close to the image's edge (trying to do a calculation on a patch around e.g. point (0,0) will cause an error).

ICAngles takes an argument vector<int> u_max, which at first can be a little confusing. The function does its calculations on a circular patch inside the square 31x31 patch. u_max tells how many columns away from center in each row of the square patch that constitutes the circle (if you plot the values of u_max in an horizontal bar-diagram, it will resemble a circle quadrant).

Lines 814-829 in orb.cpp calculates u_max, but for a 31x31 patch std::vector<int> u_max = {15, 15, 15, 15, 14, 14, 14, 13, 13, 12, 11, 10, 9, 8, 6, 3, 0}; can be used.