Command-line support for Scalar Field Gaussian/Bilateral filter
Posted: Fri Jan 16, 2026 9:25 am
Hi all,
I would like to ask / propose exposing the existing Scalar Field
Gaussian/Bilateral filter to the command-line interface.
Currently:
- Gaussian and Bilateral filters for Scalar Fields are available in the GUI
(Edit > Scalar fields > Gaussian / Bilateral filter).
- Internally, the functionality already exists
(ScalarFieldTools::applyScalarFieldGaussianFilter, with sigmaSF > 0
behaving as a bilateral filter).
- However, there is no equivalent command-line option to apply this filter.
This makes it difficult to build fully automated pipelines, for example:
- RGB -> Scalar Fields
- Apply Gaussian/Bilateral smoothing per channel (R, G, B)
- Save results without using the GUI or Python bindings.
A possible CLI command could look like:
-SF_BILATERAL_FILTER <radius> <sigmaSpatial> <sigmaSF>
or:
-SF_GAUSSIAN_FILTER <radius> <sigmaSpatial> <sigmaSF>
(where sigmaSF = 0 would behave as pure Gaussian).
If so, is there any other way around it?
Thanks for your time and reply
Radim
I would like to ask / propose exposing the existing Scalar Field
Gaussian/Bilateral filter to the command-line interface.
Currently:
- Gaussian and Bilateral filters for Scalar Fields are available in the GUI
(Edit > Scalar fields > Gaussian / Bilateral filter).
- Internally, the functionality already exists
(ScalarFieldTools::applyScalarFieldGaussianFilter, with sigmaSF > 0
behaving as a bilateral filter).
- However, there is no equivalent command-line option to apply this filter.
This makes it difficult to build fully automated pipelines, for example:
- RGB -> Scalar Fields
- Apply Gaussian/Bilateral smoothing per channel (R, G, B)
- Save results without using the GUI or Python bindings.
A possible CLI command could look like:
-SF_BILATERAL_FILTER <radius> <sigmaSpatial> <sigmaSF>
or:
-SF_GAUSSIAN_FILTER <radius> <sigmaSpatial> <sigmaSF>
(where sigmaSF = 0 would behave as pure Gaussian).
If so, is there any other way around it?
Thanks for your time and reply
Radim