## Module: Random Landmarks (
)

### Description:

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

> This module can either generate a random landmarks, or to randomize the indices of an input Landmark Set.

> This module is intended to work with the other Xtras Extract Patches and MaskforPatches for preparing data for training Deep Learning models.

### Connections:

> Data `[required]`
> It is possible to connect to an Image, a ROI Box, or a Landmark Set. If a Landmark Set is provided, it will be possible to generate a new one with the same points but randomized indices. Otherwise, random landmarks can be generated in the bounding box defined by the connected dataset.

### Ports:

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

> Number of Landmarks
> The total number of landmarks to be generated.

> Nb Layers
> The landmarks positions are randomly drawn within the bounds defined by the bounding box of the input. For each coordinate, an equal number of values will be uniformly drawn from each layer ; which are regularly dividing the bounding box.

> Generate Random Landmarks
> The button allows generating random landmarks according to the rules defined in the ports above.

> Randomize From Input
> This button can only be used if a Landmark Set is connected, and allows generating a randomized version of it: the landmarks positions are kept the same, but their indices are randomly permuted.