Minor issue with custom function “extract_region” (gmic 2.9.8_pre, MacOS 11.4)
gmic run “follic_ label. 0 +extract_region[0] [1],0,1,2”
[gmic]-0./ Start G’MIC interpreter.
[gmic] *** Error in ./run/extract_region/*repeat/*local/ *** Command ‘fill’: gmic: Function ‘resize()’: Cannot both fill and resize image (256,256,1,1) to new dimensions (1,0,1,1).
[gmic] Command ‘fill’ has the following description:
…
Just tried extract_region under Windows and linux (Ubuntu 20.04 and get still the same error:
~$ gmic +v up follic_ label. 0 extract_region… .,0,1,2
[gmic]-0./ Start G’MIC interpreter.
gmic: GREYC’s Magic for Image Computing: command-line interface
Version 2.9.8 (pre-release #210525)
(https://gmic.eu)
Copyright (c) Since 2008, David Tschumperlé / GREYC / CNRS.
(https://www.greyc.fr)
[gmic]-0./ Update command definition file ‘/home/karo/gmic/update298.gmic’ from the G’MIC server.
[gmic]-0./ Load thyroid follicle nuclei and mask example image
[gmic]-2./ Label connected components on image [1], with tolerance 0 (L2-norm) and low connectivity.
[gmic]-1./ Extract pixels of image [0] for labels {1,2} in image ., without coordinates.
[gmic] *** Error in ./extract_region/*repeat/*local/ *** Command ‘fill’: gmic: Function ‘resize()’: Cannot both fill and resize image (256,256,1,1) to new dimensions (1,0,1,1).
[gmic] Command ‘fill’ has the following description:
Great! I noticed this but forgot to report. I also had trouble with quote-free variables in fill but maybe that is resolved. Anyway, I will upgrade pre again just in case I didn’t get some of the fixes. PS Oh yes, I forget I have to wait a while: current timestamp is 2021-06-25 13:56.
Monitor complains the display setting has changed to interlaced.
a) Originally, it also lowered the refresh rate to the unsupported i-59Hz and kept it at that on exit.
b) I can’t replicate a now. On exiting full screen, the settings revert back to p-60Hz.
2 Changing brightness with the right click. Click at different pixel locations on various slices.
gmic sp tiger +b 5 a z
Not the best example. If the slices have more value contrast within and among, the changes are more significant.
3 new When scrolling through slices, they are normalized such that even though the values among slices aren’t varying that much some are much brighter than others.
4 new Unexpected behaviour? I use cli_start at the beginning of my user.gmic. An imported command of the same name as one in user.gmic overrides it.
This can be used to load external gmic file? Sound good enough for me to organize gmic file as I usually add new command into user.gmic. Sometimes I wish I could organize more.