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 ImageViewer
Non-interactive 2D RGB image viewer.
class LinkViewPort
Handles viewer linking.
class Manager
Simple window manager.
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.
class View
Displays a view of the ViewingOptions model.
class Viewer
A Window for viewing a dip::Image
struct ViewingOptions
Model that determines the SliceViewer's behavior.
class ViewPort
Handles interaction in a certain display area to control the ViewingOptions model.
class Window
Simple GL window.

Typedefs

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

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, const ViewingOptions& 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, ViewingOptions& options)
Applies the colormap defined by the ViewingOptions
auto Show(Image const& image, String const& title = "", dip::uint width = 0, dip::uint height = 0) -> std::shared_ptr<SliceViewer>
Show an image in the slice viewer.
auto ShowSimple(Image const& image, 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.

Typedef documentation

typedef std::pair<dip::dfloat, dip::dfloat> dip::viewer::FloatRange

Specifies a range of values between a lower and upper limit.

typedef std::vector<FloatRange> dip::viewer::FloatRangeArray

Specifies an array of ranges (typically one per tensor element)

Function documentation

template<typename T>
dip::dfloat dip::viewer::rangeMap(T val, double offset, double scale, ViewingOptions::Mapping mapping)

Maps an image grey-value onto [0,255].

template<typename T>
dip::dfloat dip::viewer::rangeMap(T val, const ViewingOptions& options)

Maps an image grey-value onto [0,255].

template<typename T>
std::string dip::viewer::to_string(dip::DimensionArray<T> array)

String conversion for dip::DimensionArray

void dip::viewer::ApplyViewerColorMap(dip::Image& in, dip::Image& out, ViewingOptions& options)

Applies the colormap defined by the ViewingOptions