Create Images#

This section describes how to create new images from various mathematical models.

../../_images/i_create.en.png

Screenshot of the “Create” menu.#

When the “Image Panel” is selected, the menus and toolbars are updated to provide image-related actions.

The “Create” menu allows you to create new images from various models (see below).

New image#

Create a new image from various models (supported datatypes: uint8, uint16, int16, float32, float64):

Icon

Model

Equation

../../_images/2d-zero.svg

Zero

\(z[i] = 0\)

../../_images/2d-normal.svg

Normal distribution

\(z[i]\) is normally distributed with configurable mean and standard deviation

../../_images/2d-poisson.svg

Poisson distribution

\(z[i]\) is Poisson distributed with configurable mean

../../_images/2d-uniform.svg

Uniform distribution

\(z[i]\) is uniformly distributed between two configurable bounds

../../_images/2d-gaussian.svg

Gaussian

\(z = A \cdot \exp\left(-\dfrac{\left(\sqrt{\left(x-x_0\right)^2+\left(y-y_0\right)^2}-\mu\right)^2}{2\sigma^2}\right)\)

../../_images/2d-ramp.svg

Ramp

\(z = A (x - x_0) + B (y - y_0) + C\)

../../_images/checkerboard.svg

Checkerboard

Alternating square pattern for calibration and spatial frequency analysis

../../_images/grating.svg

Sinusoidal grating

\(z = A \sin(2\pi(f_x \cdot x + f_y \cdot y) + \varphi) + C\)

../../_images/ring.svg

Ring pattern

Concentric circular rings for radial analysis

../../_images/siemens.svg

Siemens star

Radial spoke pattern for resolution testing

../../_images/2d-sinc.svg

2D sinc

\(z = A \cdot \mathrm{sinc}\left(\dfrac{\sqrt{(x-x_0)^2+(y-y_0)^2}}{\sigma}\right) + C\)

The 2D sinc uses the unnormalized definition \(\mathrm{sinc}(u) = \dfrac{\sin(u)}{u}\), with \(\mathrm{sinc}(0) = 1\), as the cardinal sine signal: it first vanishes at the distance \(\pi \sigma\) from its center.

The Gaussian, ramp, sinusoidal grating, ring pattern, Siemens star and 2D sinc models are computed over a domain \([x_{min}, x_{max}] \times [y_{min}, y_{max}]\). When the Physical coordinates option is enabled (default), this domain defines the image coordinates: the axes show \(x\) and \(y\) as used in the equation, so that centers, widths and spatial frequencies can be read directly on the image (e.g. a sinusoidal grating of frequency \(f_x = 0.1\) shows one period every 10 units along the X axis). When the option is disabled, the image is displayed in pixel coordinates.

Note

Images created with DataLab 1.3 or earlier were displayed in pixel coordinates: they keep these coordinates when their creation parameters are edited or recomputed.