OpenCV/Patch to support WebP format on OpenCV 2.3.1
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*OpenCV/Patch to support WebP format on OpenCV 2.3.1 [#hb...
#multilang(ja){{
**概要 [#j276217c]
OpenCV 2.3.1でWebP形式のフォーマットを扱えるようにするパ...
※OpenCV 2.3.1を対象としたパッチです.
**ダウンロード [#q861d79e]
|Version|Filename|Size|Date|Type|Download|
|BGCOLOR(white):1.0|BGCOLOR(white):opencv2.3.1_webp_enabl...
**変更履歴 [#x7461d35]
|Version|Date|変更内容|
|BGCOLOR(white):1.0|BGCOLOR(white):20111204|BGCOLOR(white...
**使い方 [#n51b2068]
***OpenCV WebPパッチの適用 [#o43a62c2]
+上記リンクからopencv2.3.1_webp_enable_patch_20111204.zip...
+展開したmodulesディレクトリをOpenCVのmodulesディレクトリ...
&br;Linux,Macに適用する場合には,パッチ(下記ファイル)...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\i...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
***WebPライブラリのビルド [#t5f9380e]
+[[こちら:http://git.chromium.org/gitweb/?p=webm/libwebp....
※検証にはアルファチャンネル付画像のエンコード,デコードが...
+libwebp-721f3f4.tar.gzを展開します.
+Visual Studio コマンド プロンプトを起動する.
+コマンド プロンプトでlibwebp-721f3f4のディレクトリに移動...
+下記のコマンドを実行する(release用ライブラリが生成され...
nmake /f Makefile.vc CFG=release-static RTLIBCFG=static ...
+同様に下記のコマンドを実行する(debug用ライブラリが生成...
nmake /f Makefile.vc CFG=debug-static RTLIBCFG=static OB...
+libwebp-d71fbdc\output\release-static\x86\libにある''lib...
3rdparty\lib
+libwebp-d71fbdc\output\debug-static\x86\libにある''libwe...
3rdparty\lib
+libwebp-d71fbdc.tar\libwebp-d71fbdc\srcにあるwebpディレ...
3rdparty\include
***OpenCVのビルド [#f02dfa0a]
+OpenCVをCMakeを用いてビルドします.
**おまけ [#sf29ec4d]
下記のような設定をすることでデコード時のquality(0~100)を...
※以下の例では最大品質の100を指定.
***C API [#oad05acc]
int param[2];
param[0] = CV_IMWRITE_WEBP_QUALITY;
param[1] = 100;
cvSaveImage("img.webp", img, ¶m[0]);
***C++ API [#o012d46b]
vector<int> param = vector<int>(2);
param[0]=CV_IMWRITE_WEBP_QUALITY;
param[1]=100;
imwrite("img.webp", img, param);
**制限事項 [#j0d18270]
-Windows 32bitのみで動作検証.
-保存対象画像となるdepthは8Uのみです
**注意点
-CV_IMWRITE_WEBP_QUALITYによる指定が無い場合,デフォルト...
**参考情報
WebPConfigのpreset別パラメータ(個人用メモ).&br;
※[[こちら:http://git.chromium.org/gitweb/?p=webm/libwebp....
||WebPConfigInit|WEBP_PRESET_DEFAULT|WEBP_PRESET_PHOTO|WE...
|quality|BGCOLOR(white):75|BGCOLOR(white):X|BGCOLOR(white...
|target_size|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLOR(wh...
|target_PSNR|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLOR(wh...
|method|BGCOLOR(white):4|BGCOLOR(white):4|BGCOLOR(white):...
|segments|BGCOLOR(white):4|BGCOLOR(white):4|BGCOLOR(white...
|sns_strength|BGCOLOR(white):50|BGCOLOR(white):50|BGCOLOR...
|filter_strength|BGCOLOR(white):20|BGCOLOR(white):20|BGCO...
|filter_sharpness|BGCOLOR(white):0|BGCOLOR(white):0|BGCOL...
|filter_type|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLOR(wh...
|autofilter|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLOR(whi...
|pass|BGCOLOR(white):1|BGCOLOR(white):1|BGCOLOR(white):1|...
|show_compressed|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLO...
|preprocessing|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLOR(...
|partitions|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLOR(whi...
|partition_limit|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLO...
|alpha_compression|BGCOLOR(white):1|BGCOLOR(white):1|BGCO...
|alpha_quality|BGCOLOR(white):100|BGCOLOR(white):100|BGCO...
※Xは初期化の際に指定した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.3.1_webp_enabl...
**ChangeLog
|Version|Date|Changes|
|BGCOLOR(white):1.0|BGCOLOR(white):20111204|BGCOLOR(white...
**Usage
***Applying WebP patch
+Please download opencv2.3.1_webp_enable_patch_20111204.z...
+Please overwrite the patch's modules directory to OpenCV...
&br;If you want to apply this patch to OpenCV-2.3.1(Linux...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\i...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
***Build WebP library
+Please download ''WebP source code'' from [[Official Git...
+Please extract libwebp-721f3f4.tar.gz.
+Please start Visual Studio command prompt.
+Please move to ''libwebp-721f3f4'' directory.
+Please run the following command to make WebP library(re...
nmake /f Makefile.vc CFG=release-static RTLIBCFG=static ...
+Please run the following command to make WebP library(de...
nmake /f Makefile.vc CFG=debug-static RTLIBCFG=static OB...
+Please copy ''libwebp_a.lib'' to the following directory...
3rdparty\lib
+Please copy ''libwebp_a_debug.lib'' to the following dir...
3rdparty\lib.
+Please copy ''webp directory'' to the following director...
3rdparty\include
***Build OpenCV
+Please build OpenCV using CMake
**Tips
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);
**Limitation
-I have only tested this environment.
--Windows 32bit
-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.3.1 [#hb...
#multilang(ja){{
**概要 [#j276217c]
OpenCV 2.3.1でWebP形式のフォーマットを扱えるようにするパ...
※OpenCV 2.3.1を対象としたパッチです.
**ダウンロード [#q861d79e]
|Version|Filename|Size|Date|Type|Download|
|BGCOLOR(white):1.0|BGCOLOR(white):opencv2.3.1_webp_enabl...
**変更履歴 [#x7461d35]
|Version|Date|変更内容|
|BGCOLOR(white):1.0|BGCOLOR(white):20111204|BGCOLOR(white...
**使い方 [#n51b2068]
***OpenCV WebPパッチの適用 [#o43a62c2]
+上記リンクからopencv2.3.1_webp_enable_patch_20111204.zip...
+展開したmodulesディレクトリをOpenCVのmodulesディレクトリ...
&br;Linux,Macに適用する場合には,パッチ(下記ファイル)...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\i...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
***WebPライブラリのビルド [#t5f9380e]
+[[こちら:http://git.chromium.org/gitweb/?p=webm/libwebp....
※検証にはアルファチャンネル付画像のエンコード,デコードが...
+libwebp-721f3f4.tar.gzを展開します.
+Visual Studio コマンド プロンプトを起動する.
+コマンド プロンプトでlibwebp-721f3f4のディレクトリに移動...
+下記のコマンドを実行する(release用ライブラリが生成され...
nmake /f Makefile.vc CFG=release-static RTLIBCFG=static ...
+同様に下記のコマンドを実行する(debug用ライブラリが生成...
nmake /f Makefile.vc CFG=debug-static RTLIBCFG=static OB...
+libwebp-d71fbdc\output\release-static\x86\libにある''lib...
3rdparty\lib
+libwebp-d71fbdc\output\debug-static\x86\libにある''libwe...
3rdparty\lib
+libwebp-d71fbdc.tar\libwebp-d71fbdc\srcにあるwebpディレ...
3rdparty\include
***OpenCVのビルド [#f02dfa0a]
+OpenCVをCMakeを用いてビルドします.
**おまけ [#sf29ec4d]
下記のような設定をすることでデコード時のquality(0~100)を...
※以下の例では最大品質の100を指定.
***C API [#oad05acc]
int param[2];
param[0] = CV_IMWRITE_WEBP_QUALITY;
param[1] = 100;
cvSaveImage("img.webp", img, ¶m[0]);
***C++ API [#o012d46b]
vector<int> param = vector<int>(2);
param[0]=CV_IMWRITE_WEBP_QUALITY;
param[1]=100;
imwrite("img.webp", img, param);
**制限事項 [#j0d18270]
-Windows 32bitのみで動作検証.
-保存対象画像となるdepthは8Uのみです
**注意点
-CV_IMWRITE_WEBP_QUALITYによる指定が無い場合,デフォルト...
**参考情報
WebPConfigのpreset別パラメータ(個人用メモ).&br;
※[[こちら:http://git.chromium.org/gitweb/?p=webm/libwebp....
||WebPConfigInit|WEBP_PRESET_DEFAULT|WEBP_PRESET_PHOTO|WE...
|quality|BGCOLOR(white):75|BGCOLOR(white):X|BGCOLOR(white...
|target_size|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLOR(wh...
|target_PSNR|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLOR(wh...
|method|BGCOLOR(white):4|BGCOLOR(white):4|BGCOLOR(white):...
|segments|BGCOLOR(white):4|BGCOLOR(white):4|BGCOLOR(white...
|sns_strength|BGCOLOR(white):50|BGCOLOR(white):50|BGCOLOR...
|filter_strength|BGCOLOR(white):20|BGCOLOR(white):20|BGCO...
|filter_sharpness|BGCOLOR(white):0|BGCOLOR(white):0|BGCOL...
|filter_type|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLOR(wh...
|autofilter|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLOR(whi...
|pass|BGCOLOR(white):1|BGCOLOR(white):1|BGCOLOR(white):1|...
|show_compressed|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLO...
|preprocessing|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLOR(...
|partitions|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLOR(whi...
|partition_limit|BGCOLOR(white):0|BGCOLOR(white):0|BGCOLO...
|alpha_compression|BGCOLOR(white):1|BGCOLOR(white):1|BGCO...
|alpha_quality|BGCOLOR(white):100|BGCOLOR(white):100|BGCO...
※Xは初期化の際に指定した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.3.1_webp_enabl...
**ChangeLog
|Version|Date|Changes|
|BGCOLOR(white):1.0|BGCOLOR(white):20111204|BGCOLOR(white...
**Usage
***Applying WebP patch
+Please download opencv2.3.1_webp_enable_patch_20111204.z...
+Please overwrite the patch's modules directory to OpenCV...
&br;If you want to apply this patch to OpenCV-2.3.1(Linux...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\i...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
-opencv2.3.1_webp_enable_patch_20111204\modules\highgui\s...
***Build WebP library
+Please download ''WebP source code'' from [[Official Git...
+Please extract libwebp-721f3f4.tar.gz.
+Please start Visual Studio command prompt.
+Please move to ''libwebp-721f3f4'' directory.
+Please run the following command to make WebP library(re...
nmake /f Makefile.vc CFG=release-static RTLIBCFG=static ...
+Please run the following command to make WebP library(de...
nmake /f Makefile.vc CFG=debug-static RTLIBCFG=static OB...
+Please copy ''libwebp_a.lib'' to the following directory...
3rdparty\lib
+Please copy ''libwebp_a_debug.lib'' to the following dir...
3rdparty\lib.
+Please copy ''webp directory'' to the following director...
3rdparty\include
***Build OpenCV
+Please build OpenCV using CMake
**Tips
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);
**Limitation
-I have only tested this environment.
--Windows 32bit
-Save image depth supports 8U only.
**Notes
-If you does not specify the quality by CV_IMWRITE_WEBP_Q...
}}
ページ名: