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 dip::viewer::Viewer’s status.
class TensorViewPort
Allows the user to control which tensor elements are visualized.
struct ViewingOptions
Model that determines the dip::viewer::SliceViewer’s behavior
class View
Displays a view of the dip::viewer::ViewingOptions model
class ViewPort
Handles interaction in a certain display area to control the dip::viewer::ViewingOptions model
class Viewer abstract
A Window for viewing a dip::Image

Aliases

using WindowPtr = std::shared_ptr<Window>
Shared pointer to a Window
using FloatRange = std::pair<dip::dfloat, dip::dfloat>
Specifies a range of values between a lower and upper limit
using FloatRangeArray = std::vector<FloatRange>
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, dip::viewer::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 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 dip::viewer::ViewingOptions