fix mismatch on NV OCL and some AMD GPUs
Fix a bug in ocl::Erode/Dilate, simplify the host logic
Merge pull request #628 from bitwangyaoyao:2.4_fixMoments
Merge pull request #638 from bitwangyaoyao:2.4_fixErode
Fix merge conflicts