Created
May 21, 2014 10:32
-
-
Save wolfkarl/37d3dd91542a669bda05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// normalize and flip | |
for (ii = 0; ii < npoints; ii++) | |
{ | |
cv::Point p, pn; | |
p = selected.at(ii); | |
pn.x = 100*(p.x - xmin) / (xmax-xmin); | |
pn.y = 100*(p.y - ymin) / (ymax-ymin); | |
normalized.push_back(pn); | |
std::cout << "Normalized: " << pn.x << " " << pn.y << "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment