OpenCV/Patch to support WebP format on OpenCV 2.4.2
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*OpenCV/Patch to support WebP format on OpenCV 2.4.2 [#za...
#multilang(ja){{
**概要
OpenCV 2.4.2でWebP形式のフォーマットを扱えるようにするパ...
※OpenCV 2.4.2を対象としたパッチです.
**ダウンロード
|Version|Filename|Size|Date|Type|Download|
|BGCOLOR(white):1.0|BGCOLOR(white):opencv2.4.2_webp_enabl...
**変更履歴
|Version|Date|変更内容|
|BGCOLOR(white):1.0|BGCOLOR(white):20120809|BGCOLOR(white...
**使い方
***WebPライブラリのビルド
+[[こちら:https://code.google.com/p/webp/downloads/detail...
+libwebp-0.2.0.tar.gzを展開する.
+Visual Studio コマンド プロンプトを起動する.
+コマンド プロンプトでlibwebp-0.2.0のディレクトリに移動す...
+下記のコマンドを実行する(release用ライブラリが生成され...
nmake /f Makefile.vc CFG=release-static RTLIBCFG=static ...
※Linux,Macの場合は以下のコマンドを実行する.
make -f makefile.unix
***OpenCV WebPパッチの適用
+上記リンクからopencv2.4.2_webp_enable_patch_20120809.zip...
+展開したディレクトリをOpenCVディレクトリに上書きします.
※Linux,Macに適用する場合には,パッチ(下記ファイル)の...
-opencv2.4.2_webp_enable_patch_20120809\CMakeLists.txt
-opencv2.4.2_webp_enable_patch_20120809\cmake\OpenCVFindL...
-opencv2.4.2_webp_enable_patch_20120809\cmake\OpenCVFindW...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\C...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\i...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\i...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
***OpenCVのビルド [#f02dfa0a]
OpenCVをCMakeを用いてビルドする.
+WITH_WEBPにチェックを入れて,「Configure」ボタンを押す.
&br;&ref(http://atinfinity.info/img/opencv/cmake_with_web...
+WEBP_INCLUDE_DIRSにWebPのソースがあるディレクトリを指定...
&br;&ref(http://atinfinity.info/img/opencv/cmake_with_web...
**おまけ(1)
下記のような設定をすることでデコード時のquality(0~100)を...
※以下の例では最大品質の100を指定.
***C API
int param[2];
param[0] = CV_IMWRITE_WEBP_QUALITY;
param[1] = 100;
cvSaveImage("img.webp", img, ¶m[0]);
***C++ API
vector<int> param = vector<int>(2);
param[0] = CV_IMWRITE_WEBP_QUALITY;
param[1] = 100;
imwrite("img.webp", img, param);
**おまけ(2)
下記のような設定をすることでlossless圧縮を指定できる.
***C API
int param[2];
param[0] = CV_IMWRITE_WEBP_LOSSLESS;
param[1] = 1;
cvSaveImage("img.webp", img, ¶m[0]);
***C++ API
vector<int> param = vector<int>(2);
param[0] = CV_IMWRITE_WEBP_LOSSLESS;
param[1] = 1;
imwrite("img.webp", img, param);
**制限事項
-Windows 32bit/Mac 64bitのみで動作検証.
-保存対象画像となるdepthは8Uのみ.
**注意点
-CV_IMWRITE_WEBP_QUALITYによる指定が無い場合,デフォルト...
}}
#multilang(en){{
**Abstract
This page describes the method to use WebP format on Open...
**Download
|Version|Filename|Size|Date|Type|Download|
|BGCOLOR(white):1.0|BGCOLOR(white):opencv2.4.2_webp_enabl...
**ChangeLog
|Version|Date|Changes|
|BGCOLOR(white):1.0|BGCOLOR(white):20120809|BGCOLOR(white...
**Usage
***Build WebP library
+Please download ''WebP source code'' from [[Official pa...
+Please extract libwebp-0.2.0.tar.gz.
+Please start Visual Studio command prompt.
+Please move to ''libwebp-0.2.0'' directory.
+Please run the following command to make WebP library(re...
nmake /f Makefile.vc CFG=release-static RTLIBCFG=static ...
If you use on Linux or Max, please run the following co...
make -f makefile.unix
***Applying WebP patch
+Please download opencv2.4.2_webp_enable_patch_20120809.z...
+Please overwrite to OpenCV's directory.
&br;If you want to apply this patch to OpenCV-2.4.2(Linux...
-opencv2.4.2_webp_enable_patch_20120809\CMakeLists.txt
-opencv2.4.2_webp_enable_patch_20120809\cmake\OpenCVFindL...
-opencv2.4.2_webp_enable_patch_20120809\cmake\OpenCVFindW...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\C...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\i...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\i...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
***Build OpenCV
Please build OpenCV using CMake.
+Please check ''WITH_WEBP'' and push ''Configure'' button.
&br;&ref(http://atinfinity.info/img/opencv/cmake_with_web...
+Please specify WebP source's directory to ''WEBP_INCLUDE...
&br;&ref(http://atinfinity.info/img/opencv/cmake_with_web...
**Tips(1)
You can specify the compression quality(min:0, max:100) b...
***C API
int param[2];
param[0] = CV_IMWRITE_WEBP_QUALITY;
param[1] = 100;
cvSaveImage("img.webp", img, ¶m[0]);
***C++ API
vector<int> param = vector<int>(2);
param[0] = CV_IMWRITE_WEBP_QUALITY;
param[1] = 100;
imwrite("img.webp", img, param);
**Tips(2)
You can specify the lossless compression by the following...
***C API
int param[2];
param[0] = CV_IMWRITE_WEBP_LOSSLESS;
param[1] = 1;
cvSaveImage("img.webp", img, ¶m[0]);
***C++ API
vector<int> param = vector<int>(2);
param[0] = CV_IMWRITE_WEBP_LOSSLESS;
param[1] = 1;
imwrite("img.webp", img, param);
**Limitation
-I have only tested this environment.
--Windows 32bit and Mac 64bit
-Save image depth supports 8U only.
**Notes
-If you does not specify the quality by CV_IMWRITE_WEBP_Q...
}}
終了行:
*OpenCV/Patch to support WebP format on OpenCV 2.4.2 [#za...
#multilang(ja){{
**概要
OpenCV 2.4.2でWebP形式のフォーマットを扱えるようにするパ...
※OpenCV 2.4.2を対象としたパッチです.
**ダウンロード
|Version|Filename|Size|Date|Type|Download|
|BGCOLOR(white):1.0|BGCOLOR(white):opencv2.4.2_webp_enabl...
**変更履歴
|Version|Date|変更内容|
|BGCOLOR(white):1.0|BGCOLOR(white):20120809|BGCOLOR(white...
**使い方
***WebPライブラリのビルド
+[[こちら:https://code.google.com/p/webp/downloads/detail...
+libwebp-0.2.0.tar.gzを展開する.
+Visual Studio コマンド プロンプトを起動する.
+コマンド プロンプトでlibwebp-0.2.0のディレクトリに移動す...
+下記のコマンドを実行する(release用ライブラリが生成され...
nmake /f Makefile.vc CFG=release-static RTLIBCFG=static ...
※Linux,Macの場合は以下のコマンドを実行する.
make -f makefile.unix
***OpenCV WebPパッチの適用
+上記リンクからopencv2.4.2_webp_enable_patch_20120809.zip...
+展開したディレクトリをOpenCVディレクトリに上書きします.
※Linux,Macに適用する場合には,パッチ(下記ファイル)の...
-opencv2.4.2_webp_enable_patch_20120809\CMakeLists.txt
-opencv2.4.2_webp_enable_patch_20120809\cmake\OpenCVFindL...
-opencv2.4.2_webp_enable_patch_20120809\cmake\OpenCVFindW...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\C...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\i...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\i...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
***OpenCVのビルド [#f02dfa0a]
OpenCVをCMakeを用いてビルドする.
+WITH_WEBPにチェックを入れて,「Configure」ボタンを押す.
&br;&ref(http://atinfinity.info/img/opencv/cmake_with_web...
+WEBP_INCLUDE_DIRSにWebPのソースがあるディレクトリを指定...
&br;&ref(http://atinfinity.info/img/opencv/cmake_with_web...
**おまけ(1)
下記のような設定をすることでデコード時のquality(0~100)を...
※以下の例では最大品質の100を指定.
***C API
int param[2];
param[0] = CV_IMWRITE_WEBP_QUALITY;
param[1] = 100;
cvSaveImage("img.webp", img, ¶m[0]);
***C++ API
vector<int> param = vector<int>(2);
param[0] = CV_IMWRITE_WEBP_QUALITY;
param[1] = 100;
imwrite("img.webp", img, param);
**おまけ(2)
下記のような設定をすることでlossless圧縮を指定できる.
***C API
int param[2];
param[0] = CV_IMWRITE_WEBP_LOSSLESS;
param[1] = 1;
cvSaveImage("img.webp", img, ¶m[0]);
***C++ API
vector<int> param = vector<int>(2);
param[0] = CV_IMWRITE_WEBP_LOSSLESS;
param[1] = 1;
imwrite("img.webp", img, param);
**制限事項
-Windows 32bit/Mac 64bitのみで動作検証.
-保存対象画像となるdepthは8Uのみ.
**注意点
-CV_IMWRITE_WEBP_QUALITYによる指定が無い場合,デフォルト...
}}
#multilang(en){{
**Abstract
This page describes the method to use WebP format on Open...
**Download
|Version|Filename|Size|Date|Type|Download|
|BGCOLOR(white):1.0|BGCOLOR(white):opencv2.4.2_webp_enabl...
**ChangeLog
|Version|Date|Changes|
|BGCOLOR(white):1.0|BGCOLOR(white):20120809|BGCOLOR(white...
**Usage
***Build WebP library
+Please download ''WebP source code'' from [[Official pa...
+Please extract libwebp-0.2.0.tar.gz.
+Please start Visual Studio command prompt.
+Please move to ''libwebp-0.2.0'' directory.
+Please run the following command to make WebP library(re...
nmake /f Makefile.vc CFG=release-static RTLIBCFG=static ...
If you use on Linux or Max, please run the following co...
make -f makefile.unix
***Applying WebP patch
+Please download opencv2.4.2_webp_enable_patch_20120809.z...
+Please overwrite to OpenCV's directory.
&br;If you want to apply this patch to OpenCV-2.4.2(Linux...
-opencv2.4.2_webp_enable_patch_20120809\CMakeLists.txt
-opencv2.4.2_webp_enable_patch_20120809\cmake\OpenCVFindL...
-opencv2.4.2_webp_enable_patch_20120809\cmake\OpenCVFindW...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\C...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\i...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\i...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
-opencv2.4.2_webp_enable_patch_20120809\modules\highgui\s...
***Build OpenCV
Please build OpenCV using CMake.
+Please check ''WITH_WEBP'' and push ''Configure'' button.
&br;&ref(http://atinfinity.info/img/opencv/cmake_with_web...
+Please specify WebP source's directory to ''WEBP_INCLUDE...
&br;&ref(http://atinfinity.info/img/opencv/cmake_with_web...
**Tips(1)
You can specify the compression quality(min:0, max:100) b...
***C API
int param[2];
param[0] = CV_IMWRITE_WEBP_QUALITY;
param[1] = 100;
cvSaveImage("img.webp", img, ¶m[0]);
***C++ API
vector<int> param = vector<int>(2);
param[0] = CV_IMWRITE_WEBP_QUALITY;
param[1] = 100;
imwrite("img.webp", img, param);
**Tips(2)
You can specify the lossless compression by the following...
***C API
int param[2];
param[0] = CV_IMWRITE_WEBP_LOSSLESS;
param[1] = 1;
cvSaveImage("img.webp", img, ¶m[0]);
***C++ API
vector<int> param = vector<int>(2);
param[0] = CV_IMWRITE_WEBP_LOSSLESS;
param[1] = 1;
imwrite("img.webp", img, param);
**Limitation
-I have only tested this environment.
--Windows 32bit and Mac 64bit
-Save image depth supports 8U only.
**Notes
-If you does not specify the quality by CV_IMWRITE_WEBP_Q...
}}
ページ名: