Skip to main content

ClikaRT::processor::ImageProcessOptions

struct

Header: ClikaRT/processor/processor.h

Per-call overrides for ImageProcessor::process / process_batch. Every field is optional: a set field replaces the loaded config's value for THAT call only; an unset field keeps the config. Resolution is field-wise; setting resize does not flip do_resize (mirror of the HuggingFace per-call kwargs). The per-image dynamic-resize path (a target computed from the input image, e.g. an aspect-preserving patch-budget fit) rides resize.

image_mean/image_std must be set together (per-channel, length 1 or 3); both fields OWN their values; assigning from a braced list or a temporary container is safe.

Data members

do_resize

std::optional<bool> do_resize

resize step on/off for this call

Declared in ClikaRT/processor/processor.h, line 70

resize

std::optional<std::pair<std::int64_t, std::int64_t>> resize

exact {height, width} target

Declared in ClikaRT/processor/processor.h, line 71

resample

std::optional<ImageResample> resample

resampling filter override

Declared in ClikaRT/processor/processor.h, line 72

antialias

std::optional<bool> antialias

antialiased-resize override

Declared in ClikaRT/processor/processor.h, line 73

do_center_crop

std::optional<bool> do_center_crop

center-crop step on/off

Declared in ClikaRT/processor/processor.h, line 74

crop

std::optional<std::pair<std::int64_t, std::int64_t>> crop

center-crop {height, width}

Declared in ClikaRT/processor/processor.h, line 75

do_rescale

std::optional<bool> do_rescale

rescale step on/off

Declared in ClikaRT/processor/processor.h, line 76

rescale_factor

std::optional<double> rescale_factor

rescale multiplier override

Declared in ClikaRT/processor/processor.h, line 77

do_normalize

std::optional<bool> do_normalize

normalize step on/off

Declared in ClikaRT/processor/processor.h, line 78

image_mean

std::optional<std::vector<float>> image_mean

per-channel mean (set with image_std; length 1 or 3); owning

Declared in ClikaRT/processor/processor.h, line 79

image_std

std::optional<std::vector<float>> image_std

per-channel std (set with image_mean); owning

Declared in ClikaRT/processor/processor.h, line 80

do_convert_rgb

std::optional<bool> do_convert_rgb

decode-time channel request; no effect on already-decoded tensors

Declared in ClikaRT/processor/processor.h, line 81

do_pad

std::optional<bool> do_pad

detection-pad step on/off

Declared in ClikaRT/processor/processor.h, line 82

pad_to

std::optional<std::pair<std::int64_t, std::int64_t>> pad_to

detection pad {height, width}

Declared in ClikaRT/processor/processor.h, line 83