Basic Image AlgorithmS Library
2.8.0
|
display image in wx application, provides zoom and investigation functionality More...
#include <Gui/ImageCanvas.hh>
Public Member Functions | |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
void | DrawRoi (bool enable) |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
wxPoint | GetHistoPos () |
wxSize | GetHistoSize () |
BIAS::Image< unsigned char > * | GetImageShown () |
bool | GetMousePos (int &x, int &y) |
BIAS::ImageBase * | GetOrigImage () |
bool | GetShowScaled () |
wxPoint | GetValueBarPos () |
wxSize | GetValueBarSize () |
void | HideImageValueBar () |
bool | HistogrammIsShown () |
ImageCanvas (wxWindow *parent, wxStatusBar *sbar=NULL, int sbarid=0, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(320, 240), long style=((wxHSCROLL|wxVSCROLL)&wxTRANSPARENT), const wxString &name=wxT("ScrolledWindow")) | |
bool | ImageValueBarIsShown () |
bool | IsRoiDrawn () |
void | KeepScrollPosition (bool flag) |
long int | Name2DebugLevel (const std::string &name) const |
looks up a debuglevel in the internal map, returns 0 if not found More... | |
long int | NewDebugLevel (const std::string &name) |
creates a new debuglevel More... | |
void | PrintDebugLevel (std::ostream &os=std::cout) const |
void | RaiseZoomWindow (const bool raise_or_lower) |
void | RemoveDebugLevel (const long int lv) |
void | RemoveDebugLevel (const std::string &name) |
void | SetClearDrawingContext (bool clear) |
Canvas now uses double buffering to avoid flickering, so it should be ok to always clear the canvas. More... | |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
void | SetDebugStream (const std::ostream &os) |
void | SetDefaultZoom (unsigned z) |
void | SetHighScaleQuality (bool on) |
Set the quality used for image size rescaling false: Uses the normal default scaling method of pixel replication true: Uses bicubic and box averaging resampling methods for upsampling and downsampling respectively. More... | |
void | SetRoiColor (unsigned char red, unsigned char green, unsigned char blue, unsigned alpha=128) |
Set the color which is used to draw the roi. More... | |
void | SetScaledImageSize (int width, int height) |
Sets the size of the scaled image. More... | |
void | SetShowScaled (bool on) |
virtual void | Show (BIAS::Image< unsigned char > &im, std::string name="") |
virtual void | Show (BIAS::ImageBase &origim, BIAS::Image< unsigned char > &scaledrgbim, std::string name="") |
virtual void | Show (BIAS::PyramidImage< unsigned char > &pim, std::string name="") |
virtual bool | Show (bool show=true) |
void | ShowDebugLevel (std::ostream &os=std::cout) const |
prints all internally known debuglevels More... | |
void | ShowHistogramm (wxPoint pos=wxPoint(10, 10), wxSize size=wxSize(100, 100)) |
void | ShowHistogramm (ImageBase &image, wxPoint pos=wxPoint(10, 10), wxSize size=wxSize(100, 100)) |
void | ShowImageValueBar (wxPoint pos=wxPoint(10, 10), wxSize size=wxSize(100, 100)) |
void | ShowImageValueBar (ImageBase &image, wxPoint pos=wxPoint(10, 10), wxSize size=wxSize(100, 100)) |
~ImageCanvas () | |
Static Public Member Functions | |
static long int | GetGlobalDebugLevel () |
static void | SetGlobalDebugLevel (long int lev) |
Protected Member Functions | |
long | ConsumeNextFreeDebuglevel_ () |
returns the next available debuglevel More... | |
void | InitHisto (wxPoint pos=wxPoint(10, 10), wxSize size=wxSize(100, 100)) |
void | InitImageValueBar (wxPoint pos=wxPoint(10, 10), wxSize size=wxSize(100, 100)) |
virtual void | OnErase (wxEraseEvent &event) |
virtual void | OnKeyPress (wxKeyEvent &event) |
virtual void | OnLeftMouseButton (wxMouseEvent &event) |
virtual void | OnMouseEnter (wxMouseEvent &event) |
virtual void | OnMouseLeave (wxMouseEvent &event) |
virtual void | OnMouseMove (wxMouseEvent &event) |
virtual void | OnMouseWheel (wxMouseEvent &event) |
virtual void | OnPaint (wxPaintEvent &event) |
virtual void | OnRightMouseButton (wxMouseEvent &event) |
virtual void | OnSize (wxSizeEvent &event) |
virtual void | PaintRoiOnDc_ (wxBufferedPaintDC &dc) |
void | UpdateStatusBar (unsigned x, unsigned y) |
void | Zoom (unsigned x, unsigned y) |
Protected Attributes | |
long int | _liDebugLevel |
long int | _liNextDebugLevel |
new concept, debuglevel are managed here in the debug class More... | |
std::map< std::string, long int > | _String2Debuglevel |
wxBitmap * | Bitmap_ |
bool | ClearDrawingContext_ |
unsigned | DefaultZoom_ |
bool | DrawRoi_ |
unsigned | height_ |
std::string | ImageName_ |
bool | KeepScrollPosition_ |
unsigned | lastheight_ |
unsigned | lastwidth_ |
int | mousex_ |
int | mousey_ |
HistoFrame * | MyHistoWin_ |
ImageLegendFrame * | MyValueBarFrame_ |
ZoomFrame * | MyZoomWin_ |
BIAS::ImageBase | origim_ |
wxMutex | origim_mutex_ |
BIAS::Image< unsigned char > | rgbim_ |
wxBitmap * | RoiBitmap_ |
BIAS::Image< unsigned char > | roimask_ |
wxStatusBar * | SBar_ |
int | SBarID_ |
int | SBarWidths_ [2] |
int | ScaledImageSizeX_ |
int | ScaledImageSizeY_ |
bool | ShowScaled_ |
wxString | Title_ |
bool | UseHighScaleQuality_ |
unsigned | width_ |
wxMutex | wxbitmap_mutex_ |
wxImage * | wximage_ |
wxImage * | wxRoiImage_ |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
display image in wx application, provides zoom and investigation functionality
Definition at line 38 of file ImageCanvas.hh.
ImageCanvas::ImageCanvas | ( | wxWindow * | parent, |
wxStatusBar * | sbar = NULL , |
||
int | sbarid = 0 , |
||
wxWindowID | id = -1 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(320, 240) , |
||
long | style = ( (wxHSCROLL | wxVSCROLL) & wxTRANSPARENT) , |
||
const wxString & | name = wxT("ScrolledWindow") |
||
) |
Definition at line 42 of file ImageCanvas.cpp.
ImageCanvas::~ImageCanvas | ( | ) |
Definition at line 86 of file ImageCanvas.cpp.
|
inlineinherited |
Definition at line 355 of file Debug.hh.
Referenced by BIAS::GLProjectionParametersBase::AddDebugLevel(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::FilterBase< InputStorageType, OutputStorageType >::FilterBase(), BIAS::ShowCamWxVideoSourceFactory::OpenDevice(), and BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph().
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 341 of file Debug.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::MonteCarloTransform::GetSamples_(), and BIAS::MonteCarloTransform::Transform().
|
inlineinherited |
|
inline |
Definition at line 126 of file ImageCanvas.hh.
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
wxPoint ImageCanvas::GetHistoPos | ( | ) |
Definition at line 288 of file ImageCanvas.cpp.
wxSize ImageCanvas::GetHistoSize | ( | ) |
Definition at line 297 of file ImageCanvas.cpp.
|
inline |
Definition at line 84 of file ImageCanvas.hh.
Referenced by BIAS::ImageLegendFrame::OnSave().
bool ImageCanvas::GetMousePos | ( | int & | x, |
int & | y | ||
) |
Definition at line 449 of file ImageCanvas.cpp.
|
inline |
Definition at line 82 of file ImageCanvas.hh.
|
inline |
Definition at line 99 of file ImageCanvas.hh.
wxPoint ImageCanvas::GetValueBarPos | ( | ) |
Definition at line 306 of file ImageCanvas.cpp.
wxSize ImageCanvas::GetValueBarSize | ( | ) |
Definition at line 315 of file ImageCanvas.cpp.
void ImageCanvas::HideImageValueBar | ( | ) |
Definition at line 477 of file ImageCanvas.cpp.
bool ImageCanvas::HistogrammIsShown | ( | ) |
Definition at line 457 of file ImageCanvas.cpp.
bool ImageCanvas::ImageValueBarIsShown | ( | ) |
Definition at line 467 of file ImageCanvas.cpp.
|
protected |
Definition at line 96 of file ImageCanvas.cpp.
|
protected |
Definition at line 103 of file ImageCanvas.cpp.
|
inline |
Definition at line 127 of file ImageCanvas.hh.
void ImageCanvas::KeepScrollPosition | ( | bool | flag | ) |
Definition at line 483 of file ImageCanvas.cpp.
Referenced by BIAS::ScaledImageCanvas::KeepScrollPosition().
|
inlineinherited |
|
inlineinherited |
creates a new debuglevel
Definition at line 474 of file Debug.hh.
Referenced by BIAS::COSAC< SolutionType >::COSAC(), BIAS::ProjectionParametersPerspectiveDepth::Init(), BIAS::MonteCarloTransform::MonteCarloTransform(), BIAS::PMatrixEstimation::PMatrixEstimation(), BIAS::PreemptiveRANSAC< SolutionType >::PreemptiveRANSAC(), BIAS::RANSACPreKnowledge< SolutionType >::RANSACPreKnowledge(), BIAS::ROI::ROI(), BIAS::RotationAveraging::RotationAveraging(), BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph(), BIAS::ThreeDOutOpenSceneGraph::ThreeDOutOpenSceneGraph(), BIAS::Triangulation::Triangulation(), and BIAS::UnscentedTransform::UnscentedTransform().
|
protectedvirtual |
Definition at line 503 of file ImageCanvas.cpp.
|
protectedvirtual |
Definition at line 734 of file ImageCanvas.cpp.
|
protectedvirtual |
Reimplemented in BIAS::ImageCanvasCheckerboardExtract, BIAS::ImageCanvasRectangularSelection, and BIAS::PlainImageCanvas.
Definition at line 718 of file ImageCanvas.cpp.
|
protectedvirtual |
Definition at line 673 of file ImageCanvas.cpp.
|
protectedvirtual |
Definition at line 664 of file ImageCanvas.cpp.
|
protectedvirtual |
Reimplemented in BIAS::ImageCanvasCheckerboardExtract, and BIAS::ImageCanvasRectangularSelection.
Definition at line 682 of file ImageCanvas.cpp.
|
protectedvirtual |
Definition at line 645 of file ImageCanvas.cpp.
|
protectedvirtual |
Reimplemented in BIAS::ImageCanvasCheckerboardExtract, and BIAS::ImageCanvasRectangularSelection.
Definition at line 508 of file ImageCanvas.cpp.
Referenced by BIAS::ImageCanvasCheckerboardExtract::OnPaint().
|
protectedvirtual |
Reimplemented in BIAS::ImageCanvasCheckerboardExtract, BIAS::ImageCanvasRectangularSelection, and BIAS::PlainImageCanvas.
Definition at line 705 of file ImageCanvas.cpp.
|
protectedvirtual |
Definition at line 726 of file ImageCanvas.cpp.
|
protectedvirtual |
Definition at line 567 of file ImageCanvas.cpp.
References BIAS::ROI::GetCorners(), BIAS::ROI::GetROIType(), BIAS::ROI::GetRows(), BIAS::ROI_Corners, BIAS::ROI_Mask, BIAS::ROI_Points, and BIAS::ROI_Rows.
|
inlineinherited |
void ImageCanvas::RaiseZoomWindow | ( | const bool | raise_or_lower | ) |
Definition at line 490 of file ImageCanvas.cpp.
Referenced by BIAS::ScaledImageCanvas::RaiseZoomWindow().
|
inlineinherited |
|
inlineinherited |
|
inline |
Canvas now uses double buffering to avoid flickering, so it should be ok to always clear the canvas.
Definition at line 95 of file ImageCanvas.hh.
|
inlineinherited |
Definition at line 318 of file Debug.hh.
Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateBumbleBee(), BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), BIAS::VideoSource_MDcam::ScanBus(), BIAS::GLProjectionParametersBase::SetDebugLevel(), BIAS::VideoSource_Disk::VideoSource_Disk(), BIAS::VideoSource_DV2::VideoSource_DV2(), BIAS::VideoSource_DV::VideoSource_DV_Internal_Init_(), and BIAS::VideoSource_V4L::VideoSource_V4L().
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 88 of file ImageCanvas.hh.
|
inlinestaticinherited |
|
inline |
Set the quality used for image size rescaling false: Uses the normal default scaling method of pixel replication true: Uses bicubic and box averaging resampling methods for upsampling and downsampling respectively.
Definition at line 114 of file ImageCanvas.hh.
void BIAS::ImageCanvas::SetRoiColor | ( | unsigned char | red, |
unsigned char | green, | ||
unsigned char | blue, | ||
unsigned | alpha = 128 |
||
) |
Set the color which is used to draw the roi.
|
inline |
Sets the size of the scaled image.
Only used if show scaled is on.
Definition at line 102 of file ImageCanvas.hh.
|
inline |
Definition at line 98 of file ImageCanvas.hh.
|
virtual |
Definition at line 119 of file ImageCanvas.cpp.
References BIAS::ImageBase::CM_PGR_XB3_F7M3_GBRG, BIAS::ImageBase::CM_RGB, BIAS::ImageConvert::Convert(), BIAS::ImageBase::GetColorModel(), and BIAS::ImageBase::IsPlanar().
Referenced by BIAS::FilterDialogPreviewWindow< StorageType >::FilterDialogPreviewWindow(), BIAS::ImageCanvasCheckerboardExtract::RefreshDrawIm_(), BIAS::ImageCanvasRectangularSelection::RefreshDrawImage_(), BIAS::ImageLegendFrame::SetImage(), BIAS::GuiWXFrame::ShowConvertedImage(), BIAS::FitCircleFrame::UpdateImage(), and BIAS::ScaledImageCanvas::UpdateScaleOffset().
|
virtual |
Definition at line 152 of file ImageCanvas.cpp.
References BIAS::AsciiToWx(), and BIAS::ROI_Mask.
|
virtual |
Definition at line 110 of file ImageCanvas.cpp.
References BIAS::PyramidImage< T >::GetSingleImage().
|
inlinevirtual |
Definition at line 80 of file ImageCanvas.hh.
|
inlineinherited |
void ImageCanvas::ShowHistogramm | ( | wxPoint | pos = wxPoint(10,10) , |
wxSize | size = wxSize(100,100) |
||
) |
Definition at line 341 of file ImageCanvas.cpp.
References BIAS::AsciiToWx().
void ImageCanvas::ShowHistogramm | ( | ImageBase & | image, |
wxPoint | pos = wxPoint(10,10) , |
||
wxSize | size = wxSize(100,100) |
||
) |
Definition at line 325 of file ImageCanvas.cpp.
References BIAS::AsciiToWx(), and BIAS::ImageBase::IsEmpty().
void ImageCanvas::ShowImageValueBar | ( | wxPoint | pos = wxPoint(10,10) , |
wxSize | size = wxSize(100,100) |
||
) |
Definition at line 371 of file ImageCanvas.cpp.
void ImageCanvas::ShowImageValueBar | ( | ImageBase & | image, |
wxPoint | pos = wxPoint(10,10) , |
||
wxSize | size = wxSize(100,100) |
||
) |
Definition at line 357 of file ImageCanvas.cpp.
|
protected |
Definition at line 402 of file ImageCanvas.cpp.
References BIAS::AsciiToWx(), and BIAS::ImageBase::PrintPixelValue().
|
protected |
Definition at line 385 of file ImageCanvas.cpp.
References BIAS::AsciiToWx().
|
protectedinherited |
Definition at line 510 of file Debug.hh.
Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().
|
protectedinherited |
new concept, debuglevel are managed here in the debug class
Definition at line 516 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protectedinherited |
Definition at line 517 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
Definition at line 511 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protected |
Definition at line 161 of file ImageCanvas.hh.
|
protected |
Definition at line 173 of file ImageCanvas.hh.
|
protected |
Definition at line 181 of file ImageCanvas.hh.
|
protected |
Definition at line 169 of file ImageCanvas.hh.
|
staticprotectedinherited |
|
protected |
Definition at line 182 of file ImageCanvas.hh.
|
protected |
Definition at line 185 of file ImageCanvas.hh.
Referenced by BIAS::ImageCanvasCheckerboardExtract::RefreshDrawIm_(), and BIAS::ImageCanvasRectangularSelection::RefreshDrawImage_().
|
protected |
Definition at line 170 of file ImageCanvas.hh.
|
protected |
Definition at line 183 of file ImageCanvas.hh.
|
protected |
Definition at line 183 of file ImageCanvas.hh.
|
protected |
Definition at line 179 of file ImageCanvas.hh.
|
protected |
Definition at line 179 of file ImageCanvas.hh.
|
protected |
Definition at line 153 of file ImageCanvas.hh.
|
protected |
Definition at line 154 of file ImageCanvas.hh.
|
protected |
Definition at line 152 of file ImageCanvas.hh.
|
protected |
Definition at line 156 of file ImageCanvas.hh.
Referenced by BIAS::ImageCanvasCheckerboardExtract::RefreshDrawIm_(), BIAS::ImageCanvasRectangularSelection::RefreshDrawImage_(), and BIAS::ImageCanvasRectangularSelection::SelectRectangle().
|
protected |
Definition at line 164 of file ImageCanvas.hh.
Referenced by BIAS::ImageCanvasRectangularSelection::SelectRectangle().
|
protected |
Definition at line 157 of file ImageCanvas.hh.
Referenced by BIAS::ImageCanvasCheckerboardExtract::DrawCheckerboardCorners_(), BIAS::ImageCanvasRectangularSelection::DrawRectangle_(), and BIAS::ImageCanvasCheckerboardExtract::SelectCheckerboardCorners().
|
protected |
Definition at line 160 of file ImageCanvas.hh.
|
protected |
Definition at line 158 of file ImageCanvas.hh.
|
protected |
Definition at line 165 of file ImageCanvas.hh.
|
protected |
Definition at line 177 of file ImageCanvas.hh.
|
protected |
Definition at line 178 of file ImageCanvas.hh.
|
protected |
Definition at line 175 of file ImageCanvas.hh.
|
protected |
Definition at line 175 of file ImageCanvas.hh.
|
protected |
Definition at line 168 of file ImageCanvas.hh.
|
protected |
Definition at line 186 of file ImageCanvas.hh.
|
protected |
Definition at line 176 of file ImageCanvas.hh.
|
protected |
Definition at line 182 of file ImageCanvas.hh.
|
protected |
Definition at line 164 of file ImageCanvas.hh.
|
protected |
Definition at line 163 of file ImageCanvas.hh.
|
protected |
Definition at line 162 of file ImageCanvas.hh.