Non-interactive 2D RGB image viewer.
- typedef std::shared_ptr<ImageViewer> Ptr
- A pointer to an
static dip::viewer::ImageViewer::Ptr Create(dip::Image const& image, std::string name = "ImageViewer", dip::uint width = 0, dip::uint height = 0)
Construct a new
As the constructor is protected, this is the only way to create an
Note that the ImageViewer only supports 8-bit 2D RGB images.
height is 0, it is computed from the other value so as to
preserve the image’s aspect ratio. If both are zero, the image is displayed in its
natural size (one image pixel to one screen pixel) but scaled down if otherwise the
window would exceed 512 pixels along either dimension.
manager.createWindow( dip::viewer::ImageViewer::Create( image ));