関数
直線や円の描画

関数

template<class T , class Allocator >
void mist::draw_line (array2< T, Allocator > &image, typename array2< T, Allocator >::difference_type x1, typename array2< T, Allocator >::difference_type y1, typename array2< T, Allocator >::difference_type x2, typename array2< T, Allocator >::difference_type y2, typename array2< T, Allocator >::value_type color=typename array2< T, Allocator >::value_type())
 2次元画像に直線を描画する
template<size_t BITS>
void mist::draw_line (bitmap< BITS > &image, typename bitmap< BITS >::difference_type x1, typename bitmap< BITS >::difference_type y1, typename bitmap< BITS >::difference_type x2, typename bitmap< BITS >::difference_type y2, typename bitmap< BITS >::value_type color=typename bitmap< BITS >::value_type())
 2次元ビットマップ画像に直線を描画する
template<class T , class Allocator >
void mist::draw_line (array3< T, Allocator > &image, typename array3< T, Allocator >::difference_type x1, typename array3< T, Allocator >::difference_type y1, typename array3< T, Allocator >::difference_type z1, typename array3< T, Allocator >::difference_type x2, typename array3< T, Allocator >::difference_type y2, typename array3< T, Allocator >::difference_type z2, typename array3< T, Allocator >::value_type color=typename array3< T, Allocator >::value_type())
 3次元画像に直線を描画する
template<class T , class Allocator >
void mist::draw_point (array2< T, Allocator > &image, typename array2< T, Allocator >::difference_type x, typename array2< T, Allocator >::difference_type y, typename array2< T, Allocator >::difference_type radius, typename array2< T, Allocator >::value_type value=typename array3< T, Allocator >::value_type())
 3次元画像に直線を描画する
template<class T , class Allocator >
void mist::draw_point (array3< T, Allocator > &image, typename array3< T, Allocator >::difference_type x, typename array3< T, Allocator >::difference_type y, typename array3< T, Allocator >::difference_type z, typename array3< T, Allocator >::difference_type radius, typename array3< T, Allocator >::value_type value=typename array3< T, Allocator >::value_type())
 3次元画像に直線を描画する
template<typename T , typename Allocator >
void mist::set_pixel (array2< T, Allocator > &image, typename array2< T, Allocator >::difference_type x, typename array2< T, Allocator >::difference_type y, const typename array2< T, Allocator >::value_type &value)
 2次元が像に範囲チェックを行い,値を代入
template<typename T , typename Allocator >
void mist::draw_circle (array2< T, Allocator > &image, typename array2< T, Allocator >::difference_type cx, typename array2< T, Allocator >::difference_type cy, typename array2< T, Allocator >::difference_type r, const typename array2< T, Allocator >::value_type &value)
 円を描く(Michenerの手法)
template<typename T , typename Allocator >
void mist::draw_rect (array2< T, Allocator > &image, typename array2< T, Allocator >::difference_type x0, typename array2< T, Allocator >::difference_type y0, typename array2< T, Allocator >::difference_type x1, typename array2< T, Allocator >::difference_type y1, const typename array2< T, Allocator >::value_type &value)
 長方形を描く
template<typename T , typename Allocator >
void mist::fill_rect (array2< T, Allocator > &image, typename array2< T, Allocator >::difference_type x0, typename array2< T, Allocator >::difference_type y0, typename array2< T, Allocator >::difference_type x1, typename array2< T, Allocator >::difference_type y1, const typename array2< T, Allocator >::value_type &value)
 長方形で塗りつぶす
template<typename T , typename Allocator >
void mist::draw_crosspoint (array2< T, Allocator > &image, typename array2< T, Allocator >::difference_type cx, typename array2< T, Allocator >::difference_type cy, typename array2< T, Allocator >::difference_type size, const typename array2< T, Allocator >::value_type &value)
 十字点を描画

説明

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

関数

template<typename T , typename Allocator >
void mist::draw_circle ( array2< T, Allocator > &  image,
typename array2< T, Allocator >::difference_type  cx,
typename array2< T, Allocator >::difference_type  cy,
typename array2< T, Allocator >::difference_type  r,
const typename array2< T, Allocator >::value_type &  value 
)

円を描く(Michenerの手法)

引数
[out]image出力画像
[in]cx円中心のX座標
[in]cy円中心のY座標
[in]r円の半径
[in]value… 描画する色もしくは値

参照先 mist::set_pixel().

template<typename T , typename Allocator >
void mist::draw_crosspoint ( array2< T, Allocator > &  image,
typename array2< T, Allocator >::difference_type  cx,
typename array2< T, Allocator >::difference_type  cy,
typename array2< T, Allocator >::difference_type  size,
const typename array2< T, Allocator >::value_type &  value 
)

十字点を描画

引数
[out]image出力画像
[in]cx中心のX座標
[in]cy中心のY座標
[in]size十字点の大きさ
[in]value… 描画する色もしくは値

参照先 mist::draw_line().

template<class T , class Allocator >
void mist::draw_line ( array2< T, Allocator > &  image,
typename array2< T, Allocator >::difference_type  x1,
typename array2< T, Allocator >::difference_type  y1,
typename array2< T, Allocator >::difference_type  x2,
typename array2< T, Allocator >::difference_type  y2,
typename array2< T, Allocator >::value_type  color = typename array2< T, Allocator >::value_type( ) 
)

2次元画像に直線を描画する

手法について何か書く

引数
[in,out]image… 入出力画像
[in]x1… 直線の端点1のX座標
[in]y1… 直線の端点1のY座標
[in]x2… 直線の端点2のX座標
[in]y2… 直線の端点2のY座標
[in]color… 直線の色もしくは値

