Skip to content

Instantly share code, notes, and snippets.

@huyng
Created March 18, 2014 20:30
Show Gist options
  • Save huyng/9628874 to your computer and use it in GitHub Desktop.
Save huyng/9628874 to your computer and use it in GitHub Desktop.
Opencv resize
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
// using namespace cv;
int main(int argc, char const *argv[])
{
cv::Mat src, dst;
src = cv::imread("input.jpg", 1);
cv::resize(src, dst, cv::Size(100,100));
cv::imwrite("output.jpg", dst);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment