Gimp-Forum.net
How to export pixel data to excel? - 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: How to export pixel data to excel? (/Thread-How-to-export-pixel-data-to-excel)



How to export pixel data to excel? - Razorclad - 12-02-2017

If you use a selection tool to select a perimeter of an object, is there a way to output the pixel locations (x and y) to excel?


RE: How to export pixel data to excel? - Ofnuts - 12-02-2017

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...).


RE: How to export pixel data to excel? - gramp - 02-02-2018

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."


RE: How to export pixel data to excel? - Ofnuts - 02-02-2018

(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.