OpenCV/Method to enable OpenEXR on OpenCV
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*OpenCV/Method to enable OpenEXR on OpenCV [#b2e7b3f9]
#multilang(ja){{
**概要
OpenCV(Windows)でOpenEXRの画像読み書きを有効にする方法...
下記のバージョンで確認を行った.
-Windows Vista 32bit
-OpenCV SVN rev6330(未確認ですがOpenCV 2.3.0では動作しな...
-Visual Studio 2010 pro
**必要なファイル
***OpenEXR
+[[OpenEXR公式サイト:http://www.openexr.com/downloads.htm...
-- ilmbase-1.0.2.tar.gz
-- openexr-1.7.0.tar.gz
***zlib
+[[zlib公式サイト:http://www.zlib.net/]]から下記のファイ...
--zlib125.zip
***サンプル画像
+[[OpenEXR公式サイト:http://www.openexr.com/downloads.htm...
-- openexr-images-1.7.0.tar.gz
***ファイル配置
前述のファイルを展開して,下記のように配置する.&br;Deplo...
&br;&br;&br;&ref(http://atinfinity.info/img/opencv/openex...
**OpenEXRのビルド
***Ilmbaseのビルド
+ilmbase-1.0.2.tar.gzを展開し,Visual Studioで下記のファ...
ilmbase-1.0.2.tar\ilmbase-1.0.2\vc\vc8\IlmBase.sln
+下記の設定でソリューションをビルド.ビルド完了後,Deploy...
|BGCOLOR(white):ソリューション構成|BGCOLOR(white):Release|
|BGCOLOR(white):ソリューションプラットフォーム|BGCOLOR(wh...
***zlibのビルド
+zlib125.zipを展開する.
+Visual Studio 2010コマンドプロンプトでzlib-1.2.5\contrib...
bld_ml32.bat
+Visual Studioで下記のファイルを開く.
zlib-1.2.5\contrib\vstudio\vc10\zlibvc.sln
+zlibvcプロジェクトを下記の構成でビルドする.
|BGCOLOR(white):ソリューション構成|BGCOLOR(white):Release|
|BGCOLOR(white):ソリューションプラットフォーム|BGCOLOR(wh...
+zlib-1.2.5\contrib\vstudio\vc10\x86\ZlibDllReleaseにDLL...
+下記DLLをDeploy\bin\Win32\Releaseにコピー.
zlibwapi.dll
+下記ライブラリをDeploy\lib\Win32\Releaseにコピー.
zlibwapi.lib
zlibwapi.map
+zlib-1.2.5にある下記ヘッダファイルをDeploy\includeにコピ...
zlib.h
zconf.h
***IlmImfのビルド
+openexr-1.7.0.tar.gzを展開し,Visual Studioで下記のファ...
openexr-1.7.0\vc\vc8\OpenEXR\OpenEXR.sln
+IlmImfプロジェクトを下記の構成でビルドする.
|BGCOLOR(white):ソリューション構成|BGCOLOR(white):Release|
|BGCOLOR(white):ソリューションプラットフォーム|BGCOLOR(wh...
**OpenCVのビルド
+CMakeでWITH_OPENEXRをONにする
+Deployディレクトリ中のOpenEXRのインクルードパスとライブ...
+OpenCV.slnのopencv_highguiプロジェクトがリンクするライブ...
IlmThread.lib
+OpenCV.slnのopencv_highguiプロジェクトのプリプロセッサ定...
OPENEXR_DLL
+OpenCVを下記の構成でビルドする.
|BGCOLOR(white):ソリューション構成|BGCOLOR(white):Release|
|BGCOLOR(white):ソリューションプラットフォーム|BGCOLOR(wh...
**サンプルプログラム
ダウンロードしておいた下記ファイル(サンプル画像)を展開...
- openexr-images-1.7.0.tar.gz
下記にファイル読み込みのサンプルプログラムを記載する.
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
int main(int argc, char *argv[])
{
cv::Mat src_img = cv::imread("PrismsLenses.exr", 1);
cv::namedWindow("src", CV_WINDOW_AUTOSIZE|CV_WINDOW_FR...
cv::imshow("src", src_img);
cv::waitKey(0);
return 0;
}
**Contact
間違い・御指摘等ありましたら,&br;&br;
&ref(http://atinfinity.info/img/mail.png);
&br;&br;までメールにてご連絡ください.
}}
#multilang(en){{
**Abstract
This page describes the way to enable OpenEXR on OpenCV.&...
I checked in the following environment.
-Windows Vista 32bit
-OpenCV SVN rev6330(Maybe, I think that this function doe...
-Visual Studio 2010 pro
**Required files
***OpenEXR
+Please download the following files from [[OpenEXR Offic...
-- ilmbase-1.0.2.tar.gz
-- openexr-1.7.0.tar.gz
***zlib
+Please download the following file from [[zlib Official ...
--zlib125.zip
***Sample images
+Please download the following files from [[OpenEXR Offic...
-- openexr-images-1.7.0.tar.gz
***File placement
Please extract the above files and placed as follows.&br;
The OpenEXR's files(DLLs, libraries, header files) are ge...
&br;&br;&br;&ref(http://atinfinity.info/img/opencv/openex...
**Building of OpenEXR
***Building of Ilmbase
+Please extract ilmbase-1.0.2.tar.gz and open the followi...
ilmbase-1.0.2.tar\ilmbase-1.0.2\vc\vc8\IlmBase.sln
+Please build the solution with the following settings. A...
|BGCOLOR(white):Solution Configuration|BGCOLOR(white):Rel...
|BGCOLOR(white):Solution Platform|BGCOLOR(white):Win32|
***Building of zlib
+Please extract zlib125.zip.
+Please launch Visual Studio 2010 Command Prompt and move...
+Please run the following command.
bld_ml32.bat
+Please open the following file in Visual Studio.
zlib-1.2.5\contrib\vstudio\vc10\zlibvc.sln
+Please build the zlibvc project with the following setti...
|BGCOLOR(white):Solution Configuration|BGCOLOR(white):Rel...
|BGCOLOR(white):Solution Platform|BGCOLOR(white):Win32|
After the building, DLLs and liraries are generated to zl...
+Please copy the following DLL to Deploy\bin\Win32\Release.
zlibwapi.dll
+Please copy the following libraries to Deploy\lib\Win32\...
zlibwapi.lib
zlibwapi.map
+Please copy the following header files in zlib-1.2.5 to ...
zlib.h
zconf.h
***Building of IlmImf
+Please extract openexr-1.7.0.tar.gz and open the followi...
openexr-1.7.0\vc\vc8\OpenEXR\OpenEXR.sln
+Please build the IlmImf project with the following setti...
|BGCOLOR(white):Solution Configuration|BGCOLOR(white):Rel...
|BGCOLOR(white):Solution Platform|BGCOLOR(white):Win32|
**Building of OpenCV
+Please enable ''WITH_OPENEXR'' on CMake.
+Please specify the include path and library for OpenEXR ...
+Please add the following file to opencv_highgui project ...
IlmThread.lib
+Please add the following preprocessor definition to open...
OPENEXR_DLL
+Please build the OpenCV with the following settings.
|BGCOLOR(white):Solution Configuration|BGCOLOR(white):Rel...
|BGCOLOR(white):Solution Platform|BGCOLOR(white):Win32|
**Sample program
Please extract the following zip flie.
- openexr-images-1.7.0.tar.gz
I describes a sample program to read OpenEXR image.
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
int main(int argc, char *argv[])
{
cv::Mat src_img = cv::imread("PrismsLenses.exr", 1);
cv::namedWindow("src", CV_WINDOW_AUTOSIZE|CV_WINDOW_FR...
cv::imshow("src", src_img);
cv::waitKey(0);
return 0;
}
**Contact
If you have question,please send e-mail to the following...
&ref(http://atinfinity.info/img/mail.png);
}}
終了行:
*OpenCV/Method to enable OpenEXR on OpenCV [#b2e7b3f9]
#multilang(ja){{
**概要
OpenCV(Windows)でOpenEXRの画像読み書きを有効にする方法...
下記のバージョンで確認を行った.
-Windows Vista 32bit
-OpenCV SVN rev6330(未確認ですがOpenCV 2.3.0では動作しな...
-Visual Studio 2010 pro
**必要なファイル
***OpenEXR
+[[OpenEXR公式サイト:http://www.openexr.com/downloads.htm...
-- ilmbase-1.0.2.tar.gz
-- openexr-1.7.0.tar.gz
***zlib
+[[zlib公式サイト:http://www.zlib.net/]]から下記のファイ...
--zlib125.zip
***サンプル画像
+[[OpenEXR公式サイト:http://www.openexr.com/downloads.htm...
-- openexr-images-1.7.0.tar.gz
***ファイル配置
前述のファイルを展開して,下記のように配置する.&br;Deplo...
&br;&br;&br;&ref(http://atinfinity.info/img/opencv/openex...
**OpenEXRのビルド
***Ilmbaseのビルド
+ilmbase-1.0.2.tar.gzを展開し,Visual Studioで下記のファ...
ilmbase-1.0.2.tar\ilmbase-1.0.2\vc\vc8\IlmBase.sln
+下記の設定でソリューションをビルド.ビルド完了後,Deploy...
|BGCOLOR(white):ソリューション構成|BGCOLOR(white):Release|
|BGCOLOR(white):ソリューションプラットフォーム|BGCOLOR(wh...
***zlibのビルド
+zlib125.zipを展開する.
+Visual Studio 2010コマンドプロンプトでzlib-1.2.5\contrib...
bld_ml32.bat
+Visual Studioで下記のファイルを開く.
zlib-1.2.5\contrib\vstudio\vc10\zlibvc.sln
+zlibvcプロジェクトを下記の構成でビルドする.
|BGCOLOR(white):ソリューション構成|BGCOLOR(white):Release|
|BGCOLOR(white):ソリューションプラットフォーム|BGCOLOR(wh...
+zlib-1.2.5\contrib\vstudio\vc10\x86\ZlibDllReleaseにDLL...
+下記DLLをDeploy\bin\Win32\Releaseにコピー.
zlibwapi.dll
+下記ライブラリをDeploy\lib\Win32\Releaseにコピー.
zlibwapi.lib
zlibwapi.map
+zlib-1.2.5にある下記ヘッダファイルをDeploy\includeにコピ...
zlib.h
zconf.h
***IlmImfのビルド
+openexr-1.7.0.tar.gzを展開し,Visual Studioで下記のファ...
openexr-1.7.0\vc\vc8\OpenEXR\OpenEXR.sln
+IlmImfプロジェクトを下記の構成でビルドする.
|BGCOLOR(white):ソリューション構成|BGCOLOR(white):Release|
|BGCOLOR(white):ソリューションプラットフォーム|BGCOLOR(wh...
**OpenCVのビルド
+CMakeでWITH_OPENEXRをONにする
+Deployディレクトリ中のOpenEXRのインクルードパスとライブ...
+OpenCV.slnのopencv_highguiプロジェクトがリンクするライブ...
IlmThread.lib
+OpenCV.slnのopencv_highguiプロジェクトのプリプロセッサ定...
OPENEXR_DLL
+OpenCVを下記の構成でビルドする.
|BGCOLOR(white):ソリューション構成|BGCOLOR(white):Release|
|BGCOLOR(white):ソリューションプラットフォーム|BGCOLOR(wh...
**サンプルプログラム
ダウンロードしておいた下記ファイル(サンプル画像)を展開...
- openexr-images-1.7.0.tar.gz
下記にファイル読み込みのサンプルプログラムを記載する.
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
int main(int argc, char *argv[])
{
cv::Mat src_img = cv::imread("PrismsLenses.exr", 1);
cv::namedWindow("src", CV_WINDOW_AUTOSIZE|CV_WINDOW_FR...
cv::imshow("src", src_img);
cv::waitKey(0);
return 0;
}
**Contact
間違い・御指摘等ありましたら,&br;&br;
&ref(http://atinfinity.info/img/mail.png);
&br;&br;までメールにてご連絡ください.
}}
#multilang(en){{
**Abstract
This page describes the way to enable OpenEXR on OpenCV.&...
I checked in the following environment.
-Windows Vista 32bit
-OpenCV SVN rev6330(Maybe, I think that this function doe...
-Visual Studio 2010 pro
**Required files
***OpenEXR
+Please download the following files from [[OpenEXR Offic...
-- ilmbase-1.0.2.tar.gz
-- openexr-1.7.0.tar.gz
***zlib
+Please download the following file from [[zlib Official ...
--zlib125.zip
***Sample images
+Please download the following files from [[OpenEXR Offic...
-- openexr-images-1.7.0.tar.gz
***File placement
Please extract the above files and placed as follows.&br;
The OpenEXR's files(DLLs, libraries, header files) are ge...
&br;&br;&br;&ref(http://atinfinity.info/img/opencv/openex...
**Building of OpenEXR
***Building of Ilmbase
+Please extract ilmbase-1.0.2.tar.gz and open the followi...
ilmbase-1.0.2.tar\ilmbase-1.0.2\vc\vc8\IlmBase.sln
+Please build the solution with the following settings. A...
|BGCOLOR(white):Solution Configuration|BGCOLOR(white):Rel...
|BGCOLOR(white):Solution Platform|BGCOLOR(white):Win32|
***Building of zlib
+Please extract zlib125.zip.
+Please launch Visual Studio 2010 Command Prompt and move...
+Please run the following command.
bld_ml32.bat
+Please open the following file in Visual Studio.
zlib-1.2.5\contrib\vstudio\vc10\zlibvc.sln
+Please build the zlibvc project with the following setti...
|BGCOLOR(white):Solution Configuration|BGCOLOR(white):Rel...
|BGCOLOR(white):Solution Platform|BGCOLOR(white):Win32|
After the building, DLLs and liraries are generated to zl...
+Please copy the following DLL to Deploy\bin\Win32\Release.
zlibwapi.dll
+Please copy the following libraries to Deploy\lib\Win32\...
zlibwapi.lib
zlibwapi.map
+Please copy the following header files in zlib-1.2.5 to ...
zlib.h
zconf.h
***Building of IlmImf
+Please extract openexr-1.7.0.tar.gz and open the followi...
openexr-1.7.0\vc\vc8\OpenEXR\OpenEXR.sln
+Please build the IlmImf project with the following setti...
|BGCOLOR(white):Solution Configuration|BGCOLOR(white):Rel...
|BGCOLOR(white):Solution Platform|BGCOLOR(white):Win32|
**Building of OpenCV
+Please enable ''WITH_OPENEXR'' on CMake.
+Please specify the include path and library for OpenEXR ...
+Please add the following file to opencv_highgui project ...
IlmThread.lib
+Please add the following preprocessor definition to open...
OPENEXR_DLL
+Please build the OpenCV with the following settings.
|BGCOLOR(white):Solution Configuration|BGCOLOR(white):Rel...
|BGCOLOR(white):Solution Platform|BGCOLOR(white):Win32|
**Sample program
Please extract the following zip flie.
- openexr-images-1.7.0.tar.gz
I describes a sample program to read OpenEXR image.
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
int main(int argc, char *argv[])
{
cv::Mat src_img = cv::imread("PrismsLenses.exr", 1);
cv::namedWindow("src", CV_WINDOW_AUTOSIZE|CV_WINDOW_FR...
cv::imshow("src", src_img);
cv::waitKey(0);
return 0;
}
**Contact
If you have question,please send e-mail to the following...
&ref(http://atinfinity.info/img/mail.png);
}}
ページ名: