関数
ネームスペース mist::nearest

最近傍型補間 [詳細]

関数

template<class T1 , class Allocator1 , class T2 , class Allocator2 >
void transform (const array2< T1, Allocator1 > &in, array2< T1, Allocator1 > &out, const matrix< T2, Allocator2 > &mat)
 transform array2
template<class T1 , class Allocator1 , class T2 , class Allocator2 >
bool interpolate (const array< T1, Allocator1 > &in, array< T2, Allocator2 > &out, typename array< T1, Allocator1 >::size_type width, typename array1< T1, Allocator1 >::size_type thread_num=0)
 1次元配列に対する最近傍型補間
template<class T1 , class Allocator1 , class T2 , class Allocator2 >
bool interpolate (const array1< T1, Allocator1 > &in, array1< T2, Allocator2 > &out, typename array1< T1, Allocator1 >::size_type width, typename array1< T1, Allocator1 >::size_type thread_num=0)
 1次元配列に対する最近傍型補間
template<class T1 , class Allocator1 , class T2 , class Allocator2 >
bool interpolate (const array2< T1, Allocator1 > &in, array2< T2, Allocator2 > &out, typename array2< T1, Allocator1 >::size_type width, typename array2< T1, Allocator1 >::size_type height, typename array2< T1, Allocator1 >::size_type thread_num=0)
 2次元配列に対する最近傍型補間
template<class T1 , class Allocator1 , class T2 , class Allocator2 >
bool interpolate (const array3< T1, Allocator1 > &in, array3< T2, Allocator2 > &out, typename array3< T1, Allocator1 >::size_type width, typename array3< T1, Allocator1 >::size_type height, typename array3< T1, Allocator1 >::size_type depth, typename array3< T1, Allocator1 >::size_type thread_num=0)
 3次元配列に対する最近傍型補間

説明

最近傍型補間

関数

template<class T1 , class Allocator1 , class T2 , class Allocator2 >
bool mist::nearest::interpolate ( const array< T1, Allocator1 > &  in,
array< T2, Allocator2 > &  out,
typename array< T1, Allocator1 >::size_type  width,
typename array1< T1, Allocator1 >::size_type  thread_num = 0 
)

1次元配列に対する最近傍型補間

拡大縮小に伴う画素の内挿を,最近傍に決定する

注意
拡大縮小に伴い,画像の解像度も自動的に変換される
入力と出力は,別のMISTコンテナオブジェクトでなくてはならない
スレッド数に0を指定した場合は,使用可能なCPU数を自動的に取得する
引数
[in]in… 入力データ
[out]out… 出力データ
[in]width… 出力データのサイズ
[in]thread_num… 使用するスレッド数
戻り値
true… 補間に成功
false… 入力と出力が同じオブジェクトを指定した場合,もしくは出力サイズが0の場合

参照先 mist::do_threads(), mist::get_cpu_num(), mist::is_same_object(), mist::array< T, Allocator >::resize(), mist::array< T, Allocator >::size(), と mist::array< T, Allocator >::width().

template<class T1 , class Allocator1 , class T2 , class Allocator2 >
bool mist::nearest::interpolate ( const array1< T1, Allocator1 > &  in,
array1< T2, Allocator2 > &  out,
typename array1< T1, Allocator1 >::size_type  width,
typename array1< T1, Allocator1 >::size_type  thread_num = 0 
)

1次元配列に対する最近傍型補間

拡大縮小に伴う画素の内挿を,最近傍に決定する

注意
拡大縮小に伴い,画像の解像度も自動的に変換される
入力と出力は,別のMISTコンテナオブジェクトでなくてはならない
スレッド数に0を指定した場合は,使用可能なCPU数を自動的に取得する
引数
[in]in… 入力データ
[out]out… 出力データ
[in]width… 出力データのサイズ
[in]thread_num… 使用するスレッド数
戻り値
true… 補間に成功
false… 入力と出力が同じオブジェクトを指定した場合,もしくは出力サイズが0の場合

参照先 mist::do_threads(), mist::get_cpu_num(), mist::is_same_object(), mist::array< T, Allocator >::resize(), mist::array1< T, Allocator >::reso1(), mist::array< T, Allocator >::size(), と mist::array< T, Allocator >::width().

template<class T1 , class Allocator1 , class T2 , class Allocator2 >
bool mist::nearest::interpolate ( const array2< T1, Allocator1 > &  in,
array2< T2, Allocator2 > &  out,
typename array2< T1, Allocator1 >::size_type  width,
typename array2< T1, Allocator1 >::size_type  height,
typename array2< T1, Allocator1 >::size_type  thread_num = 0 
)

2次元配列に対する最近傍型補間

拡大縮小に伴う画素の内挿を,最近傍に決定する

注意
拡大縮小に伴い,画像の解像度も自動的に変換される
入力と出力は,別のMISTコンテナオブジェクトでなくてはならない
スレッド数に0を指定した場合は,使用可能なCPU数を自動的に取得する
引数
[in]in… 入力データ
[out]out… 出力データ
[in]width… 出力データのX軸方向のサイズ
[in]height… 出力データのY軸方向のサイズ
[in]thread_num… 使用するスレッド数
戻り値
true… 補間に成功
false… 入力と出力が同じオブジェクトを指定した場合,もしくは出力サイズが0の場合

参照先 mist::do_threads(), mist::get_cpu_num(), mist::array2< T, Allocator >::height(), mist::is_same_object(), mist::array2< T, Allocator >::resize(), mist::array1< T, Allocator >::reso1(), mist::array2< T, Allocator >::reso2(), mist::array< T, Allocator >::size(), と mist::array2< T, Allocator >::width().

template<class T1 , class Allocator1 , class T2 , class Allocator2 >
bool mist::nearest::interpolate ( const array3< T1, Allocator1 > &  in,
array3< T2, Allocator2 > &  out,
typename array3< T1, Allocator1 >::size_type  width,
typename array3< T1, Allocator1 >::size_type  height,
typename array3< T1, Allocator1 >::size_type  depth,
typename array3< T1, Allocator1 >::size_type  thread_num = 0 
)

3次元配列に対する最近傍型補間

拡大縮小に伴う画素の内挿を,最近傍に決定する

注意
拡大縮小に伴い,画像の解像度も自動的に変換される
入力と出力は,別のMISTコンテナオブジェクトでなくてはならない
スレッド数に0を指定した場合は,使用可能なCPU数を自動的に取得する
引数
[in]in… 入力データ
[out]out… 出力データ
[in]width… 出力データのX軸方向のサイズ
[in]height… 出力データのY軸方向のサイズ
[in]depth… 出力データのZ軸方向のサイズ
[in]thread_num… 使用するスレッド数
戻り値
true… 補間に成功
false… 入力と出力が同じオブジェクトを指定した場合,もしくは出力サイズが0の場合

参照先 mist::array3< T, Allocator >::depth(), mist::do_threads(), mist::get_cpu_num(), mist::array3< T, Allocator >::height(), mist::is_same_object(), mist::array3< T, Allocator >::resize(), mist::array1< T, Allocator >::reso1(), mist::array2< T, Allocator >::reso2(), mist::array3< T, Allocator >::reso3(), mist::array< T, Allocator >::size(), と mist::array3< T, Allocator >::width().

template<class T1 , class Allocator1 , class T2 , class Allocator2 >
void mist::nearest::transform ( const array2< T1, Allocator1 > &  in,
array2< T1, Allocator1 > &  out,
const matrix< T2, Allocator2 > &  mat 
)

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