I would like to mention a website full of documentation about Imagemagick. It proposes a lot of very deep scripts for an advanced use of the program, for example on the color matrix or on the hald cluts, etc.
That is a significant amount of work to have put all of this together. It is a really good reference to learn something about a specific area. I noticed 2 Dcraw topics that may help in using that in Cinelerra-GG and was pleased to see Lena (that famous illustrated image processing algorithm lady) in Perceptual hash tests topic.