1 #ifndef __WrapBias2Ipl__hh__
2 #define __WrapBias2Ipl__hh__
4 #include <bias_config.h>
7 #ifndef BIAS_HAVE_OPENCV
8 # error BIAS_HAVE_OPENCV not defined. Please recompile BIAS with USE_OPENCV to use WrapBias2Ipl.
11 #ifdef BIAS_HAVE_OPENCV
13 #include <Base/Image/ImageBase.hh>
16 typedef struct _IplImage IplImage;
18 #define ALLOW_ALPHA_WIN_DEFAULT true
43 static int CreateIplImageShared(
const BIAS::ImageBase * p_src, IplImage * &p_dest);
47 static int CreateBiasImageCopy(
const IplImage * p_src,
BIAS::ImageBase & dest);
50 bool Consistent()
const;
55 static int WaitKey(
const unsigned int & delay=0);
66 const std::string & DestWin,
67 const bool & autoresize,
68 const bool & moveToTopLeft,
69 const bool & waitForKey,
70 const unsigned int & delayMsec,
71 const float & scale=DEFAULT_32to8_scale,
72 const bool & allowAlphaWindow=ALLOW_ALPHA_WIN_DEFAULT
80 int Display(
const bool & waitForKey=
false,
81 const unsigned int & delayMsec=0,
82 const float & scale=DEFAULT_32to8_scale
85 int Display(
const char* DestWin,
86 const bool & autoresize=
true,
87 const bool & moveToTopLeft=
true,
88 const bool & waitForKey=
false,
89 const unsigned int & delayMsec=0,
90 const float & scale=DEFAULT_32to8_scale,
91 const bool & allowAlphaWindow=ALLOW_ALPHA_WIN_DEFAULT
99 const std::string & DestWin,
100 const bool & autoresize=
true,
101 const bool & moveToTopLeft=
true,
102 const bool & waitForKey=
false,
103 const unsigned int & delayMsec=0,
104 const float & scale=DEFAULT_32to8_scale,
105 const bool & allowAlphaWindow=ALLOW_ALPHA_WIN_DEFAULT
112 static void ConvertIPL32to8(
const IplImage* src32,
114 const float & scale=DEFAULT_32to8_scale
118 static void DestroyAllWindows();
121 static void DestroyWindow(
const char* name );
122 static void DestroyWindow(
const std::string & name );
125 static void ResizeWindow(
const char* name,
126 const unsigned int width,
127 const unsigned int height );
128 static void ResizeWindow(
const std::string & name,
129 const unsigned int width,
130 const unsigned int height );
133 static void MoveWindow(
const char* name,
const int newX,
const int newY );
134 static void MoveWindow(
const std::string & name,
const int newX,
const int newY );
137 static void NamedWindow(
const char* name,
const int flags=1);
138 static void NamedWindow(
const std::string& name,
const int flags=1);
148 #endif // BIAS_HAVE_OPENCV
150 #endif //__WrapBias2Ipl__hh__
const BIAS::ImageBase * p_imgBias
wrapper around a BIAS image to be used as an OpenCv IPlimage with shared data area.
This is the base class for images in BIAS.