Losing crops

General out-of-character discussion among players of Cantr II.

Moderators: Public Relations Department, Players Department

Navi
Posts: 87
Joined: Tue Dec 06, 2011 5:54 pm

Re: Losing crops

Postby Navi » Thu Feb 09, 2012 4:52 pm

I sent Seko a PM further explaining it, but I'll state it here too. I used OpenCV (a computer vision library), which also has a function for approximating contour polygons from something like the result I posted. It wouldn't be difficult to add. The technique also correctly locates lake borders, I just didn't want to post a full island map or anything. I have tried it though.

Edit:
After a bit of a struggle getting it to do what I wanted, (and keeping with the Australia example, although modified):
Image

This has a total of 53 points. Listing the coordinates will take too much space, so I won't.

Trying it on a accurate map of a medium sized island from the game (with more than average shoreline for the size and including a lake) gives a very tight fitting 116 points (< 8 pixels off at worst).

The accuracy can be easily changed though if that is too many or too few points.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest