I would like a extension of index/indexof to simply return the index as if it was treated as a image. I know we both talked about indexing, and doing it in the math parser, but, in this case, I would like to avoid adjusting vector, but it can be done with the current Cimg, albit with low performance.
Like the equilavent of the last image result:
$ sp cat colormap 5 (192,158,120) permute. cyzx index. ..,0,0 # G'MIC code, of course.