@@ -420,16 +420,16 @@ indicate `dim_order = ["batch", "channel", "height", "width"]`.
420420
421421Select one option from:
422422
423- | ` type ` < br >( [ Scaling Enum ] ( #scaling-enum ) ) | Required Properties | Scaling Operation |
424- | ------------------------------------------- | -------------------------------------------------| ------------------------------------------|
425- | ` min-max ` | ` minimum ` , ` maximum ` | $(data - minimum) / (maximum - minimum)$ |
426- | ` z-score ` | ` mean ` , ` stddev ` | $(data - mean) / stddev$ |
427- | ` clip ` | ` minimum ` , ` maximum ` | $\min(\max(data, minimum), maximum)$ |
428- | ` clip-min ` | ` minimum ` | $\max(data, minimum)$ |
429- | ` clip-max ` | ` maximum ` | $\min(data, maximum)$ |
430- | ` offset ` | ` value ` | $data - value$ |
431- | ` scale ` | ` value ` | $data / value$ |
432- | ` processing ` | [ Processing Expression] ( #processing-expression ) | * according to ` processing:expression ` * |
423+ | ` type ` | Required Properties | Scaling Operation |
424+ | --------------| -------------------------------------------------| ------------------------------------------|
425+ | ` min-max ` | ` minimum ` , ` maximum ` | $(data - minimum) / (maximum - minimum)$ |
426+ | ` z-score ` | ` mean ` , ` stddev ` | $(data - mean) / stddev$ |
427+ | ` clip ` | ` minimum ` , ` maximum ` | $\min(\max(data, minimum), maximum)$ |
428+ | ` clip-min ` | ` minimum ` | $\max(data, minimum)$ |
429+ | ` clip-max ` | ` maximum ` | $\min(data, maximum)$ |
430+ | ` offset ` | ` value ` | $data - value$ |
431+ | ` scale ` | ` value ` | $data / value$ |
432+ | ` processing ` | [ Processing Expression] ( #processing-expression ) | * according to ` processing:expression ` * |
433433
434434When a scaling ` type ` approach is specified, it is expected that the parameters necessary
435435to perform their calculation are provided for the corresponding input dimension data.
@@ -458,16 +458,14 @@ the [Scaling Object](#scaling-object) of the respective input dimension, as show
458458}
459459```
460460
461- For operations such as L1 or L2 normalization, a [ Processing Expression] ( #processing-expression ) should also be employed.
461+ For operations such as L1 or L2 normalization, [ Processing Expression] ( #processing-expression ) should also be employed.
462462This is because, depending on the [ Model Input] ( #model-input-object ) dimensions and reference data, there is an
463463ambiguity regarding "how" and "where" such normalization functions must be applied against the input data.
464464A custom mathematical expression should provide explicitly the data manipulation and normalization strategy.
465465
466466In situations of very complex ` scaling ` operations, which cannot be represented by any of the previous definition,
467467a ` pre_processing_function ` should be used instead (see [ Model Input Object] ( #model-input-object ) ).
468468
469- [ opencv-normalization-flags ] : https://docs.opencv.org/4.x/d2/de8/group__core__array.html#gad12cefbcb5291cf958a85b4b67b6149f
470-
471469#### Resize Enum
472470
473471Select one option from:
@@ -486,7 +484,7 @@ See [OpenCV - Interpolation Flags][opencv-interpolation-flags]
486484for details about the relevant methods. Equivalent methods from other packages are applicable as well.
487485
488486If none of the above values applies, ` null ` (literal, not string) can be used instead.
489- If a custom rescaling operation, or a combination of operations (with or without [ Normalization ] ( #normalize-enum ) ),
487+ If a custom rescaling operation, or a combination of operations (with or without [ Scaling ] ( #scaling-object ) ),
490488must be defined instead, consider using a [ Processing Expression] ( #processing-expression ) reference.
491489
492490[ opencv-interpolation-flags ] : https://docs.opencv.org/4.x/da/d54/group__imgproc__transform.html#ga5bb5a1fea74ea38e1a5445ca803ff121
0 commit comments