Gimp-Forum.net
cut some values - 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: cut some values (/Thread-cut-some-values)



cut some values - djibb - 03-08-2022

Hi all,
i world like to 'cut', i.e. put to 0 some values above a treshold value.

Something like : if pixel value > 130 -> 0


The idea is to make some astronomical masks to remove noise. (erase signa, then substract noise)

How do I do this ? From scripts ?


RE: cut some values - tmanni - 03-09-2022

You can do this with the Threshold filter:
Ensure your image is 8bit integer (menu Image -> Precision)
then menu Colors -> Threshold...
  • set the left input to 0
  • set the right input to 130
  • in Blending Options, set the Mode to Multiply