chickadee » leptonica » pix-min-or-max

pix-min-or-max pix-d pix-1 pix-2 choose-typeprocedure

Returns a pointer to an image which is formed either from the pixel-wise min or max of the two source images (the type determined by choose-type, defined below). If pix-d is #f then a new image is created and returned. If pix-d is an image, then that image is updated. If pix-d is the same as pix-1 then an in-place change is made.