## Module: Extract Slices (
)

### Description:

> This is an experimental module from the Xtra Library: https://xtras.amira-avizo.com.

> This module allows extracting a set of slices from the input volume. It generates a volume as output. The set of slice numbers to be extracted can be randomly generated, or manually provided. The same set of slice numbers can be used to extract from a second dataset - typically, to extract slices from a grayscale and a label field.

### Connections:

> Data `[required]`
> Input dataset from which slices will be extracted.

### Ports:

> Console
> Opens the Python Script Object console of the module as the active console window.

> Slice Selection
> The total number of slices to be extracted is nb slices. The random selection is obtained by a random permutation of the slices, and extraction of the first ones. If nb intervals is more than 1, a similar process is applied for each slab of data, the slabs being of equal dimensions in the z directions.

> List of Slices

> - New Random List allows generating a new random list of slice numbers to be extracted, using the rules described in the Slice Selection port.
> - Randomize Current List performs a random permutation on the current list.
> - Clear clears the list.

> Input List
> List the slice indices to be extracted. This list is not saved when saving the project file, but it may be saved in a text file, and restored by copy-paste. You may also input manually the slice numbers you desired, using the same format with space separated integers within brackets.