1 | initial version |
it should not be:
Mat vectMat;
but :
vector<Mat> vectMat;
then, you should not call SobelDirections
twice (it's quite expensive !)
std::vector<cv::Mat> sd = SobelDirections(image);
imshow("x", mat2gray(sd.at(0)));
imshow("y", mat2gray(sd.at(1)));
waitKey();
2 | No.2 Revision |
it should not be:
Mat but :
vector<Mat> vectMat;
then, you should not call SobelDirections
twice (it's quite expensive !)
std::vector<cv::Mat> sd = SobelDirections(image);
imshow("x", mat2gray(sd.at(0)));
imshow("y", mat2gray(sd.at(1)));
waitKey();
3 | No.3 Revision |
in your SobelDirections()
it should not be:
Mat vectMat;
but :
vector<Mat> vectMat;
then, you should not call SobelDirections
twice (it's quite expensive !)
std::vector<cv::Mat> sd = SobelDirections(image);
imshow("x", mat2gray(sd.at(0)));
imshow("y", mat2gray(sd.at(1)));
waitKey();