RSS/Atom feed Twitter
Site is read-only, email is disabled

getting x/y coordinates from simple lines

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

getting x/y coordinates from simple lines peter 16 Dec 09:22
  getting x/y coordinates from simple lines Alexandre Prokoudine 16 Dec 09:59
  getting x/y coordinates from simple lines Ofnuts 16 Dec 10:08
peter
2015-12-16 09:22:55 UTC (over 8 years ago)

getting x/y coordinates from simple lines

hi,

i would like to get coordinates for pictures that look like EKG-Diagrams example: http://www.clker.com/cliparts/U/3/3/c/2/t/ekg-black-hi.png

the resolution i need should be enough to recreate the image with mathplotlib and have it look almost identical...for the human eye.

a x/y output in a csv format or something like that would be great.

do you guys have any idea how to accomplish that? the pictures i read in will be "made by hand", but they will have a pure white / pure black so working with opencv should also be possible but i guess theres a easier solution in gimp, i wont work with that much image material.

found this script that is supposed to work with gimp: http://gimp-path-tools.sourceforge.net/tools.shtml#path-csv

installed it according to http://gimp-path-tools.sourceforge.net/ (on the right)
copying, setting executable...

now it should show up in the right click menu when creating a path... but when i create a path in my image and right click on it i dont even see the word "path" in the popup menu...where can i find it?

Alexandre Prokoudine
2015-12-16 09:59:44 UTC (over 8 years ago)

getting x/y coordinates from simple lines

On Wed, Dec 16, 2015 at 12:22 PM, peter

now it should show up in the right click menu when creating a path... but when i create a path in my image and right click on it i dont even see the word "path" in the popup menu...where can i find it?

1. Right click on a path in the Paths dialog

2. Tools -> CSV -> Export CSV

But I have a feeling you'd rather use something like this:

http://rhig.physics.yale.edu/~ullrich/software/xyscan/

http://digitizer.sourceforge.net/

https://sourceforge.net/projects/spectrascan/

Alex

Ofnuts
2015-12-16 10:08:44 UTC (over 8 years ago)

getting x/y coordinates from simple lines

When properly installed it will show up there:

http://imgur.com/1rsE1tW

However, you have to create the path manually first with the path editor, with enough sampling points. The paths Gimp will create from the selection will likely not have enough points, it is however possible with a Bezier curves library to interpolate the exported values.

PM me directly if you need more help.

Bonus: the CSV for the images, paths created by Gimp: https://www.dropbox.com/s/lfsp57k82oc7ga1/ekg.csv

On 16/12/15 10:22, peter wrote:

hi,

i would like to get coordinates for pictures that look like EKG-Diagrams example: http://www.clker.com/cliparts/U/3/3/c/2/t/ekg-black-hi.png

the resolution i need should be enough to recreate the image with mathplotlib and have it look almost identical...for the human eye.

a x/y output in a csv format or something like that would be great.

do you guys have any idea how to accomplish that? the pictures i read in will be "made by hand", but they will have a pure white / pure black so working with opencv should also be possible but i guess theres a easier solution in gimp, i wont work with that much image material.

found this script that is supposed to work with gimp: http://gimp-path-tools.sourceforge.net/tools.shtml#path-csv

installed it according to http://gimp-path-tools.sourceforge.net/ (on the right)
copying, setting executable...

now it should show up in the right click menu when creating a path... but when i create a path in my image and right click on it i dont even see the word "path" in the popup menu...where can i find it? _______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list