Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gimp, python, and numpy
#26
This just a good way to write scripts that must compute things on pixels. When you write scripts, either you rely on Gimp operations (your unit of work is the layer, or a selection on a layer) or you work pixel-by-pixel. But since the image can contain several million pixels, this can be slow if you write code loops in Python. With something like numpy you can do math operations on a whole layer at a time or even on several layers. The median filter is a typical example of something that cannot be done with layer blend modes so doing it in a script without numpy it would be very slow.

Of course one can also use GMIC...
Reply


Messages In This Thread
Gimp, python, and numpy - by Ofnuts - 12-04-2017, 09:52 PM
RE: Gimp, python, and numpy - by Espermaschine - 12-06-2017, 12:23 AM
RE: Gimp, python, and numpy - by Ofnuts - 12-06-2017, 12:31 AM
RE: Gimp, python, and numpy - by Zero01 - 12-06-2017, 07:16 PM
RE: Gimp, python, and numpy - by Ofnuts - 12-06-2017, 11:26 PM
RE: Gimp, python, and numpy - by Zero01 - 12-07-2017, 12:29 PM
RE: Gimp, python, and numpy - by Ofnuts - 12-07-2017, 02:24 PM
RE: Gimp, python, and numpy - by dinasset - 12-07-2017, 08:57 AM
RE: Gimp, python, and numpy - by Ofnuts - 12-07-2017, 09:49 AM
RE: Gimp, python, and numpy - by Zero01 - 12-07-2017, 09:59 AM
RE: Gimp, python, and numpy - by dinasset - 12-07-2017, 10:24 AM
RE: Gimp, python, and numpy - by Ofnuts - 12-07-2017, 02:22 PM
RE: Gimp, python, and numpy - by Ofnuts - 12-07-2017, 12:57 PM
RE: Gimp, python, and numpy - by Zero01 - 12-07-2017, 01:14 PM
RE: Gimp, python, and numpy - by rich2005 - 12-07-2017, 01:26 PM
RE: Gimp, python, and numpy - by dinasset - 12-07-2017, 01:50 PM
RE: Gimp, python, and numpy - by Zero01 - 12-07-2017, 01:55 PM
RE: Gimp, python, and numpy - by Zero01 - 12-07-2017, 03:08 PM
RE: Gimp, python, and numpy - by Kevin - 12-07-2017, 03:09 PM
RE: Gimp, python, and numpy - by dinasset - 12-07-2017, 03:42 PM
RE: Gimp, python, and numpy - by Zero01 - 12-07-2017, 05:15 PM
RE: Gimp, python, and numpy - by Kevin - 12-07-2017, 05:33 PM
RE: Gimp, python, and numpy - by Zero01 - 12-07-2017, 05:57 PM
RE: Gimp, python, and numpy - by Ofnuts - 12-07-2017, 05:59 PM
RE: Gimp, python, and numpy - by Zero01 - 12-07-2017, 06:11 PM
RE: Gimp, python, and numpy - by Ofnuts - 12-07-2017, 06:33 PM
RE: Gimp, python, and numpy - by rich2005 - 12-07-2017, 06:41 PM
RE: Gimp, python, and numpy - by rich2005 - 12-08-2017, 11:08 AM
RE: Gimp, python, and numpy - by Zero01 - 12-10-2017, 12:33 PM

Forum Jump: