MasteringOpenCV / code

Code for the book "Mastering OpenCV with Practical Computer Vision Projects" by Packt Publishing 2012.
Other
2.71k stars 1.64k forks source link

what is the purpose of "Normalized dimensions" in Chapter 3? #105

Open lyycfairy opened 3 years ago

lyycfairy commented 3 years ago

As follows, Thanks.

// Normalized dimensions: const float maxSize = std::max(w,h); const float unitW = w / maxSize; const float unitH = h / maxSize;