Image abstraction type.
Bit depth of a pixel in an image.
Image (pixel) format.
Convert a ndslice object to an Image, with defined image format.
Convert ndslice object into an image, with default format setup, regarding to slice dimension.
Image image = new Image(32, 32, ImageFormat.IF_MONO, BitDepth.BD_32); Slice!(Contiguous, [3], float*) slice = image.sliced!float; // slice image data, considering the data is of float type. assert(image.height == slice.length!0 && image.width == slice.length!1); assert(image.channels == 1); image = slice.asImage(ImageFormat.IF_MONO); // create the image back from sliced data.
Copyright Relja Ljubobratovic 2016.
$(LINK3 http://www.boost.org/LICENSE_1_0.txt, Boost Software License - Version 1.0).
Module implements Image utility class, and basic API for image manipulation.
Image class encapsulates image properties with minimal functionality. It is primarily designed to be used as I/O unit. For any image processing needs, image data can be sliced to mir.ndslice.slice.Slice.