Skip to main content

Image Enhancement Parameters

Viesus uses a JSON-style configuration file to control image enhancement parameters. This document describes all available parameters organized by configuration sections.


Global Parameters

Global parameters control enhancement algorithms applied to the entire image. They are located in the GPars section of the configuration file.

Enhancement Strength Parameters

VIESUS automatically calculates an individual correction for each image. The following parameters influence how strong the correction is applied. The parameters can be interpreted to apply more or less application of the calculated correction.

ParameterRangeDefaultDescription
brstrength0.0 to 1.00.5Brightness correction (most visible on underexposed images)
ccstrength0.0 to 1.00.5Color correction (removes color casts)
shplocalstrength0.0 to 1.00.5Local sharpening strength (visible in foliage, less in sky regions)
nrmonostrength0.0 to 1.00.5Noise reduction strength for monochrome images
nrstrength0.0 to 1.00.5Noise reduction strength for color images
gastrength0.0 to 1.00.5Grain addition strength (reduces banding/posterization)

Specialized Enhancement Parameters

ParameterRangeDefaultDescription
rerstrength0.0 to 1.01.0Red-eye reduction (higher values increase detection but also false positives)
fdstrength0.0 to 4.00.5Face detection influences the sizes of detected faces. Higher values look for smaller faces at the cost of execution time. Higher values may be needed for group shots with many smaller faces.
eyestrength0.0 to 1.00.5Eye detection strictness for red-eye correction
frstrength0.0 to 1.00.3Face reconstruction strength for smaller faces
blurstrength0.0 to 1.00.0Background blur/computational bokeh strength
srstrength0.0 to 1.00.9Super resolution blending strength with default upscaling
sfstrength0.0 to 1.00.25Small face reconstruction importance (0.25-0.50 recommended)
dastrength0.0 to 1.00.5Dark scene/night shot brightness correction strength

Manual Correction Parameters

Manual corrections are static and are applied in disregard of the results of the image analysis at the end of the automatic processing of the images. Changes to these parameters should be done carefully.

ParameterRangeDefaultDescription
brightness-1.0 to 1.00.0Global brightness adjustment
contrast-1.0 to 1.00.0Global contrast adjustment
saturation-1.0 to 1.00.0Global saturation adjustment
b-1.0 to 1.00.0Blue channel color balance adjustment
g-1.0 to 1.00.0Green channel color balance adjustment
r-1.0 to 1.00.0Red channel color balance adjustment
shpglobalstrength0.0 to 1.00.0Global sharpening strength

Local Parameters

Local parameters control corrections applied to specific image regions and are located in the LPars section of the configuration file.

ParameterRangeDefaultDescription
highlightfac0.0 to 1.00.5Highlight region correction factor
shadowfac0.0 to 1.00.5Shadow region correction factor
colorfac0.0 to 1.00.5Color-specific region correction factor
skintoneadjfac0.0 to 1.00.2Saturation reduction in face regions (prevents "glowing" faces)
addflashfac0.0 to 1.00.5Adaptive shadow highlighting for faces (0.3 recommended)

Color-Specific Adjustments

The parameters influence specific color regions that are considered important for image quality. For each of the color regions skin, sky and vegetation individual adjustments are supported. They are located in the subsections Lpars.skin, Lpars.sky and Lpars.veg.

Local Color Correction Parameters

ParameterRangeDefaultDescription
huerotation-10 to 100.0Hue rotation for the specific color region
saturation-1.0 to 1.00.0Saturation adjustment for the specific color region
brightness-1.0 to 1.00.0Brightness adjustment for the specific color region
contrast-1.0 to 1.00.0Contrast adjustment for the specific color region
strength0.0 to 1.01.0Overall strength of adjustments for the specific color region

Configuration Parameters

[Config] Section

Controls which processing stages are enabled in the enhancement pipeline.

ParameterValuesDefaultDescription
ARmode0 .. 21Artifact removal: 0=disabled, 1=Automatic, 2=Always
Enhancemode0 .. 31Enhancement mode: 0=none, 1=normal, 2=no enhance/no manual CC, 3=normal/no manual CC
RERmode0, 10Red-eye reduction: 0=disabled, 1=safe mode
FDmode0 .. 31Face detection: 0=off, 1=normal, 2=full analysis, 3=blur faces
SHPmode0, 11Local sharpening: 0=disabled, 1=enabled
NoiseRedMode0 .. 20Noise reduction: 0=off, 1=auto profiling, 2=AI model
SKIPmode0, 11Skip artificial images: 0=skip, 1=enhance all
WFmode0, 10White fix mode: 0=disabled, 1=enabled
FRmode0 .. 31Face reconstruction: 0=off, 1=default, 2=mixed, 3=fast
AFFmode0, 10Adaptive face flash: 0=disabled, 1=enabled
ProcessingSequence0 .. 30Processing order: 0=default, 1=resize after, 2=resize before, 3=red-eye first
GAmode0, 10Grain addition: 0=disabled, 1=enabled
BGmode0 .. 30Background handling: 0=off, 1=alpha, 2=color replace, 3=image replace
BGBlurmode0, 10Background blurring: 0=disabled, 1=enabled
BGBalmode0 .. 30Background balancing: 0=off, 1=to first, 2=strict, 3=to parameters

