関数
RAW 画像入出力
画像入出力

関数

template<class T , class Allocator , class ValueType , class Functor >
bool mist::read_raw (array< T, Allocator > &image, const std::string &filename, typename array< T, Allocator >::size_type w, typename array< T, Allocator >::value_type offset, bool from_little_endian, ValueType __dmy__, Functor callback)
 無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む
template<class T , class Allocator , class ValueType , class Functor >
bool mist::write_raw (const array< T, Allocator > &image, const std::string &filename, typename array< T, Allocator >::value_type offset, bool to_little_endian, ValueType __dmy__, Functor callback)
 MISTコンテナ内の画像を 無圧縮RAW 画像として出力する
template<class T , class Allocator , class ValueType , class Functor >
bool mist::write_raw_gz (const array< T, Allocator > &image, const std::string &filename, typename array< T, Allocator >::value_type offset, bool to_little_endian, ValueType __dmy__, Functor callback)
 MISTコンテナ内の画像を GZ圧縮RAW 画像として出力する
template<class T , class Allocator , class Functor >
bool mist::read_raw (array< T, Allocator > &image, const std::string &filename, typename array< T, Allocator >::size_type w, typename array< T, Allocator >::value_type offset, bool from_little_endian, Functor callback)
 無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む
template<class T , class Allocator , class Functor >
bool mist::write_raw (const array< T, Allocator > &image, const std::string &filename, typename array< T, Allocator >::value_type offset, bool to_little_endian, Functor callback)
 MISTコンテナ内の画像を 無圧縮RAW 画像として出力する
template<class T , class Allocator , class Functor >
bool mist::write_raw_gz (const array< T, Allocator > &image, const std::string &filename, typename array< T, Allocator >::value_type offset, bool to_little_endian, Functor callback)
 MISTコンテナ内の画像を GZ圧縮RAW 画像として出力する
template<class T , class Allocator >
bool mist::read_raw (array< T, Allocator > &image, const std::string &filename, typename array< T, Allocator >::size_type w, typename array< T, Allocator >::value_type offset=0, bool from_little_endian=false)
 無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む
template<class T , class Allocator >
bool mist::write_raw (const array< T, Allocator > &image, const std::string &filename, typename array< T, Allocator >::value_type offset=0, bool to_little_endian=false)
 MISTコンテナ内の画像を 無圧縮RAW 画像として出力する
template<class T , class Allocator >
bool mist::write_raw_gz (const array< T, Allocator > &image, const std::string &filename, typename array< T, Allocator >::value_type offset=typename array< T, Allocator >::value_type(0), bool to_little_endian=false)
 MISTコンテナ内の画像を GZ圧縮RAW 画像として出力する
template<class T , class Allocator , class ValueType , class Functor >
bool mist::read_raw (array1< T, Allocator > &image, const std::string &filename, typename array1< T, Allocator >::size_type w, double x, typename array1< T, Allocator >::value_type offset, bool from_little_endian, ValueType __dmy__, Functor callback)
 無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む
template<class T , class Allocator , class Functor >
bool mist::read_raw (array1< T, Allocator > &image, const std::string &filename, typename array1< T, Allocator >::size_type w, double x, typename array1< T, Allocator >::value_type offset, bool from_little_endian, Functor callback)
 無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む
template<class T , class Allocator >
bool mist::read_raw (array1< T, Allocator > &image, const std::string &filename, typename array1< T, Allocator >::size_type w, double x=1.0, typename array1< T, Allocator >::value_type offset=0, bool from_little_endian=false)
 無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む
template<class T , class Allocator , class ValueType , class Functor >
bool mist::read_raw (array2< T, Allocator > &image, const std::string &filename, typename array2< T, Allocator >::size_type w, typename array2< T, Allocator >::size_type h, double x, double y, typename array2< T, Allocator >::value_type offset, bool from_little_endian, ValueType __dmy__, Functor callback)
 無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む
template<class T , class Allocator , class Functor >
bool mist::read_raw (array2< T, Allocator > &image, const std::string &filename, typename array2< T, Allocator >::size_type w, typename array2< T, Allocator >::size_type h, double x, double y, typename array2< T, Allocator >::value_type offset, bool from_little_endian, Functor callback)
 無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む
