Basic Image AlgorithmS Library
2.8.0
|
provides functionality for selection of rectangle, point, ... More...
#include <Gui/ImageCanvasRectangularSelection.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 () |
ImageCanvasRectangularSelection (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, const wxString &name=AsciiToWx("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... | |
virtual void | OnLeftMouseButton (wxMouseEvent &event) |
virtual void | OnMouseMove (wxMouseEvent &event) |
virtual void | OnPaint (wxPaintEvent &event) |
virtual void | OnRightMouseButton (wxMouseEvent &event) |
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 | SelectRectangle (ICECallbackInterface &obj) |
Call SelectRectangle with an object derived from ICECallbackInterface. More... | |
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)) |
~ImageCanvasRectangularSelection () | |
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 | DrawRectangle_ (int tl[2], int br[2]) |
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 | OnMouseEnter (wxMouseEvent &event) |
virtual void | OnMouseLeave (wxMouseEvent &event) |
virtual void | OnMouseWheel (wxMouseEvent &event) |
virtual void | OnSize (wxSizeEvent &event) |
virtual void | PaintRoiOnDc_ (wxBufferedPaintDC &dc) |
void | RefreshDrawImage_ () |
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_ |
int | BottomRight_ [2] |
ICECallbackInterface * | CallbackObj_ |
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_ |
int | NumLeftClicks_ |
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 | SelectRectangle_ |
bool | ShowScaled_ |
wxString | Title_ |
int | TopLeft_ [2] |
bool | UseHighScaleQuality_ |
unsigned | width_ |
wxMutex | wxbitmap_mutex_ |
wxImage * | wximage_ |
wxImage * | wxRoiImage_ |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
provides functionality for selection of rectangle, point, ...
Definition at line 43 of file ImageCanvasRectangularSelection.hh.
ImageCanvasRectangularSelection::ImageCanvasRectangularSelection | ( | 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 , |
||
const wxString & | name = AsciiToWx("ScrolledWindow") |
||
) |
Definition at line 26 of file ImageCanvasRectangularSelection.cpp.
References BottomRight_, CallbackObj_, NumLeftClicks_, SelectRectangle_, and TopLeft_.
ImageCanvasRectangularSelection::~ImageCanvasRectangularSelection | ( | ) |
Definition at line 45 of file ImageCanvasRectangularSelection.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 |
|
protected |
Definition at line 146 of file ImageCanvasRectangularSelection.cpp.
References BIAS::ImageDraw< StorageType >::RectangleCorners(), RefreshDrawImage_(), and BIAS::ImageCanvas::rgbim_.
Referenced by OnMouseMove().
|
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().
|
protectedvirtualinherited |
Definition at line 503 of file ImageCanvas.cpp.
|
protectedvirtualinherited |
Definition at line 734 of file ImageCanvas.cpp.
|
virtual |
Reimplemented from BIAS::ImageCanvas.
Definition at line 70 of file ImageCanvasRectangularSelection.cpp.
|
protectedvirtualinherited |
Definition at line 673 of file ImageCanvas.cpp.
|
protectedvirtualinherited |
Definition at line 664 of file ImageCanvas.cpp.
|
virtual |
Reimplemented from BIAS::ImageCanvas.
Definition at line 129 of file ImageCanvasRectangularSelection.cpp.
References BottomRight_, DrawRectangle_(), NumLeftClicks_, SelectRectangle_, and TopLeft_.
|
protectedvirtualinherited |
Definition at line 645 of file ImageCanvas.cpp.
|
virtual |
Reimplemented from BIAS::ImageCanvas.
Definition at line 119 of file ImageCanvasRectangularSelection.cpp.
References NumLeftClicks_, and SelectRectangle_.
|
virtual |
Reimplemented from BIAS::ImageCanvas.
Definition at line 105 of file ImageCanvasRectangularSelection.cpp.
References NumLeftClicks_, RefreshDrawImage_(), and SelectRectangle_.
|
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().
|
protected |
Definition at line 163 of file ImageCanvasRectangularSelection.cpp.
References BIAS::ImageBase::CM_RGB, BIAS::ImageConvert::Convert(), BIAS::ImageBase::GetColorModel(), BIAS::ImageCanvas::ImageName_, BIAS::ImageCanvas::origim_, and BIAS::ImageCanvas::Show().
Referenced by DrawRectangle_(), and OnRightMouseButton().
|
inlineinherited |
|
inlineinherited |
void ImageCanvasRectangularSelection::SelectRectangle | ( | ICECallbackInterface & | obj | ) |
Call SelectRectangle with an object derived from ICECallbackInterface.
The function RectangleSelected() should be overloaded in this object. After rectangle selection is finished (2 clicks with left mouse, right button cancels) the function obj.RectangleSelected() is called with top left (tl) and bottom right (br) coordinates.
Definition at line 50 of file ImageCanvasRectangularSelection.cpp.
References CallbackObj_, NumLeftClicks_, BIAS::ImageCanvas::origim_, BIAS::ImageCanvas::origim_mutex_, and SelectRectangle_.
|
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_(), 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.
|
protected |
Definition at line 69 of file ImageCanvasRectangularSelection.hh.
Referenced by ImageCanvasRectangularSelection(), and OnMouseMove().
|
protected |
Definition at line 72 of file ImageCanvasRectangularSelection.hh.
Referenced by ImageCanvasRectangularSelection(), and SelectRectangle().
|
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 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.
|
protected |
Definition at line 68 of file ImageCanvasRectangularSelection.hh.
Referenced by ImageCanvasRectangularSelection(), OnMouseMove(), OnPaint(), OnRightMouseButton(), and SelectRectangle().
|
protectedinherited |
Definition at line 156 of file ImageCanvas.hh.
Referenced by BIAS::ImageCanvasCheckerboardExtract::RefreshDrawIm_(), RefreshDrawImage_(), and SelectRectangle().
|
protectedinherited |
Definition at line 164 of file ImageCanvas.hh.
Referenced by SelectRectangle().
|
protectedinherited |
Definition at line 157 of file ImageCanvas.hh.
Referenced by BIAS::ImageCanvasCheckerboardExtract::DrawCheckerboardCorners_(), 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.
|
protected |
Definition at line 70 of file ImageCanvasRectangularSelection.hh.
Referenced by ImageCanvasRectangularSelection(), OnMouseMove(), OnPaint(), OnRightMouseButton(), and SelectRectangle().
|
protectedinherited |
Definition at line 168 of file ImageCanvas.hh.
|
protectedinherited |
Definition at line 186 of file ImageCanvas.hh.
|
protected |
Definition at line 69 of file ImageCanvasRectangularSelection.hh.
Referenced by ImageCanvasRectangularSelection(), and OnMouseMove().
|
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.