Operations on Images#
This section describes the operations that can be performed on images.
See also
Processing Images for more information on image processing features, or Analysis features on Images for information on analysis features on images.

Screenshot of the “Operations” menu.#
When the “Image Panel” is selected, the menus and toolbars are updated to provide image-related actions.
The “Operations” menu allows you to perform various operations on the current image or group of images. It also allows you to extract profiles, distribute images on a grid, or resize images.
Basic arithmetic operations#
Operation |
Description |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
Operations with a constant#
Create a new image which is the result of a constant operation on each selected image:
Operation |
Equation |
---|---|
|
|
|
|
|
|
|
where
Real and imaginary parts#
Operation |
Description |
---|---|
|
|
|
|
|
Data type conversion#
The “Convert data type” action allows you to convert the data type
of the selected images. For integer data types, the conversion is done by clipping
the values to the new data type range before effectively converting the data type.
For floating point data types, the conversion is straightforward.
Note
Data type conversion uses the cdl.algorithms.datatypes.clip_astype()
function which relies on numpy.ndarray.astype()
function with
the default parameters (casting=’unsafe’).
Basic mathematical functions#
Function |
Description |
---|---|
|
|
|
|
Log10(z+n) |
Other operations#
Flat-field correction#
Create a new image which is flat-field correction of the two selected images:
where
Note
Raw image and flat field image are supposedly already corrected by performing a dark frame subtraction.
Flip or rotation#
Create a new image by flipping or rotating the data of the selected image. The image may be flipped horizontally, vertically, or diagonally (transposition). It may be rotated by 90°, 270° or any user-defined value.
Intensity profiles#
- Line profile
Extract an horizontal or vertical profile from each selected image, and create new signals from these profiles.
Line profile dialog. Parameters may also be set manually (“Edit profile parameters” button).#
- Segment profile
Extract a segment profile from each selected image, and create new signals from these profiles.
- Average profile
Extract an horizontal or vertical profile averaged over a rectangular area, from each selected image, and create new signals from these profiles.
Average profile dialog: the area is defined by a rectangle shape. Parameters may also be set manually (“Edit profile parameters” button).#
- Radial profile extraction
Extract a radial profile from each selected image, and create new signals from these profiles.
The following parameters are available:
Parameter
Description
Center
Center around which the radial profile is computed: centroid, image center, or user-defined
X
X coordinate of the center (if user-defined), in pixels
Y
Y coordinate of the center (if user-defined), in pixels
Distribute images along a grid#
Feature |
Description |
---|---|
|
Distribute selected images on a regular grid |
|
Reset the positions of the selected images to first image (x0, y0) coordinates |