我想优化我的代码, 我的代码包含以下步骤
//img size 1024 X 720
cvSmooth(img, inputImg, CV_GAUSSIAN, 5, 0, 0);
FilterOperations::sobelSchaar(inputImg, sobImg);
cvResize(sobImg, sob2Img);
//sob2Img size 512 X 360
cvSmooth(sob2Img, sob2Img, CV_GAUSSIAN, 3, 3);
imgProceObj.normalise(sob2Img);
cvAdaptiveThreshold(sob2Img, sob2Img, 255,
CV_ADAPTIVE_THRESH_GAUSSIAN_C, CV_THRESH_BINARY, 31, 50);
如何在不更改最终结果的情况下optimize
以上代码?