mirror of
https://github.com/nihui/opencv-mobile.git
synced 2025-10-05 16:47:05 +08:00

* update 3.4.20 patch * update 4.8.0 patch * update toolchain and ci * split ios simulator * fix wasm simd build * enable cxx11 for opencv2 * workaround for macos build * workaround for ios build * do not convert RGB/BGR inplace on imencode/imwrite * Update stb_image.h * enable stbi neon * Update highgui.cpp * mac catalyst * add test project * opencv2 link openmp * opencv 2.4.13.7 on newer msvc * enable c++11 test * test all packages
15 lines
266 B
C++
15 lines
266 B
C++
#include <opencv2/core/core.hpp>
|
|
#include <opencv2/highgui/highgui.hpp>
|
|
#include <opencv2/imgproc/imgproc.hpp>
|
|
|
|
int main()
|
|
{
|
|
cv::Mat bgr = cv::imread("in.jpg", 1);
|
|
|
|
cv::resize(bgr, bgr, cv::Size(200, 200));
|
|
|
|
cv::imwrite("out.jpg", bgr);
|
|
|
|
return 0;
|
|
}
|