Thanks for your help everyone, looks like I'm going to go with pix_opencv_colofilt, it appears to do exactly what I need.

Cheers!