Image

Constructors

this
this(Image!N img)

from other image

this
this(Image!N img)

from other image

this
this(Header hdr, void[] data)

from header and data

this
this(T[N] sz, ElemInfo pt, void[] data)

from size, element info and data

this
this(T[N] sz, DataType dt, size_t ch, void[] data)

from size, data type, channel count and data

this
this(Image!(N - 1) img, size_t dim)
Undocumented in source.

Postblit

this(this)
this(this)

copy ctor

Members

Functions

clear
void clear()

fill data zeros

dump
immutable(void[]) dump()
index
size_t index(T[Z] crd)

return line index by coordinate

pixel
T pixel(C[Z] crd)
const(T) pixel(C[Z] crd)

access to pixel

Properties

dup
auto dup [@property getter]

get copy of image

header
auto header [@property getter]

get header struct copy

idup
auto idup [@property getter]

get immutable copy of image

info
auto info [@property getter]

get info

info
ElemInfo info [@property setter]

set info

mapAs
T[] mapAs [@property getter]
const(T)[] mapAs [@property getter]

cast data to T[]

size
auto size [@property getter]

get size

size
V size [@property setter]

set size

Static functions

load
auto load(immutable(void[]) rawdata)

Structs

Header
struct Header

Templates

CIV
template CIV(V)

is compatible image vector

Variables

data
void[] data;

Meta