Created
March 5, 2012 21:00
-
-
Save dantswain/1981051 to your computer and use it in GitHub Desktop.
Debugging suggestion for http://stackoverflow.com/questions/9573423/converting-wxstring-to-stdstring-for-opencv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void DImage::deskew(string filename, unsigned int angle) | |
{ | |
if (filename == "") | |
return; | |
std::cout << "Being called with filename " << filename << std::endl; | |
Mat img = imread(filename, CV_LOAD_IMAGE_GRAYSCALE); | |
std::cout << "Image read" << std::endl; | |
imwrite("icons/DESKEW.png", img); | |
waitKey(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment