I have a gray-scale image in Gimp and I want to process it like this:
*multiply image by 2
*subtract 1
*square the image (i.e. image*image)
In short output = (1-image*2)^2
So if have the following input image:
![Image](http://gimpchat.com/download/file.php?mode=view&id=12711&sid=fd72e0132a417db2b9e682bf6c0d47ba)
The expected result is:
![Image](http://gimpchat.com/download/file.php?mode=view&id=12712&sid=fd72e0132a417db2b9e682bf6c0d47ba)
The math is dead simple and it works if I use math nodes in Blender,
so the problem is my G'MIC implementation:
#@gimp Simple eq: simple_eq, simple_eq
simple_eq :
-to_gray
-mul -2
-add 1
-sqr
I thought maybe the problem is G'MIC processing the image as 8bit integer
instead of float, but if I try to convert it with -int82float I get an error.
Someone knows how to implement this equation in G'MIC?
Maybe you have to use int82float but you can't because Gimp doesn't support float images?
Is there a workaround to get the same result?