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.
1 Image image = new Image(32, 32, ImageFormat.IF_MONO, BitDepth.BD_32); 2 3 Slice!(Contiguous, [3], float*) slice = image.sliced!float; // slice image data, considering the data is of float type. 4 5 assert(image.height == slice.length!0 && image.width == slice.length!1); 6 assert(image.channels == 1); 7 8 image = slice.asImage(ImageFormat.IF_MONO); // create the image back from sliced data.
$(LINK3 http://www.boost.org/LICENSE_1_0.txt, Boost Software License - Version 1.0).
Copyright Relja Ljubobratovic 2016.
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.