Skip to content

Instantly share code, notes, and snippets.

@dantswain
Created March 5, 2012 21:00
Show Gist options
  • Save dantswain/1981051 to your computer and use it in GitHub Desktop.
Save dantswain/1981051 to your computer and use it in GitHub Desktop.
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