12-02-2017, 08:17 PM
12-02-2017, 08:56 PM
If you convert the selection to a path (or if you just create the path around the object), I have a script to export the path (its "anchor" points, in particular) to a CSV file: see here.
The "Histogram" dialog (and the gimp_histogram() function for scripts) can tell you several things about the selection (count of pixels (all or within specified range), etc...).
The "Histogram" dialog (and the gimp_histogram() function for scripts) can tell you several things about the selection (count of pixels (all or within specified range), etc...).
02-02-2018, 02:28 AM
However, paths are splines, made up of a finite set of nodes with 2 control points each.
When you export a path, you get an ASCII .XML file, which you can read.
I tried to write a plug-in to identify which pixels were lying under a path and quickly discovered it ain't trivial to figure out how to "proceed along the path from the initial node."
When you export a path, you get an ASCII .XML file, which you can read.
I tried to write a plug-in to identify which pixels were lying under a path and quickly discovered it ain't trivial to figure out how to "proceed along the path from the initial node."
02-02-2018, 11:56 AM
(02-02-2018, 02:28 AM)gramp Wrote: [ -> ]However, paths are splines, made up of a finite set of nodes with 2 control points each.
When you export a path, you get an ASCII .XML file, which you can read.
I tried to write a plug-in to identify which pixels were lying under a path and quickly discovered it ain't trivial to figure out how to "proceed along the path from the initial node."
Uh? Not trivial, but not that difficult.