Basic Image AlgorithmS Library
2.8.0
|
Image canvas that does not show zoom frames and redirects mouse click events to its parent. More...
#include <Gui/PlainImageCanvas.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 () |
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... | |
PlainImageCanvas (wxWindow *parent, wxStatusBar *sbar=NULL, int sbarid=0) | |
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)) |
virtual | ~PlainImageCanvas () |
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)) |
void | OnChar (wxKeyEvent &event) |
virtual void | OnErase (wxEraseEvent &event) |
void | OnKeyDown (wxKeyEvent &event) |
virtual void | OnKeyPress (wxKeyEvent &event) |
void | OnLeftDClick (wxMouseEvent &event) |
void | OnLeftDown (wxMouseEvent &event) |
void | OnLeftMouseButton (wxMouseEvent &event) |
void | OnMotion (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) |
void | OnRightDown (wxMouseEvent &event) |
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 |
Image canvas that does not show zoom frames and redirects mouse click events to its parent.
Definition at line 15 of file PlainImageCanvas.hh.
PlainImageCanvas::PlainImageCanvas | ( | wxWindow * | parent, |
wxStatusBar * | sbar = NULL , |
||
int | sbarid = 0 |
||
) |
Definition at line 8 of file PlainImageCanvas.cpp.
|
inlinevirtual |
Definition at line 20 of file PlainImageCanvas.hh.
|
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 |
|
inlineinherited |
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 |
|
inherited |
Definition at line 288 of file ImageCanvas.cpp.
|
inherited |
Definition at line 297 of file ImageCanvas.cpp.
|
inlineinherited |
Definition at line 84 of file ImageCanvas.hh.
Referenced by BIAS::ImageLegendFrame::OnSave().
|
inherited |
Definition at line 449 of file ImageCanvas.cpp.
|
inlineinherited |
Definition at line 82 of file ImageCanvas.hh.
|
inlineinherited |
Definition at line 99 of file ImageCanvas.hh.
|
inherited |
Definition at line 306 of file ImageCanvas.cpp.
|
inherited |
Definition at line 315 of file ImageCanvas.cpp.
|
inherited |
Definition at line 477 of file ImageCanvas.cpp.
|
inherited |
Definition at line 457 of file ImageCanvas.cpp.
|
inherited |
Definition at line 467 of file ImageCanvas.cpp.
|
protectedinherited |
Definition at line 96 of file ImageCanvas.cpp.
|
protectedinherited |
Definition at line 103 of file ImageCanvas.cpp.
|
inlineinherited |
Definition at line 127 of file ImageCanvas.hh.
|
inherited |
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().
|
protected |
Definition at line 22 of file PlainImageCanvas.cpp.
|
protectedvirtualinherited |
Definition at line 503 of file ImageCanvas.cpp.
|
protected |
Definition at line 13 of file PlainImageCanvas.cpp.
|
protectedvirtualinherited |
Definition at line 734 of file ImageCanvas.cpp.
|
protected |
Definition at line 58 of file PlainImageCanvas.cpp.
|
protected |
Definition at line 31 of file PlainImageCanvas.cpp.
|
protectedvirtual |
Reimplemented from BIAS::ImageCanvas.
Definition at line 75 of file PlainImageCanvas.cpp.
|
protected |
Definition at line 49 of file PlainImageCanvas.cpp.
|
protectedvirtualinherited |
Definition at line 673 of file ImageCanvas.cpp.
|
protectedvirtualinherited |
Definition at line 664 of file ImageCanvas.cpp.
|
protectedvirtualinherited |
Reimplemented in BIAS::ImageCanvasCheckerboardExtract, and BIAS::ImageCanvasRectangularSelection.
Definition at line 682 of file ImageCanvas.cpp.
|
protectedvirtualinherited |
Definition at line 645 of file ImageCanvas.cpp.
|
protectedvirtualinherited |
Reimplemented in BIAS::ImageCanvasCheckerboardExtract, and BIAS::ImageCanvasRectangularSelection.
Definition at line 508 of file ImageCanvas.cpp.
Referenced by BIAS::ImageCanvasCheckerboardExtract::OnPaint().
|
protected |
Definition at line 40 of file PlainImageCanvas.cpp.
|
protectedvirtual |
Reimplemented from BIAS::ImageCanvas.
Definition at line 67 of file PlainImageCanvas.cpp.
|
protectedvirtualinherited |
Definition at line 726 of file ImageCanvas.cpp.
|
protectedvirtualinherited |
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 |
|
inherited |
Definition at line 490 of file ImageCanvas.cpp.
Referenced by BIAS::ScaledImageCanvas::RaiseZoomWindow().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
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 |
|
inlineinherited |
Definition at line 88 of file ImageCanvas.hh.
|
inlinestaticinherited |
|
inlineinherited |
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.
|
inherited |
Set the color which is used to draw the roi.
|
inlineinherited |
Sets the size of the scaled image.
Only used if show scaled is on.
Definition at line 102 of file ImageCanvas.hh.
|
inlineinherited |
Definition at line 98 of file ImageCanvas.hh.
|
virtualinherited |
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().
|
virtualinherited |
Definition at line 152 of file ImageCanvas.cpp.
References BIAS::AsciiToWx(), and BIAS::ROI_Mask.
|
virtualinherited |
Definition at line 110 of file ImageCanvas.cpp.
References BIAS::PyramidImage< T >::GetSingleImage().
|
inlinevirtualinherited |
Definition at line 80 of file ImageCanvas.hh.
|
inlineinherited |
|
inherited |
Definition at line 341 of file ImageCanvas.cpp.
References BIAS::AsciiToWx().
|
inherited |
Definition at line 325 of file ImageCanvas.cpp.
References BIAS::AsciiToWx(), and BIAS::ImageBase::IsEmpty().
|
inherited |
Definition at line 371 of file ImageCanvas.cpp.
|
inherited |
Definition at line 357 of file ImageCanvas.cpp.
|
protectedinherited |
Definition at line 402 of file ImageCanvas.cpp.
References BIAS::AsciiToWx(), and BIAS::ImageBase::PrintPixelValue().
|
protectedinherited |
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=().
|
protectedinherited |
Definition at line 161 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 173 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 181 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 169 of file ImageCanvas.hh.
|
staticprotectedinherited |
|
protectedinherited |
Definition at line 182 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 185 of file ImageCanvas.hh.
Referenced by BIAS::ImageCanvasCheckerboardExtract::RefreshDrawIm_(), and BIAS::ImageCanvasRectangularSelection::RefreshDrawImage_().
|
protectedinherited |
Definition at line 170 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 183 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 183 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 179 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 179 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 153 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 154 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 152 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 156 of file ImageCanvas.hh.
Referenced by BIAS::ImageCanvasCheckerboardExtract::RefreshDrawIm_(), BIAS::ImageCanvasRectangularSelection::RefreshDrawImage_(), and BIAS::ImageCanvasRectangularSelection::SelectRectangle().
|
protectedinherited |
Definition at line 164 of file ImageCanvas.hh.
Referenced by BIAS::ImageCanvasRectangularSelection::SelectRectangle().
|
protectedinherited |
Definition at line 157 of file ImageCanvas.hh.
Referenced by BIAS::ImageCanvasCheckerboardExtract::DrawCheckerboardCorners_(), BIAS::ImageCanvasRectangularSelection::DrawRectangle_(), and BIAS::ImageCanvasCheckerboardExtract::SelectCheckerboardCorners().
|
protectedinherited |
Definition at line 160 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 158 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 165 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 177 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 178 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 175 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 175 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 168 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 186 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 176 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 182 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 164 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 163 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 162 of file ImageCanvas.hh.