CPU version of zcartoon filter.