template<class T , class Allocator >
bool mist::read_raw (array2< T, Allocator > &image, const std::string &filename, typename array2< T, Allocator >::size_type w, typename array2< T, Allocator >::size_type h, double x=1.0, double y=1.0, typename array2< T, Allocator >::value_type offset=0, bool from_little_endian=false)
 無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む
template<class T , class Allocator , class ValueType , class Functor >
bool mist::read_raw (array3< T, Allocator > &image, const std::string &filename, typename array3< T, Allocator >::size_type w, typename array3< T, Allocator >::size_type h, typename array3< T, Allocator >::size_type d, double x, double y, double z, typename array3< T, Allocator >::value_type offset, bool from_little_endian, ValueType __dmy__, Functor callback)
 無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む
template<class T , class Allocator , class Functor >
bool mist::read_raw (array3< T, Allocator > &image, const std::string &filename, typename array3< T, Allocator >::size_type w, typename array3< T, Allocator >::size_type h, typename array3< T, Allocator >::size_type d, double x, double y, double z, typename array3< T, Allocator >::value_type offset, bool from_little_endian, Functor callback)
 無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む
template<class T , class Allocator >
bool mist::read_raw (array3< T, Allocator > &image, const std::string &filename, typename array3< T, Allocator >::size_type w, typename array3< T, Allocator >::size_type h, typename array3< T, Allocator >::size_type d, double x=1.0, double y=1.0, double z=1.0, typename array3< T, Allocator >::value_type offset=typename array3< T, Allocator >::value_type(0), bool from_little_endian=false)
 無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む

説明

RAWファイル(GZIP圧縮に対応)の読み込みと書き込みサポートをMISTに追加するものです. 別途 http://www.zlib.org が提供するフリーのZLIBライブラリが必要です.

次のヘッダをインクルードする
#include <mist/io/raw.h>

関数

template<class T , class Allocator , class ValueType , class Functor >
bool mist::read_raw ( array< T, Allocator > &  image,
const std::string &  filename,
typename array< T, Allocator >::size_type  w,
typename array< T, Allocator >::value_type  offset,
bool  from_little_endian,
ValueType  __dmy__,
Functor  callback 
)

無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む

引数
[out]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]w… 入力画像の幅
[in]offset… 画像に足しこむオフセット値
[in]from_little_endian… 入力画像が記録されている形式(リトルエンディアン … true,ビッグエンディアン … false)
[in]<strong>dmy</strong>… 読み込もうとしているデータの型をあらわすダミーオブジェクト(short型のオブジェクトなど)
[in]callback… 進行状況を通知するコールバック関数
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照元 mist::read_raw().

template<class T , class Allocator , class Functor >
bool mist::read_raw ( array< T, Allocator > &  image,
const std::string &  filename,
typename array< T, Allocator >::size_type  w,
typename array< T, Allocator >::value_type  offset,
bool  from_little_endian,
Functor  callback 
)

無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む

引数
[out]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]w… 入力画像の幅
[in]offset… 画像に足しこむオフセット値
[in]from_little_endian… 入力画像が記録されている形式(リトルエンディアン … true,ビッグエンディアン … false)
[in]callback… 進行状況を通知するコールバック関数
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::read_raw().

template<class T , class Allocator >
bool mist::read_raw ( array< T, Allocator > &  image,
const std::string &  filename,
typename array< T, Allocator >::size_type  w,
typename array< T, Allocator >::value_type  offset = 0,
bool  from_little_endian = false 
)

無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む

引数
[out]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]w… 入力画像の幅
[in]offset… 画像に足しこむオフセット値
[in]from_little_endian… 入力画像が記録されている形式(リトルエンディアン … true,ビッグエンディアン … false)
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::read_raw().

template<class T , class Allocator , class ValueType , class Functor >
bool mist::read_raw ( array1< T, Allocator > &  image,
const std::string &  filename,
typename array1< T, Allocator >::size_type  w,
double  x,
typename array1< T, Allocator >::value_type  offset,
bool  from_little_endian,
ValueType  __dmy__,
Functor  callback 
)

