Skip to main content

Prefilters

Prefilters process images before and after augmentation to normalize input data and improve model performance. They are configured in the Prefilters tab.

Prefilter View

The right panel shows the selected filter's settings and a single-image preview. The bottom-left panel shows a preview of the complete pipeline output.

Data Processing Pipeline

Filters are organized into sequential pipeline stages:

StageDescription
BeginInitial Resize and Resolution Filter — normalizes image dimensions
Before AugmentationColor correction, cropping, and other preprocessing
Static AugmentationsFixed-order augmentations applied first
Dynamic AugmentationsUser-orderable augmentations (can be applied multiple times)
After AugmentationPost-augmentation filters (e.g., frequency filtering, thresholding)
EndChannel Filter — removes individual color channels

Resolution Filters

Initial Resize

Initial Resize

Normalizes all images to a uniform size. Options:

  • Stretch — scales images to target dimensions (may distort aspect ratio)
  • Padding — adds black borders to preserve aspect ratio

Use the auto-size button (right of Begin) to match the largest image in the dataset.

Resolution Filter

Resolution at 50%Resolution at 10%

Reduces image resolution by a configurable factor. Lower resolution decreases inference time and can improve accuracy when fine detail is irrelevant. Resolution must remain sufficient to preserve key features.


Basic Filters

Crop Filter

Crop Filter

Crops images to a defined region of interest, removing irrelevant areas (e.g., conveyor belt surroundings).

Frequency Filter

Low-pass FilterHigh-pass Filter
TypeEffect
Low-passPasses low frequencies, removes sharp edges → blurred output
High-passRemoves uniform color areas, highlights edges

Sharpen Filter

Before sharpeningAfter sharpening

Increases edge contrast to emphasize object boundaries.

Color Filter

Color Filter originalColor Filter adjusted

Adjustable parameters:

ParameterEffect
BrightnessOverall lightness
ContrastDifference between light and dark areas
SaturationColor intensity
HueColor shift
GammaNon-linear brightness curve

Advanced Filters

Normalize Filter

Rescales pixel values so the darkest pixel maps to 0 (black) and the brightest to 255 (white). Useful for datasets with inconsistent exposure.

Inverse Filter

Inverts all pixel values (black ↔ white). Neural networks tend to perform slightly better detecting light objects on dark backgrounds.

RGB ↔ HSV Filters

FilterDirectionUse Case
RGB to HSVRGB → HSVEnables hue-based thresholding for color segmentation
HSV to RGBHSV → RGBConverts back after HSV-domain processing

Standardization Filter

Performs per-image standardization equivalent to tf.image.per_image_standardization:

  1. Compute the global mean across all pixels and channels
  2. Compute the adjusted standard deviation: adjusted_std = max(std, 1 / sqrt(N)) where N = width × height × channels
  3. Standardize: (x − mean) / adjusted_std
  4. Clip to [−clipSigma, +clipSigma]
  5. Remap to [0, 1]: (x + clipSigma) / (2 · clipSigma)
ParameterDescription
Clip SigmaClipping range in standard deviations applied after standardization. Lower values (e.g. 1.5) increase contrast but clip more outliers. Higher values (e.g. 3.0) preserve more dynamic range with less contrast. Default: 2.0.

Threshold Filter

Threshold Filter inputThreshold Filter output

Segments images by pixel intensity. Supports single-threshold and dual-threshold modes.

Single-threshold operations:

OperationBelow ThresholdAbove Threshold
Binary→ Black→ White
To Zero→ BlackUnchanged
To One→ WhiteUnchanged
To Zero InvertedUnchanged→ Black
To One InvertedUnchanged→ White

Dual-threshold mode: Operations apply to pixels between or outside the two thresholds (behavior depends on operation type).

Channel selection: Threshold can be evaluated on the average of all channels or a single channel. When using a single channel, the operation can target that channel only or all channels. Combines effectively with the RGB to HSV filter for hue-based extraction.

Channel Filter

Channel Filter — all channelsChannel Filter — single channel

Removes or isolates individual color channels. Useful when a channel contains only noise or no discriminative information.

Christopher - Development Support

Need Help? We're Here for You!

Christopher from our development team is ready to help with any questions about ONE AI usage, troubleshooting, or optimization. Don't hesitate to reach out!

Our Support Email:support@one-ware.com