OpenCV 2.4.10.1とOpenCV 2.4.11の差分をディレクトリ別で簡易的にまとめました.
- 自動DLされるTBBが4.1から4.3にUpdate
- annotation用アプリ(ソース)追加
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <iostream> | |
int main(int argc, const char* argv[]) | |
{ | |
// 画像を読み込む | |
cv::Mat src1 = cv::imread("lena.jpg", cv::IMREAD_COLOR); | |
// MatのデータをYAML形式のファイルに書き出す |
#!/usr/bin/env python | |
""" | |
The script builds OpenCV.framework for iOS. | |
The built framework is universal, it can be used to build app and run it on either iOS simulator or real device. | |
Usage: | |
./build_framework.py <outputdir> | |
By cmake conventions (and especially if you work with OpenCV repository), | |
the output dir should not be a subdirectory of OpenCV source tree. |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/ocl/ocl.hpp> | |
// cl_mem構造体を参照するためにインクルード | |
#if defined __APPLE__ | |
#include <OpenCL/cl.h> | |
#else | |
#include <CL/cl.h> | |
#endif |
#include <opencv2/core/core.hpp> | |
#include <opencv2/imgcodecs.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
#include <iostream> | |
#define ENABLE_MEASURE_MEMORY | |
#ifndef ENABLE_MEASURE_MEMORY | |
#define MEASURE_MEMORY(x) {x;} | |
#else |
#include <opencv2/core/core.hpp> | |
#include <opencv2/imgproc.hpp> | |
#include <opencv2/imgcodecs.hpp> | |
#include <opencv2/highgui.hpp> | |
#include <iostream> | |
#include <vector> | |
int main( int argc, const char** argv ) | |
{ | |
// source image |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/ocl/ocl.hpp> | |
// cl_mem構造体を参照するためにインクルード | |
#if defined __APPLE__ | |
#include <OpenCL/cl.h> | |
#else | |
#include <CL/cl.h> | |
#endif |
OpenCV 2.4.10.1とOpenCV 2.4.11の差分をディレクトリ別で簡易的にまとめました.
#!/bin/bash | |
SOURCE_DIR="echo $(cd $(dirname $0);pwd)" | |
BUILD_DIR=${SOURCE_DIR}/build | |
GENERATOR_NAME="Unix Makefiles" | |
mkdir build | |
cd build | |
cmake \ |
:: setting of the environment variables | |
set SOURCE_DIR=%~dp0 | |
set BUILD_DIR=%SOURCE_DIR%\build | |
set INSTALL_DIR=%BUILD_DIR%\install | |
set VC_VERSION_NUM=11 | |
set VCVARSALL_BAT="C:\Program Files (x86)\Microsoft Visual Studio %VC_VERSION_NUM%.0\VC\vcvarsall.bat" | |
set ARCH=amd64 | |
set GENERATOR_NAME=Visual Studio %VC_VERSION_NUM% Win64 | |
call %VCVARSALL_BAT% %ARCH% |
#!/bin/bash | |
SOURCE_DIR="echo $(cd $(dirname $0);pwd)" | |
BUILD_DIR=${SOURCE_DIR}/build | |
GENERATOR_NAME="Unix Makefiles" | |
mkdir build | |
cd build | |
cmake \ |