無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む

引数
[out]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]w… 入力画像の幅
[in]x… 入力画像の画素サイズ
[in]offset… 画像に足しこむオフセット値
[in]from_little_endian… 入力画像が記録されている形式(リトルエンディアン … true,ビッグエンディアン … false)
[in]<strong>dmy</strong>… 読み込もうとしているデータの型をあらわすダミーオブジェクト(short型のオブジェクトなど)
[in]callback… 進行状況を通知するコールバック関数
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::array1< T, Allocator >::reso1().

template<class T , class Allocator , class Functor >
bool mist::read_raw ( array1< T, Allocator > &  image,
const std::string &  filename,
typename array1< T, Allocator >::size_type  w,
double  x,
typename array1< T, Allocator >::value_type  offset,
bool  from_little_endian,
Functor  callback 
)

無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む

引数
[out]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]w… 入力画像の幅
[in]x… 入力画像の画素サイズ
[in]offset… 画像に足しこむオフセット値
[in]from_little_endian… 入力画像が記録されている形式(リトルエンディアン … true,ビッグエンディアン … false)
[in]callback… 進行状況を通知するコールバック関数
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::read_raw().

template<class T , class Allocator >
bool mist::read_raw ( array1< T, Allocator > &  image,
const std::string &  filename,
typename array1< T, Allocator >::size_type  w,
double  x = 1.0,
typename array1< T, Allocator >::value_type  offset = 0,
bool  from_little_endian = false 
)

無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む

引数
[out]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]w… 入力画像の幅
[in]x… 入力画像の画素サイズ
[in]offset… 画像に足しこむオフセット値
[in]from_little_endian… 入力画像が記録されている形式(リトルエンディアン … true,ビッグエンディアン … false)
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::read_raw().

template<class T , class Allocator , class ValueType , class Functor >
bool mist::read_raw ( array2< T, Allocator > &  image,
const std::string &  filename,
typename array2< T, Allocator >::size_type  w,
typename array2< T, Allocator >::size_type  h,
double  x,
double  y,
typename array2< T, Allocator >::value_type  offset,
bool  from_little_endian,
ValueType  __dmy__,
Functor  callback 
)

無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む

引数
[out]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]w… 入力画像のX軸方向のサイズ
[in]h… 入力画像のY軸方向のサイズ
[in]x… 入力画像のX軸方向の画素サイズ
[in]y… 入力画像のY軸方向の画素サイズ
[in]offset… 画像に足しこむオフセット値
[in]from_little_endian… 入力画像が記録されている形式(リトルエンディアン … true,ビッグエンディアン … false)
[in]<strong>dmy</strong>… 読み込もうとしているデータの型をあらわすダミーオブジェクト(short型のオブジェクトなど)
[in]callback… 進行状況を通知するコールバック関数
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::array1< T, Allocator >::reso1(), と mist::array2< T, Allocator >::reso2().

template<class T , class Allocator , class Functor >
bool mist::read_raw ( array2< T, Allocator > &  image,
const std::string &  filename,
typename array2< T, Allocator >::size_type  w,
typename array2< T, Allocator >::size_type  h,
double  x,
double  y,
typename array2< T, Allocator >::value_type  offset,
bool  from_little_endian,
Functor  callback 
)

無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む

引数
[out]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]w… 入力画像のX軸方向のサイズ
[in]h… 入力画像のY軸方向のサイズ
[in]x… 入力画像のX軸方向の画素サイズ
[in]y… 入力画像のY軸方向の画素サイズ
[in]offset… 画像に足しこむオフセット値
[in]from_little_endian… 入力画像が記録されている形式(リトルエンディアン … true,ビッグエンディアン … false)
[in]callback… 進行状況を通知するコールバック関数
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::read_raw().

template<class T , class Allocator >
bool mist::read_raw ( array2< T, Allocator > &  image,
const std::string &  filename,
typename array2< T, Allocator >::size_type  w,
typename array2< T, Allocator >::size_type  h,
double  x = 1.0,
double  y = 1.0,
typename array2< T, Allocator >::value_type  offset = 0,
bool  from_little_endian = false 
)

