From 0ecc8e0992cd84189d76115d5205044654763890 Mon Sep 17 00:00:00 2001 From: Zellweger Christof Ralf Date: Tue, 7 Mar 2017 11:27:19 +0100 Subject: [PATCH] Updating the README --- Readme.md | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) 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.