minor ocl.cpp refactoring

fix for cv::LUT and cv::transpose