optimized morph operations
optimized cv::morphologyEx