Preprocessing
This section describes the data processing functionalities available in PlantSeg Interactive. This functionality are available in the Preprocessing
tab in the PlantSeg Interactive GUI.
Widget: Gaussian Smoothing
Apply Gaussian smoothing to an image layer.
- Image: Image layer to apply the smoothing.
- Sigma: Define the size of the gaussian smoothing kernel. The larger the more blurred will be the output image.
Widget: Image Rescaling
Using the From factor
mode, the user can rescale the image by a multiplicate factor.
For example, if the image has a shape (10, 10, 10)
and the user wants to rescale it by a factor of (2, 2, 2)
, the new size will be (20, 20, 20)
.
Rescale an image or label layer.
- Select layer: Layer to apply the rescaling.
- Rescale mode: None
- Rescaling factor: Define the scaling factor to use for resizing the input image.
- Interpolation order: 0 for nearest neighbours (default for labels), 1 for linear, 2 for bilinear.
Using the To layer voxel size
mode, the user can rescale the image to the voxel size of a specific layer.
For example, if two images are loaded in the viewer, one with a voxel size of (0.1, 0.1, 0.1)um
and the other with a voxel size of (0.1, 0.05, 0.05)um
, the user can rescale the first image to the voxel size of the second image.
Rescale an image or label layer.
- Select layer: Layer to apply the rescaling.
- Rescale mode: None
- Reference layer: Rescale to same voxel size as selected layer.
- Interpolation order: 0 for nearest neighbours (default for labels), 1 for linear, 2 for bilinear.
Using the To layer shape
mode, the user can rescale the image to the shape of a specific layer. For example, if two images are loaded in the viewer, one with a shape (10, 10, 10)
and the other with a shape (20, 20, 20)
, the user can rescale the first image to the shape of the second image.
Rescale an image or label layer.
- Select layer: Layer to apply the rescaling.
- Rescale mode: None
- Reference layer: Rescale to same voxel size as selected layer.
- Interpolation order: 0 for nearest neighbours (default for labels), 1 for linear, 2 for bilinear.
Using the To model voxel size
mode, the user can rescale the image to the voxel size of the model.
For example, if the model has been trained with data at voxel size of (0.1, 0.1, 0.1)um
, the user can rescale the image to this voxel size.
Rescale an image or label layer.
- Select layer: Layer to apply the rescaling.
- Rescale mode: None
- Reference model: Rescale to same voxel size as selected model.
- Interpolation order: 0 for nearest neighbours (default for labels), 1 for linear, 2 for bilinear.
Using the To voxel size
mode, the user can rescale the image to a specific voxel size.
Rescale an image or label layer.
- Select layer: Layer to apply the rescaling.
- Rescale mode: None
- Out voxel size: Define the output voxel size. Units are same as imported, (if units are missing default is "um").
- Interpolation order: 0 for nearest neighbours (default for labels), 1 for linear, 2 for bilinear.
Using the To shape
mode, the user can rescale the image to a specific shape.
Rescale an image or label layer.
- Select layer: Layer to apply the rescaling.
- Rescale mode: None
- Out shape: Rescale to a manually selected shape.
- Interpolation order: 0 for nearest neighbours (default for labels), 1 for linear, 2 for bilinear.
Using the Set voxel size
mode, the user can set the voxel size of the image to a specific value. This only changes the metadata of the image and does not rescale the image.
Rescale an image or label layer.
- Select layer: Layer to apply the rescaling.
- Rescale mode: None
- Out voxel size: Define the output voxel size. Units are same as imported, (if units are missing default is "um").
- Interpolation order: 0 for nearest neighbours (default for labels), 1 for linear, 2 for bilinear.
Widget: Image Pair Operations
Apply an operation to two image layers.
- Image 1: First image to apply the operation.
- Image 2: Second image to apply the operation.
- Operation: None
- Normalize input: Normalize the input images to the range [0, 1].
- Clip output: Clip the output to the range [0, 1].
- Normalize output: Normalize the output image to the range [0, 1].