DIPviewer module
dip::viewer namespace

Contains all functionality for DIPviewer.

Contents

Classes

class ControlViewPort
Allows the user to control how the image is displayed.
class GLFWManager
Simple GLFW window manager.
class GLUTManager
Simple GLUT window manager.
class HistogramViewPort
Controls grey-value mapping range and shows color mapping.
class ImageView
class ImageViewer
Non-interactive 2D RGB image viewer.
class LinkViewPort
Handles viewer linking.
class Window
Simple GL window
class Manager abstract
Simple window manager.
class SliceView
class SliceViewer
Interactive nD tensor image viewer.
class StatusViewPort
Displays the Viewer‘s status.
class TensorViewPort
Allows the user to control which tensor elements are visualized.
struct ViewingOptions
Model that determines the SliceViewer‘s behavior
class View
Displays a view of the ViewingOptions model
class ViewPort
Handles interaction in a certain display area to control the ViewingOptions model
class Viewer abstract
A Window for viewing a dip::Image

Aliases

typedef std::shared_ptr<Window> WindowPtr
Shared pointer to a Window
typedef std::pair<dip::dfloat, dip::dfloat> FloatRange
Specifies a range of values between a lower and upper limit
typedef std::vector<FloatRange> FloatRangeArray
Specifies an array of ranges (typically one per tensor element)

Functions

auto Show(dip::Image const& image, dip::String const& title = "", dip::uint width = 0, dip::uint height = 0) -> std::shared_ptr<SliceViewer>
Show an image in the slice viewer.
auto ShowSimple(dip::Image const& image, dip::String const& title = "", dip::uint width = 0, dip::uint height = 0) -> std::shared_ptr<ImageViewer>
Show a 2D grey-value or RGB image, of type dip::DT_UINT8.
void Spin()
Wait until all windows are closed.
void Draw()
Process user event queue.
void CloseAll()
Close all open windows.
template<typename T>
auto rangeMap(T val, double offset, double scale, ViewingOptions::Mapping mapping) -> dip::dfloat
Maps an image grey-value onto [0,255]
template<typename T>
auto rangeMap(T val, dip::viewer::ViewingOptions const& options) -> dip::dfloat
Maps an image grey-value onto [0,255]
template<typename T>
auto to_string(dip::DimensionArray<T> array) -> std::string
String conversion for dip::DimensionArray
void ApplyViewerColorMap(dip::Image& in, dip::Image& out, dip::viewer::ViewingOptions& options)
Applies the colormap defined by the ViewingOptions