I’m having a hard time understanding the ‘apply_curve’ command!
I originally needed a simple curve like this:

So I thought maybe this simple call to apply_curve would do, setting a “control point” at 223, and the ending value as 245 at 255:
apply_curve 1,0,0,223,223,255,245
But it resulted in a very dark and colour-shifted image, so just for testing I tried what I assumed to be an identity ramp (i.e., there should be no change in values):
apply_curve 1,0,0,255,255
Still, I got this instead:
Evidently, I’m missing something very basic here, but looking at the documentation and examples from other filters, I really can’t put my finger on it! I suppose I might have to do with the input colour space assumed (or not…) by G’MIC, but the images I tried this with are all using plain sRGB…
Can anyone put me in the right direction with this rather embarrassing problem?
Here’s the minimal reproducing filter for the above test:
#@gui [Local] Test Filter : local_test_filter, local_test_filter_preview(0)
#@gui : sep = separator()
#@gui : Preview Type = choice("Full","Forward Horizontal","Forward Vertical","Backward Horizontal",
#@gui : "Backward Vertical","Duplicate Top","Duplicate Left","Duplicate Bottom","Duplicate Right",
#@gui : "Duplicate Horizontal","Duplicate Vertical","Checkered","Checkered Inverse")
local_test_filter :
#apply_curve 1,0,0,223,223,255,245
apply_curve 1,0,0,255,255
local_test_filter_preview :
gui_split_preview "local_test_filter $*",$-1
Thanks!








