関数 |
template<class T , class Allocator > |
bool | mist::read_tiff (array2< T, Allocator > &image, const std::string &filename) |
| TIFF画像をMISTコンテナに読み込む
|
template<class T , class Allocator > |
bool | mist::read_tiff (array2< T, Allocator > &image, const std::wstring &filename) |
| TIFF画像をMISTコンテナに読み込む
|
template<class T , class Allocator > |
bool | mist::write_tiff (const array2< T, Allocator > &image, const std::string &filename, bool use_lzw_compression=_LZW_COMPRESSION_SUPPORT_) |
| MISTコンテナの画像をTIFF形式でファイルに出力する
|
template<class T , class Allocator > |
bool | mist::write_tiff (const array2< T, Allocator > &image, const std::wstring &filename, bool use_lzw_compression=_LZW_COMPRESSION_SUPPORT_) |
| MISTコンテナの画像をTIFF形式でファイルに出力する
|
説明
TIFFファイルを読み込んで,MISTコンテナへ格納する. また,MISTコンテナからTIFFファイルへの書き出しをサポート. 別途 http://libtiff.org が提供するフリーのTIFFライブラリが必要です.
関数
template<class T , class Allocator >
bool mist::read_tiff |
( |
array2< T, Allocator > & |
image, |
|
|
const std::string & |
filename |
|
) |
| |
TIFF画像をMISTコンテナに読み込む
LZW圧縮のかかったTIFFやカラーテーブルを使用したTIFFファイル等のさまざまなフォーマットを読み込むことが可能. また,出力するMISTコンテナがカラー画像かグレースケール画像かによって,ピクセルデータを適切に変換する
- 引数
-
[out] | image | … 画像を読み込む先のMISTコンテナ |
[in] | filename | … 入力ファイル名 |
- 戻り値
-
true | … 画像の読み込みに成功 |
false | … 画像の読み込みに失敗 |
参照元 mist::read_image(), と mist::read_tiff().
template<class T , class Allocator >
bool mist::read_tiff |
( |
array2< T, Allocator > & |
image, |
|
|
const std::wstring & |
filename |
|
) |
| |
TIFF画像をMISTコンテナに読み込む
LZW圧縮のかかったTIFFやカラーテーブルを使用したTIFFファイル等のさまざまなフォーマットを読み込むことが可能. また,出力するMISTコンテナがカラー画像かグレースケール画像かによって,ピクセルデータを適切に変換する
- 引数
-
[out] | image | … 画像を読み込む先のMISTコンテナ |
[in] | filename | … 入力ファイル名 |
- 戻り値
-
true | … 画像の読み込みに成功 |
false | … 画像の読み込みに失敗 |
参照先 mist::read_tiff(), と mist::wstr2str().
template<class T , class Allocator >
bool mist::write_tiff |
( |
const array2< T, Allocator > & |
image, |
|
|
const std::string & |
filename, |
|
|
bool |
use_lzw_compression = _LZW_COMPRESSION_SUPPORT_ |
|
) |
| |
MISTコンテナの画像をTIFF形式でファイルに出力する
- 注意
- LZW圧縮のかかったTIFF画像を出力する場合は,libtiff ライブラリ側でLZW圧縮が有効になっている必要がある
-
データの型がunsigned short,rgb< unsigned short>,rgba< unsigned short>の場合は、16ビットチャンネルを使用して画像が保存される
- 引数
-
[in] | image | … 出力画像を保持するMISTコンテナ |
[in] | filename | … 出力ファイル名 |
[in] | use_lzw_compression | … LZW圧縮されたTIFF画像を出力するかどうか |
- 戻り値
-
true | … 画像の書き込みに成功 |
false | … 画像の書き込みに失敗 |
参照元 mist::write_image(), と mist::write_tiff().
template<class T , class Allocator >
bool mist::write_tiff |
( |
const array2< T, Allocator > & |
image, |
|
|
const std::wstring & |
filename, |
|
|
bool |
use_lzw_compression = _LZW_COMPRESSION_SUPPORT_ |
|
) |
| |
MISTコンテナの画像をTIFF形式でファイルに出力する
- 注意
- LZW圧縮のかかったTIFF画像を出力する場合は,libtiff ライブラリ側でLZW圧縮が有効になっている必要がある
-
データの型がunsigned short,rgb< unsigned short>,rgba< unsigned short>の場合は、16ビットチャンネルを使用して画像が保存される
- 引数
-
[in] | image | … 出力画像を保持するMISTコンテナ |
[in] | filename | … 出力ファイル名 |
[in] | use_lzw_compression | … LZW圧縮されたTIFF画像を出力するかどうか |
- 戻り値
-
true | … 画像の書き込みに成功 |
false | … 画像の書き込みに失敗 |
参照先 mist::write_tiff(), と mist::wstr2str().