patch_summary_cimg function

Extract a numerical summary from image patches, using CImg's mini-language Experimental feature.