On Sat, Dec 7, 2019 at 2:34 PM JuciÊ Andrade <oju...@gmail.com> wrote:

> I am pretty sure there are other ways to do it, but the method I devised is 
> simple and produces a good enough result. If somebody can put a hole in my 
> reasoning, feel free to do so.
>
> All the info I need are in a map, OK? So I downloaded a map from the 
> Internet. I choose a map that shows only the territory I am interested in and 
> nothing else:
>
> http://www.temasactuales.com/temasblog/wp-content/Images/mapa_do_brasil.gif
>
> The method goes like this: I scan the image counting every pixel that is not 
> background color. It gives my territory area. Then I divide that by 2 to 
> obtain half the area.
>
> I scan the image again from top to bottom, stopping when I reach half the 
> area. I draw a horizontal line dividing north and south. Finally I scan the 
> image from left to right stopping at half area and draw a vertical line 
> dividing east from west. The point I am interested in is in the intersection 
> of those two lines.

This method resembles determining the CG, but only very approximately.
How is your "middle" actually defined?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-X_k0KyGrM77kBRUSkrUOLNSPn-0Rk9LGbCeoxkmYJ5Rg%40mail.gmail.com.

Reply via email to