How do I use CIBlendKernel to average the pixel values of two images?

I was wondering how to use the CIBlendKernel ( https://developer.apple.com/documentation/coreimage/ciblendkernel ) to average the pixel values of two input images.


Thanks in advance!


Kindest regards,

Rico