Basic Image AlgorithmS Library
2.8.0
|
wrapper around a BIAS image to be used as an OpenCv IPlimage with shared data area. More...
#include <Base/Image/WrapBias2Ipl.hh>
Public Member Functions | |
int | Bind (const BIAS::ImageBase *p_src) |
create the internal IPL image which shares the data area with the src Bias image. More... | |
bool | Consistent () const |
int | Display (const bool &waitForKey=false, const unsigned int &delayMsec=0, const float &scale=DEFAULT_32to8_scale) const |
Display img as simple popup window. More... | |
int | Display (const char *DestWin, const bool &autoresize=true, const bool &moveToTopLeft=true, const bool &waitForKey=false, const unsigned int &delayMsec=0, const float &scale=DEFAULT_32to8_scale, const bool &allowAlphaWindow=ALLOW_ALPHA_WIN_DEFAULT) const |
int | Display (const std::string &DestWin, const bool &autoresize=true, const bool &moveToTopLeft=true, const bool &waitForKey=false, const unsigned int &delayMsec=0, const float &scale=DEFAULT_32to8_scale, const bool &allowAlphaWindow=ALLOW_ALPHA_WIN_DEFAULT) const |
Display img as simple popup HighGUI window. More... | |
WrapBias2Ipl () | |
WrapBias2Ipl (const BIAS::ImageBase *PtrImgBias) | |
~WrapBias2Ipl () | |
Static Public Member Functions | |
static void | ConvertIPL32to8 (const IplImage *src32, IplImage *dest8, const float &scale=DEFAULT_32to8_scale) |
32 bit float to displayable 8 bit conversion Both images should be pre-initilaized to equal size and correct storage type. More... | |
static int | CreateBiasImageCopy (const IplImage *p_src, BIAS::ImageBase &dest) |
helper function to create a copy (!) BIAS image from a master Ipl image Data area is NOT shared but copied from ipl to bias. More... | |
static int | CreateIplImageShared (const BIAS::ImageBase *p_src, IplImage *&p_dest) |
helper function to create a slave ipl image which shares the data area with the master ref. More... | |
static void | DestroyAllWindows () |
wrapper for CV destroiing all HighGUI windows JW More... | |
static void | DestroyWindow (const char *name) |
static void | DestroyWindow (const std::string &name) |
static int | Display (const IplImage *img, const std::string &DestWin, const bool &autoresize, const bool &moveToTopLeft, const bool &waitForKey, const unsigned int &delayMsec, const float &scale=DEFAULT_32to8_scale, const bool &allowAlphaWindow=ALLOW_ALPHA_WIN_DEFAULT) |
Display img as simple popup window. More... | |
static void | MoveWindow (const char *name, const int newX, const int newY) |
static void | MoveWindow (const std::string &name, const int newX, const int newY) |
static void | NamedWindow (const char *name, const int flags=1) |
static void | NamedWindow (const std::string &name, const int flags=1) |
static void | ResizeWindow (const char *name, const unsigned int width, const unsigned int height) |
static void | ResizeWindow (const std::string &name, const unsigned int width, const unsigned int height) |
static int | WaitKey (const unsigned int &delay=0) |
wrapper for cvWaitKey More... | |
Public Attributes | |
const BIAS::ImageBase * | p_imgBias |
IplImage * | p_imgIpl |
bool | p_imgIplDestroyable |
wrapper around a BIAS image to be used as an OpenCv IPlimage with shared data area.
Definition at line 26 of file WrapBias2Ipl.hh.
WrapBias2Ipl::~WrapBias2Ipl | ( | ) |
Definition at line 22 of file WrapBias2Ipl.cpp.
WrapBias2Ipl::WrapBias2Ipl | ( | ) |
Definition at line 34 of file WrapBias2Ipl.cpp.
WrapBias2Ipl::WrapBias2Ipl | ( | const BIAS::ImageBase * | PtrImgBias | ) |
Definition at line 44 of file WrapBias2Ipl.cpp.
References Bind(), and p_imgIplDestroyable.
int WrapBias2Ipl::Bind | ( | const BIAS::ImageBase * | p_src | ) |
create the internal IPL image which shares the data area with the src Bias image.
And save the pointer to this source BIAS img.
Definition at line 63 of file WrapBias2Ipl.cpp.
References CreateIplImageShared(), p_imgBias, and p_imgIpl.
Referenced by BIAS::ImageDraw< StorageType >::Text(), and WrapBias2Ipl().
bool WrapBias2Ipl::Consistent | ( | ) | const |
Definition at line 301 of file WrapBias2Ipl.cpp.
References BIAS::ImageBase::GetHeight(), BIAS::ImageBase::GetImageData(), BIAS::ImageBase::GetWidth(), p_imgBias, and p_imgIpl.
|
static |
32 bit float to displayable 8 bit conversion
Both images should be pre-initilaized to equal size and correct storage type.
scale | mapping function, e.g. 255 for 0..1 –> 0..255 |
Definition at line 320 of file WrapBias2Ipl.cpp.
Referenced by Display().
|
static |
helper function to create a copy (!) BIAS image from a master Ipl image
Data area is NOT shared but copied from ipl to bias.
JW
Definition at line 190 of file WrapBias2Ipl.cpp.
References BIAS::ImageBase::CM_BGR, BIAS::ImageBase::CM_BGRA, BIAS::ImageBase::CM_Grey, BIAS::ImageBase::CM_RGB, BIAS::ImageBase::CM_RGBA, BIAS::ImageBase::CopyIn_NoInit(), BIAS::ImageBase::GetStorageType(), BIAS::ImageBase::Init(), BIAS::ImageBase::IsEmpty(), BIAS::ImageBase::IsInterleaved(), BIAS::ImageBase::Release(), BIAS::ImageBase::SetColorModel(), BIAS::ImageBase::ST_char, BIAS::ImageBase::ST_double, BIAS::ImageBase::ST_float, BIAS::ImageBase::ST_int, BIAS::ImageBase::ST_invalid, BIAS::ImageBase::ST_shortint, BIAS::ImageBase::ST_unsignedchar, BIAS::ImageBase::ST_unsignedshortint, and BIAS::ImageBase::StorageType_.
Referenced by BIAS::ImageIO::ImportOpenCV().
|
static |
helper function to create a slave ipl image which shares the data area with the master ref.
BIAS image Ipl image is slave of BIAS image.
Definition at line 71 of file WrapBias2Ipl.cpp.
References BIAS::ImageBase::CM_Bayer_BGGR, BIAS::ImageBase::CM_Bayer_GBRG, BIAS::ImageBase::CM_Bayer_GRBG, BIAS::ImageBase::CM_Bayer_RGGB, BIAS::ImageBase::CM_BGR, BIAS::ImageBase::CM_BGRA, BIAS::ImageBase::CM_Grey, BIAS::ImageBase::CM_PGR_XB3_F7M3_GBRG, BIAS::ImageBase::CM_RGB, BIAS::ImageBase::CM_RGBA, BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetColorModel(), BIAS::ImageBase::GetHeight(), BIAS::ImageBase::GetImageData(), BIAS::ImageBase::GetStorageType(), BIAS::ImageBase::GetWidth(), BIAS::ImageBase::IsInterleaved(), BIAS::ImageBase::ST_char, BIAS::ImageBase::ST_double, BIAS::ImageBase::ST_float, BIAS::ImageBase::ST_int, BIAS::ImageBase::ST_shortint, BIAS::ImageBase::ST_unsignedchar, BIAS::ImageBase::ST_unsignedint, and BIAS::ImageBase::ST_unsignedshortint.
Referenced by Bind(), and BIAS::ImageIO::ExportOpenCV().
|
static |
wrapper for CV destroiing all HighGUI windows JW
Definition at line 534 of file WrapBias2Ipl.cpp.
|
static |
Definition at line 539 of file WrapBias2Ipl.cpp.
Referenced by DestroyWindow().
|
static |
Definition at line 544 of file WrapBias2Ipl.cpp.
References DestroyWindow().
|
static |
Display img as simple popup window.
waitForKey | if true delaMsec is waited for keypres. 0=forever. |
delayMsec | if waitForKey is true wait for key with 0=forever, see cvWaitkey. |
Definition at line 405 of file WrapBias2Ipl.cpp.
References ConvertIPL32to8(), and WaitKey().
Referenced by Display(), and BIAS::ImageBase::Display().
int WrapBias2Ipl::Display | ( | const bool & | waitForKey = false , |
const unsigned int & | delayMsec = 0 , |
||
const float & | scale = DEFAULT_32to8_scale |
||
) | const |
Display img as simple popup window.
If you experience color channel Seq. problems, use highgui with by RGB/BGR fix(jw)
delayMsec,: |
Definition at line 361 of file WrapBias2Ipl.cpp.
References Display().
int WrapBias2Ipl::Display | ( | const char * | DestWin, |
const bool & | autoresize = true , |
||
const bool & | moveToTopLeft = true , |
||
const bool & | waitForKey = false , |
||
const unsigned int & | delayMsec = 0 , |
||
const float & | scale = DEFAULT_32to8_scale , |
||
const bool & | allowAlphaWindow = ALLOW_ALPHA_WIN_DEFAULT |
||
) | const |
Definition at line 369 of file WrapBias2Ipl.cpp.
References Display().
int WrapBias2Ipl::Display | ( | const std::string & | DestWin, |
const bool & | autoresize = true , |
||
const bool & | moveToTopLeft = true , |
||
const bool & | waitForKey = false , |
||
const unsigned int & | delayMsec = 0 , |
||
const float & | scale = DEFAULT_32to8_scale , |
||
const bool & | allowAlphaWindow = ALLOW_ALPHA_WIN_DEFAULT |
||
) | const |
Display img as simple popup HighGUI window.
actually | scale is used only for float to 8 Byte range conversion |
Definition at line 390 of file WrapBias2Ipl.cpp.
|
static |
Definition at line 565 of file WrapBias2Ipl.cpp.
Referenced by MoveWindow().
|
static |
Definition at line 570 of file WrapBias2Ipl.cpp.
References MoveWindow().
|
static |
Definition at line 576 of file WrapBias2Ipl.cpp.
|
static |
Definition at line 581 of file WrapBias2Ipl.cpp.
|
static |
Definition at line 550 of file WrapBias2Ipl.cpp.
Referenced by ResizeWindow().
|
static |
Definition at line 557 of file WrapBias2Ipl.cpp.
References ResizeWindow().
|
static |
wrapper for cvWaitKey
Definition at line 356 of file WrapBias2Ipl.cpp.
Referenced by Display().
const BIAS::ImageBase* BIAS::WrapBias2Ipl::p_imgBias |
Definition at line 141 of file WrapBias2Ipl.hh.
Referenced by Bind(), and Consistent().
IplImage* BIAS::WrapBias2Ipl::p_imgIpl |
Definition at line 144 of file WrapBias2Ipl.hh.
Referenced by BIAS::ImageDraw< StorageType >::Arrow(), Bind(), BIAS::ImageDraw< StorageType >::Circle(), Consistent(), Display(), BIAS::ImageDraw< StorageType >::Ellipse(), BIAS::ImageDraw< StorageType >::Line(), BIAS::ImageDraw< StorageType >::Rectangle(), and BIAS::ImageDraw< StorageType >::Text().
bool BIAS::WrapBias2Ipl::p_imgIplDestroyable |
Definition at line 145 of file WrapBias2Ipl.hh.
Referenced by WrapBias2Ipl().