ネームスペース | |
namespace | mist::average |
一様重み平滑化フィルタの実装(コールバック関数を指定することが可能) |
関数 | |
template<class T1 , class Allocator1 , class T2 , class Allocator2 > | |
bool | mist::average_filter (const array< T1, Allocator1 > &in, array< T2, Allocator2 > &out, typename array< T1, Allocator1 >::size_type fw, typename array< T1, Allocator1 >::size_type thread_num=0) |
一様重み( array ) | |
template<class T1 , class Allocator1 , class T2 , class Allocator2 > | |
bool | mist::average_filter (const array1< T1, Allocator1 > &in, array1< T2, Allocator2 > &out, typename array1< T1, Allocator1 >::size_type fw, typename array1< T1, Allocator1 >::size_type thread_num=0) |
一様重み( array1 ) | |
template<class T1 , class Allocator1 , class T2 , class Allocator2 > | |
bool | mist::average_filter (const array2< T1, Allocator1 > &in, array2< T2, Allocator2 > &out, typename array2< T1, Allocator1 >::size_type fw, typename array2< T1, Allocator1 >::size_type fh, typename array2< T1, Allocator1 >::size_type thread_num=0) |
一様重み( array2 ) | |
template<class T1 , class Allocator1 , class T2 , class Allocator2 > | |
bool | mist::average_filter (const array3< T1, Allocator1 > &in, array3< T2, Allocator2 > &out, typename array3< T1, Allocator1 >::size_type fw, typename array3< T1, Allocator1 >::size_type fh, typename array3< T1, Allocator1 >::size_type fd, typename array3< T1, Allocator1 >::size_type thread_num=0) |
一様重み( array3 ) |
配列の端(カーネルがはみ出すところ)に対してもフィルタを適用します. 使用可能な要素型は,算術型か mist::rgb< 算術型 > に限ります. 内部の計算は,出力配列の要素型が算術型の場合は double 型, mist::rgb< 算術型 > の場合は mist::rgb< double > で行います.
bool mist::average_filter | ( | const array< T1, Allocator1 > & | in, |
array< T2, Allocator2 > & | out, | ||
typename array< T1, Allocator1 >::size_type | fw, | ||
typename array< T1, Allocator1 >::size_type | thread_num = 0 |
||
) |
一様重み( array )
サイズ fw の一様重み
[in] | in | … 入力配列 |
[out] | out | … 出力配列 |
[in] | fw | … X軸方向のフィルタサイズ |
[in] | thread_num | … 使用するスレッド数 |
true | … フィルタリングに成功 |
false | … 入力と出力が同じオブジェクトを指定した場合 |
bool mist::average_filter | ( | const array1< T1, Allocator1 > & | in, |
array1< T2, Allocator2 > & | out, | ||
typename array1< T1, Allocator1 >::size_type | fw, | ||
typename array1< T1, Allocator1 >::size_type | thread_num = 0 |
||
) |
一様重み( array1 )
サイズ fw の一様重み
[in] | in | … 入力配列 |
[out] | out | … 出力配列 |
[in] | fw | … X軸方向のフィルタサイズ |
[in] | thread_num | … 使用するスレッド数 |
true | … フィルタリングに成功 |
false | … 入力と出力が同じオブジェクトを指定した場合 |
bool mist::average_filter | ( | const array2< T1, Allocator1 > & | in, |
array2< T2, Allocator2 > & | out, | ||
typename array2< T1, Allocator1 >::size_type | fw, | ||
typename array2< T1, Allocator1 >::size_type | fh, | ||
typename array2< T1, Allocator1 >::size_type | thread_num = 0 |
||
) |
一様重み( array2 )
サイズ fw × fh の一様重み
[in] | in | … 入力配列 |
[out] | out | … 出力配列 |
[in] | fw | … X軸方向のフィルタサイズ |
[in] | fh | … Y軸方向のフィルタサイズ |
[in] | thread_num | … 使用するスレッド数 |
true | … フィルタリングに成功 |
false | … 入力と出力が同じオブジェクトを指定した場合 |
bool mist::average_filter | ( | const array3< T1, Allocator1 > & | in, |
array3< T2, Allocator2 > & | out, | ||
typename array3< T1, Allocator1 >::size_type | fw, | ||
typename array3< T1, Allocator1 >::size_type | fh, | ||
typename array3< T1, Allocator1 >::size_type | fd, | ||
typename array3< T1, Allocator1 >::size_type | thread_num = 0 |
||
) |
一様重み( array3 )
サイズ fw × fh × fd の一様重み
[in] | in | … 入力配列 |
[out] | out | … 出力配列 |
[in] | fw | … X軸方向のフィルタサイズ |
[in] | fh | … Y軸方向のフィルタサイズ |
[in] | fd | … Z軸方向のフィルタサイズ |
[in] | thread_num | … 使用するスレッド数 |
true | … フィルタリングに成功 |
false | … 入力と出力が同じオブジェクトを指定した場合 |