Viewer class
A Window for viewing a dip::Image
Contents
- Reference
Base classes
-
class dip::
viewer:: Window - Simple GL window more...
Derived classes
-
class dip::
viewer:: ImageViewer - Non-interactive 2D RGB image viewer. more...
-
class dip::
viewer:: SliceViewer - Interactive nD tensor image viewer. more...
Functions
- auto image() -> dip::Image const& pure virtual
- Returns the
dip::Imagebeing visualized, converted to real valued. more... - void lock()
- Lock the viewer. Necessary before making programmatic changes.
- auto name() -> std::string const& virtual
- Returns the
Viewer’s name - auto options() -> dip::viewer::ViewingOptions& pure virtual
- Returns the
Viewer’s model more... - auto original() -> dip::Image const& pure virtual
- Returns the
dip::Imagebeing visualized. more... - void setImage(dip::Image const& image) pure virtual
- Sets the image to be visualized. more...
- void setWindowTitle(char const* name) virtual
- Set window title, in addition to the
Viewer’s name - void unlock()
- Unlock the viewer.
Function documentation
dip::viewer::ViewingOptions& options( ) pure virtual
Returns the Viewer’s model
Only call or change this under lock.
Example usage:
{ dip::viewer::Viewer::Guard(*viewer); viewer->options().mapping_range_.first = 0; }
dip::Image const& image( ) pure virtual
Returns the dip::Image being visualized, converted to real valued.
Only call this under lock.
Example usage:
{ dip::viewer::Viewer::Guard(*viewer); dip::Image image = viewer->image(); }
dip::Image const& original( ) pure virtual
Returns the dip::Image being visualized.
Only call this under lock.
Example usage:
{ dip::viewer::Viewer::Guard(*viewer); dip::Image image = viewer->original(); }
void setImage( dip::Image const& image) pure virtual
Sets the image to be visualized.
Only call this under lock.
Example usage:
{ dip::viewer::Viewer::Guard(*viewer); viewer->setImage(image); }
std::string const& name( ) virtual
Returns the Viewer’s name
void setWindowTitle( char const* name) virtual
Set window title, in addition to the Viewer’s name
void lock( )
Lock the viewer. Necessary before making programmatic changes.
void unlock( )
Unlock the viewer.