workaround for cv::multiply bug

workaround for cv::multiply bug http://code.opencv.org/issues/3341