無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む

引数
[out]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]w… 入力画像のX軸方向のサイズ
[in]h… 入力画像のY軸方向のサイズ
[in]x… 入力画像のX軸方向の画素サイズ
[in]y… 入力画像のY軸方向の画素サイズ
[in]offset… 画像に足しこむオフセット値
[in]from_little_endian… 入力画像が記録されている形式(リトルエンディアン … true,ビッグエンディアン … false)
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::read_raw().

template<class T , class Allocator , class ValueType , class Functor >
bool mist::read_raw ( array3< T, Allocator > &  image,
const std::string &  filename,
typename array3< T, Allocator >::size_type  w,
typename array3< T, Allocator >::size_type  h,
typename array3< T, Allocator >::size_type  d,
double  x,
double  y,
double  z,
typename array3< T, Allocator >::value_type  offset,
bool  from_little_endian,
ValueType  __dmy__,
Functor  callback 
)

無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む

引数
[out]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]w… 入力画像のX軸方向のサイズ
[in]h… 入力画像のY軸方向のサイズ
[in]d… 入力画像のZ軸方向のサイズ
[in]x… 入力画像のX軸方向の画素サイズ
[in]y… 入力画像のY軸方向の画素サイズ
[in]z… 入力画像のZ軸方向の画素サイズ
[in]offset… 画像に足しこむオフセット値
[in]from_little_endian… 入力画像が記録されている形式(リトルエンディアン … true,ビッグエンディアン … false)
[in]<strong>dmy</strong>… 読み込もうとしているデータの型をあらわすダミーオブジェクト(short型のオブジェクトなど)
[in]callback… 進行状況を通知するコールバック関数
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::array1< T, Allocator >::reso1(), mist::array2< T, Allocator >::reso2(), と mist::array3< T, Allocator >::reso3().

template<class T , class Allocator , class Functor >
bool mist::read_raw ( array3< T, Allocator > &  image,
const std::string &  filename,
typename array3< T, Allocator >::size_type  w,
typename array3< T, Allocator >::size_type  h,
typename array3< T, Allocator >::size_type  d,
double  x,
double  y,
double  z,
typename array3< T, Allocator >::value_type  offset,
bool  from_little_endian,
Functor  callback 
)

無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む

引数
[out]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]w… 入力画像のX軸方向のサイズ
[in]h… 入力画像のY軸方向のサイズ
[in]d… 入力画像のZ軸方向のサイズ
[in]x… 入力画像のX軸方向の画素サイズ
[in]y… 入力画像のY軸方向の画素サイズ
[in]z… 入力画像のZ軸方向の画素サイズ
[in]offset… 画像に足しこむオフセット値
[in]from_little_endian… 入力画像が記録されている形式(リトルエンディアン … true,ビッグエンディアン … false)
[in]callback… 進行状況を通知するコールバック関数
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::read_raw().

template<class T , class Allocator >
bool mist::read_raw ( array3< T, Allocator > &  image,
const std::string &  filename,
typename array3< T, Allocator >::size_type  w,
typename array3< T, Allocator >::size_type  h,
typename array3< T, Allocator >::size_type  d,
double  x = 1.0,
double  y = 1.0,
double  z = 1.0,
typename array3< T, Allocator >::value_type  offset = typename array3< T, Allocator >::value_type( 0 ),
bool  from_little_endian = false 
)

無圧縮RAW,GZ圧縮RAW 画像をMISTコンテナに読み込む

引数
[out]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]w… 入力画像のX軸方向のサイズ
[in]h… 入力画像のY軸方向のサイズ
[in]d… 入力画像のZ軸方向のサイズ
[in]x… 入力画像のX軸方向の画素サイズ
[in]y… 入力画像のY軸方向の画素サイズ
[in]z… 入力画像のZ軸方向の画素サイズ
[in]offset… 画像に足しこむオフセット値
[in]from_little_endian… 入力画像が記録されている形式(リトルエンディアン … true,ビッグエンディアン … false)
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::read_raw().

