Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

here's how I would solve it:

  • ask the user to click on the corners of a rectangle on the roof

corners

  • warp the picture so the view is straight on (adjust control points well!)

perspective warp given corners of a rectangle

  • select a tile as a template

image description

  • find that template

image description

you can find those peaks and count them.