Gimp-Forum.net
automatically get locations of multiple simple geometric forms from digitized maps - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: automatically get locations of multiple simple geometric forms from digitized maps (/Thread-automatically-get-locations-of-multiple-simple-geometric-forms-from-digitized-maps)



automatically get locations of multiple simple geometric forms from digitized maps - grab06 - 12-08-2022

Hello,

I would like to automatically get locations of multiple simple geometric forms from digitized maps ...

I have roughly 300 digitized maps (300 7 MB files) containing the positions of all allied and german units during the last year of world war 2. It is approximately 500 units * 300 days = 150000 locations.

Using the Gimp script-fu, I'm able to pre-process the maps and remove the backgrounds to keep the units symbols only. Attached is the light result map for the 6th of June 1944.

Is there any "simple" way, using gimp to separately detect the geometric unit symbols (rectangles with round inside, rectangles with cross inside, dashed rectangles, ...) and then get a corresponding position in the image?

I think at kind of convolutional algo ... ?

It is quite obvious for a single map to do it manually, but ... I would like to be able to insert this into a script-fu to run it automatically over the 300 map files.

I don't want to use heavy processing like AI for that ...

Thanks for your help.

Olivier


RE: automatically get locations of multiple simple geometric forms from digitized maps - grab06 - 12-08-2022

well ... after thinking a bit ore ... one way could be to process the image of the map (without the background) with the opencv library (library for image processing). but I'm wondering whether this kind of library does already exist as plugin for gimp ? have a good day.


RE: automatically get locations of multiple simple geometric forms from digitized maps - Ofnuts - 12-09-2022

Definitely more a job for opencv. A Gimp plugin could export the layer to file before calling opencv on it.