diff --git a/Readme.md b/Readme.md index 16ae647..0b2f28d 100644 --- a/Readme.md +++ b/Readme.md @@ -376,7 +376,7 @@ It is possible to apply transformations to values. These transformations are ava #### Image Resize -Following transformation sequence resizes images by the factor of 8, sets the value range to [400...4000], uses the *temperature* color model, and provides the image as a base64 encoded string. +The following transformation sequence resizes images by the factor of 8, sets the value range to [400...4000], uses the *temperature* color model, and provides the image as a base64 encoded string. ```json @@ -439,23 +439,29 @@ Applying an image resize transformation has the advantage that the computation i #### Value Sampling -Following transformation sequence resizes images by the factor of 4, filters all values below 200 (considers values below 200 as noise), and provides the image in the raw format. +The following transformation sequence resizes images by the factor of 4, filters all values below 200 (considers values below 200 as noise), and provides the image in the raw format. This transformation could potentially also be used for other value forms than images. ```json -"valueTransformation":{ - "valueSampler":{ - "downSampleFactor":4, - "valueAggregation":"first-value" - }, - "valueFunctions":[ - { - "min":200.0, - "mapTo":0.0 - } - ] -} +"valueTransformations":[ + { + "pattern":"Image", + "backend":"sf-imagestorage", + "sequence":[ + "valueSampler":{ + "downSampleFactor":4, + "valueAggregation":"first-value" + }, + "valueFunctions":[ + { + "min":200.0, + "mapTo":0.0 + } + ] + ] + } +] ``` - **valueSampler**: The value sampling operation.