dlib.image.image

Generic image interface and its implementations for integer pixel formats

Members

Aliases

ImageL16
alias ImageL16 = Image!(IntegerPixelFormat.L16)

Specialization of Image for 16-bit luminance pixel format

ImageL8
alias ImageL8 = Image!(IntegerPixelFormat.L8)

Specialization of Image for 8-bit luminance pixel format

ImageLA16
alias ImageLA16 = Image!(IntegerPixelFormat.LA16)

Specialization of Image for 16-bit luminance-alpha pixel format

ImageLA8
alias ImageLA8 = Image!(IntegerPixelFormat.LA8)

Specialization of Image for 8-bit luminance-alpha pixel format

ImageRGB16
alias ImageRGB16 = Image!(IntegerPixelFormat.RGB16)

Specialization of Image for 16-bit RGB pixel format

ImageRGB8
alias ImageRGB8 = Image!(IntegerPixelFormat.RGB8)

Specialization of Image for 8-bit RGB pixel format

ImageRGBA16
alias ImageRGBA16 = Image!(IntegerPixelFormat.RGBA16)

Specialization of Image for 16-bit RGBA pixel format

ImageRGBA8
alias ImageRGBA8 = Image!(IntegerPixelFormat.RGBA8)

Specialization of Image for 8-bit RGBA pixel format

Classes

Image
class Image(IntegerPixelFormat fmt)

SuperImage implementation template for integer pixel formats

ImageFactory
class ImageFactory

All-in-one image factory class

Enums

IntegerPixelFormat
enum IntegerPixelFormat

sRGBa integer pixel formats, 8 and 16 bits per channel

Functions

bilinearPixel
Color4f bilinearPixel(SuperImage img, float x, float y)

Get interpolated pixel value from an image

convert
T convert(SuperImage img)

Convert image to specified pixel format

defaultImageFactory
SuperImageFactory defaultImageFactory()

Get default image factory singleton

image
SuperImage image(uint w, uint h, uint channels, uint bitDepth)

Create an image with specified parameters

region
ImageRegion region(SuperImage img, uint x, uint y, uint width, uint height)

ImageRegion factory function

windows
ImageWindowRange windows(SuperImage img, uint width, uint height)

ImageWindowRange factory function

Interfaces

SuperImage
interface SuperImage

Abstract image interface

SuperImageFactory
interface SuperImageFactory

All-in-one image factory interface

Structs

ImageRegion
struct ImageRegion

Rectangular region of an image that can be iterated with foreach

ImageWindowRange
struct ImageWindowRange

An InputRange of windows (regions around pixels) of an image that can be iterated with foreach

Meta

Authors

Timur Gafarov