Background Handling

[Background] Section

Configures background replacement and manipulation features.

ParameterTypeDefaultDescription
ReplacePathString-Path to replacement background image
backgroundR0-255255Red component for background color replacement
backgroundG0-255255Green component for background color replacement
backgroundB0-255255Blue component for background color replacement
balanceH-1.0 to 1.00.0Hue balance adjustment for background
balanceS-1.0 to 1.00.0Saturation balance adjustment for background
balanceV-1.0 to 1.00.0Value balance adjustment for background

Resizing Configuration

[Resize] Section

Controls image resizing and super-resolution parameters.

ParameterTypeDefaultDescription
ResizeOn0, 11Enable/disable resizing
ResizeFacDetMode0, 1, 2, 31Size calculation mode: 0=factor, 1=small side, 2=width, 3=height
ResizePixSizeInteger6000Target pixel size (depends on ResizeFacDetMode)
ResizeFactorFloat4.0Resize factor (depends on ResizeFacDetMode)
ResizeMode0-95Resize algorithm (see table below)
SupResThreshFloat2.0Super-resolution threshold factor
SRNoiseInjection0, 10Inject noise before super-resolution

Resize Mode Values

ValueMethodDescription
0DefaultStandard default resizing
1BicubicBicubic interpolation
2BiquadraticBiquadratic interpolation
3BilinearBilinear interpolation
4Nearest NeighborNearest neighbor interpolation
5Super Resolution 4xAI-based 4x super-resolution
6Default No Super ResolutionDefault without super-resolution
7Super Resolution 2x/4xAI-based 2x and 4x super-resolution
8Super Resolution 2x/4x FastFast AI-based 2x and 4x super-resolution
9Super Resolution 4x FastFast AI-based 4x super-resolution

Color Management

[ICCProfiles] Section

Controls ICC color profile handling.

ParameterTypeDefaultDescription
OutputProfileMode0 .. 20Profile mode: 0=sRGB, 1=same as input, 2=custom profile
OutputProfilePathString-Path to custom ICC profile (when mode=2)

Other Settings

[Other] Section

Miscellaneous output and processing options.

ParameterTypeDefaultDescription
WriteResultFiles0, 10Create Excel result files
JpegComprQuality1-10095JPEG compression quality
DPIResolutionSaveDefaultFloat72.0Default DPI value
DPIResolutionSaveMode0-52DPI handling mode (see table below)
ForceToMonochrome0, 10Force monochrome output
MonochromeToneR0.0 to 1.00.0Red tone for monochrome/sepia effects
MonochromeToneG0.0 to 1.00.0Green tone for monochrome/sepia effects
MonochromeToneB0.0 to 1.00.0Blue tone for monochrome/sepia effects
ManualShadowFac0.0 to 1.00.0Manual shadow factor override

DPI Resolution Save Modes

For image formats that allow saving the actual output resolution used to interpret the image pixel dimensions, the following parameter values influence how VIESUS handles it.

ModeDescription
0Save always and keep DPI value on resize
1Save only if available and keep DPI on resize
2Save default value to all images
3Never save DPI information
4Save always - keep image size on resize in cm/inch
5Save only if available - keep image size on resize in cm/inch

Portrait Auto Cropping

[AutoCrop] Section

Controls automatic cropping based on facial detection.

ParameterTypeDefaultDescription
HeadYawCoeffFloat0.666667Coefficient for head yaw adjustment
HeadPitchCoeffFloat0.750000Coefficient for head pitch adjustment
HeadroomFixed0, 11Use fixed headroom calculation
HeadroomUnitInteger0Headroom unit type
ImageToHeadRatioFloat0.481635Ratio of image to head size
HeadroomLeftFloat0.106061Left side headroom
HeadroomFloat0.106061General headroom
CropModeHeadroomFloat0.000000Headroom for crop mode
AspectHeightFloat1.000000Target aspect ratio height
AspectWidthFloat1.000000Target aspect ratio width
CropModePortraitInteger2Portrait cropping mode
AdaptAspectRatioToFace0, 11Adapt aspect ratio based on face detection
AspectRatioInteger0Fixed aspect ratio mode
CropModeInteger0General cropping mode

Usage Notes

  • Default values of 0.5 for strength parameters provide a balanced starting point for most automatic applications
  • Face-related features should be used with caution in automated workflows
  • Background manipulation modes require manual result verification
  • Super-resolution modes significantly increase processing time but improve quality for upscaling scenarios