template<class T , class Allocator , class ValueType , class Functor >
bool mist::write_raw ( const array< T, Allocator > &  image,
const std::string &  filename,
typename array< T, Allocator >::value_type  offset,
bool  to_little_endian,
ValueType  __dmy__,
Functor  callback 
)

MISTコンテナ内の画像を 無圧縮RAW 画像として出力する

注意
データを変換して保存する際に,値のオーバーフローなどは無視するので注意が必要
引数
[in]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]offset… 画像から引き算するオフセット値
[in]to_little_endian… 出力画像のデータ形式(リトルエンディアン … true,ビッグエンディアン … false)
[in]<strong>dmy</strong>… 出力するデータの型をあらわすダミーオブジェクト(short型のオブジェクトなど)
[in]callback… 進行状況を通知するコールバック関数
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照元 mist::write_raw().

template<class T , class Allocator , class Functor >
bool mist::write_raw ( const array< T, Allocator > &  image,
const std::string &  filename,
typename array< T, Allocator >::value_type  offset,
bool  to_little_endian,
Functor  callback 
)

MISTコンテナ内の画像を 無圧縮RAW 画像として出力する

引数
[in]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]offset… 画像から引き算するオフセット値
[in]to_little_endian… 出力画像のデータ形式(リトルエンディアン … true,ビッグエンディアン … false)
[in]callback… 進行状況を通知するコールバック関数
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::write_raw().

template<class T , class Allocator >
bool mist::write_raw ( const array< T, Allocator > &  image,
const std::string &  filename,
typename array< T, Allocator >::value_type  offset = 0,
bool  to_little_endian = false 
)

MISTコンテナ内の画像を 無圧縮RAW 画像として出力する

引数
[in]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]offset… 画像から引き算するオフセット値
[in]to_little_endian… 出力画像のデータ形式(リトルエンディアン … true,ビッグエンディアン … false)
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::write_raw().

template<class T , class Allocator , class ValueType , class Functor >
bool mist::write_raw_gz ( const array< T, Allocator > &  image,
const std::string &  filename,
typename array< T, Allocator >::value_type  offset,
bool  to_little_endian,
ValueType  __dmy__,
Functor  callback 
)

MISTコンテナ内の画像を GZ圧縮RAW 画像として出力する

注意
データを変換して保存する際に,値のオーバーフローなどは無視するので注意が必要
引数
[in]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]offset… 画像から引き算するオフセット値
[in]to_little_endian… 出力画像のデータ形式(リトルエンディアン … true,ビッグエンディアン … false)
[in]<strong>dmy</strong>… 出力するデータの型をあらわすダミーオブジェクト(short型のオブジェクトなど)
[in]callback… 進行状況を通知するコールバック関数
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照元 mist::write_raw_gz().

template<class T , class Allocator , class Functor >
bool mist::write_raw_gz ( const array< T, Allocator > &  image,
const std::string &  filename,
typename array< T, Allocator >::value_type  offset,
bool  to_little_endian,
Functor  callback 
)

MISTコンテナ内の画像を GZ圧縮RAW 画像として出力する

引数
[in]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]offset… 画像から引き算するオフセット値
[in]to_little_endian… 出力画像のデータ形式(リトルエンディアン … true,ビッグエンディアン … false)
[in]callback… 進行状況を通知するコールバック関数
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::write_raw_gz().

template<class T , class Allocator >
bool mist::write_raw_gz ( const array< T, Allocator > &  image,
const std::string &  filename,
typename array< T, Allocator >::value_type  offset = typename array< T, Allocator >::value_type( 0 ),
bool  to_little_endian = false 
)

MISTコンテナ内の画像を GZ圧縮RAW 画像として出力する

引数
[in]image… 画像を読み込む先のMISTコンテナ
[in]filename… 入力ファイル名
[in]offset… 画像から引き算するオフセット値
[in]to_little_endian… 出力画像のデータ形式(リトルエンディアン … true,ビッグエンディアン … false)
戻り値
true… 画像の読み込みに成功
false… 画像の読み込みに失敗

参照先 mist::write_raw_gz().


Generated on Wed Nov 12 2014 19:44:28 for MIST by doxygen 1.8.1.2