参照先 mist::array2< T, Allocator >::height(), と mist::array2< T, Allocator >::width().

参照元 mist::draw_crosspoint(), mist::draw_rect(), と mist::non_rigid::registration< TARGETTYPE >::transform().

template<size_t BITS>
void mist::draw_line ( bitmap< BITS > &  image,
typename bitmap< BITS >::difference_type  x1,
typename bitmap< BITS >::difference_type  y1,
typename bitmap< BITS >::difference_type  x2,
typename bitmap< BITS >::difference_type  y2,
typename bitmap< BITS >::value_type  color = typename bitmap< BITS >::value_type( ) 
)

2次元ビットマップ画像に直線を描画する

手法について何か書く

引数
[in,out]image… 入出力画像
[in]x1… 直線の端点1のX座標
[in]y1… 直線の端点1のY座標
[in]x2… 直線の端点2のX座標
[in]y2… 直線の端点2のY座標
[in]color… 直線の色もしくは値

参照先 mist::bitmap< BITS, Allocator >::height(), と mist::bitmap< BITS, Allocator >::width().

template<class T , class Allocator >
void mist::draw_line ( array3< T, Allocator > &  image,
typename array3< T, Allocator >::difference_type  x1,
typename array3< T, Allocator >::difference_type  y1,
typename array3< T, Allocator >::difference_type  z1,
typename array3< T, Allocator >::difference_type  x2,
typename array3< T, Allocator >::difference_type  y2,
typename array3< T, Allocator >::difference_type  z2,
typename array3< T, Allocator >::value_type  color = typename array3< T, Allocator >::value_type( ) 
)

3次元画像に直線を描画する

手法について何か書く

引数
[in,out]image… 入出力画像
[in]x1… 直線の端点1のX座標
[in]y1… 直線の端点1のY座標
[in]z1… 直線の端点1のZ座標
[in]x2… 直線の端点2のX座標
[in]y2… 直線の端点2のY座標
[in]z2… 直線の端点2のZ座標
[in]color… 直線の色もしくは値

参照先 mist::array3< T, Allocator >::depth(), mist::array3< T, Allocator >::height(), と mist::array3< T, Allocator >::width().

template<class T , class Allocator >
void mist::draw_point ( array2< T, Allocator > &  image,
typename array2< T, Allocator >::difference_type  x,
typename array2< T, Allocator >::difference_type  y,
typename array2< T, Allocator >::difference_type  radius,
typename array2< T, Allocator >::value_type  value = typename array3< T, Allocator >::value_type( ) 
)

3次元画像に直線を描画する

手法について何か書く

引数
[in,out]image… 入出力画像
[in]x… 描画する点のX座標
[in]y… 描画する点のY座標
[in]radius… 描画する点の半径
[in]value… 描画する色もしくは値

参照先 mist::array2< T, Allocator >::height(), と mist::array2< T, Allocator >::width().

template<class T , class Allocator >
void mist::draw_point ( array3< T, Allocator > &  image,
typename array3< T, Allocator >::difference_type  x,
typename array3< T, Allocator >::difference_type  y,
typename array3< T, Allocator >::difference_type  z,
typename array3< T, Allocator >::difference_type  radius,
typename array3< T, Allocator >::value_type  value = typename array3< T, Allocator >::value_type( ) 
)

3次元画像に直線を描画する

手法について何か書く

引数
[in,out]image… 入出力画像
[in]x… 描画する点のX座標
[in]y… 描画する点のY座標
[in]z… 描画する点のZ座標
[in]radius… 描画する点の半径
[in]value… 描画する色もしくは値

参照先 mist::array3< T, Allocator >::depth(), mist::array3< T, Allocator >::height(), と mist::array3< T, Allocator >::width().

template<typename T , typename Allocator >
void mist::draw_rect ( array2< T, Allocator > &  image,
typename array2< T, Allocator >::difference_type  x0,
typename array2< T, Allocator >::difference_type  y0,
typename array2< T, Allocator >::difference_type  x1,
typename array2< T, Allocator >::difference_type  y1,
const typename array2< T, Allocator >::value_type &  value 
)

長方形を描く

引数
[out]image出力画像
[in]x0左上のX座標
[in]y0左上のY座標
[in]x1右下のX座標
[in]y1右下のY座標
[in]value… 描画する色もしくは値

参照先 mist::draw_line().

template<typename T , typename Allocator >
void mist::fill_rect ( array2< T, Allocator > &  image,
typename array2< T, Allocator >::difference_type  x0,
typename array2< T, Allocator >::difference_type  y0,
typename array2< T, Allocator >::difference_type  x1,
typename array2< T, Allocator >::difference_type  y1,
const typename array2< T, Allocator >::value_type &  value 
)

長方形で塗りつぶす

引数
[out]image出力画像
[in]x0左上のX座標
[in]y0左上のY座標
[in]x1右下のX座標
[in]y1右下のY座標
[in]value… 描画する色もしくは値

参照先 mist::array2< T, Allocator >::height(), と mist::array2< T, Allocator >::width().

template<typename T , typename Allocator >
void mist::set_pixel ( array2< T, Allocator > &  image,
typename array2< T, Allocator >::difference_type  x,
typename array2< T, Allocator >::difference_type  y,
const typename array2< T, Allocator >::value_type &  value 
)

2次元が像に範囲チェックを行い,値を代入

引数
[out]image出力画像
[in]x画素のX座標
[in]y画素のY座標
[in]value… 描画する色もしくは値

参照先 mist::array2< T, Allocator >::height(), と mist::array2< T, Allocator >::width().

参照元 mist::draw_circle().


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