This commit is contained in:
Fabian Märki
2017-02-28 14:16:12 +01:00
parent 418996df4a
commit 22a62de800

View File

@ -419,17 +419,17 @@ Following transformation sequence resizes images by the factor of 8, sets the va
```
- **imageResize**: The image resize operation.
- **downScaleFactor**: The image downscale factor (e.g. a factor of 8 reduces a square of 8x8 pixels into one pixel.
- **valueAggregation**: Defines how the pixel values should be aggregated (values: **first-value**|max-value|mean-value). *first-value* uses the first value of the reduction square (very fast but signals might get lost), *max-value* uses the max value of the reduction square, and *mean-value* the mean value of the reduction square.
- **downScaleFactor**: The image downscale factor (e.g. a factor of 8 reduces a area of 8x8 pixels into one pixel).
- **valueAggregation**: Defines how the pixel values should be aggregated (values: **first-value**|max-value|mean-value). *first-value* uses the first value of the reduction area (very fast but signals might get lost), *max-value* uses the max value of the reduction area, and *mean-value* the mean value of the reduction area.
- **valueFunctions**: Array of functions to be applied to pixel values.
- **min**: Map all values smaller than the defined values to the *mapTo* value. Allows to define a filter to eliminate noise (using "mapTo":0) or to set a lower pixel value bound (e.g. to focus on a specific pixel value range - need to be used together with the *max* value function). In case *mapTo* is not defined it defaults to *min*.
- **max**: Map all values bigger than the defined values to the *mapTo* value. Can be used to set a upper pixel value bound (e.g. to focus on a specific pixel value range - need to be used together with the *min* value function) In case *mapTo* is not defined it defaults to *max*.
- **min**: Map all values smaller than the defined values to the *mapTo* value. Allows to define a filter to eliminate noise (using "mapTo":0) or to set a lower value bound (e.g. to focus on a specific pixel value range - need to be used together with the *max* value function). In case *mapTo* is not defined it defaults to *min*.
- **max**: Map all values bigger than the defined values to the *mapTo* value. Can be used to set a upper value bound (e.g. to focus on a specific pixel value range - need to be used together with the *min* value function). In case *mapTo* is not defined it defaults to *max*.
- **colorModel**: The color model to be used for the image.
- **type**: The color model type (values: linear|**temperature**|gradient). Each type has a decent default color scheme (linear uses a grayscale, temperatur a blue to red, and gradient a rainbow color scheme).
- **type**: The color model type (values: linear|**temperature**|gradient). Each type has a decent default color scheme.
- **nrOfColors**: The number of colors to map between the min. and max. pixel value (use a power of 2 like 16, 32, 64, 128, or 256). The more colors used the more details will be visible but the larger the images will get).
- **colors**: The colors to use for the color model (defaults for *linear* "#000000","#FFFFFF" (grayscale), for *temperature* "#3B4CC0","#B40426", and for *gradient* "#0000FF","#00FFFF","#00FF00","#FFFF00","#FF0000" (rainbow: blue, cyan, green, yellow, red)).
- **colors**: The colors to use for the color model. *linear* uses grayscale, *temperature* blue to red, and *gradient* a rainbow (blue, cyan, green, yellow, red) color scheme as default (leave this option undefined to use defaults).
- **imageFormat**: The output image format (values: **png**|jpg).
- **imageEncoder**: The encoding of the image (values: **base64string**|byte).
@ -439,7 +439,9 @@ 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 response has the format '"transformedValue":{"shape":[width,height],"value":[value1,value2,...]}'. This transformation could potentially also be applied to waveforms.
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":{
@ -456,8 +458,18 @@ Following transformation sequence resizes images by the factor of 4, filters all
}
```
- **valueSampler**: The value sampling operation.
- **downSampleFactor**: The downsample factor (e.g. a factor of 4 reduces a square of 4x4 pixels into one pixel or 4 elements of a waveform into on element).
- **valueAggregation**: Defines how the values should be aggregated (values: **first-value**|max-value|mean-value). *first-value* uses the first value of the reduction area (very fast but signals might get lost), *max-value* uses the max value of the reduction area, and *mean-value* the mean value of the reduction area.
- **valueFunctions**: Array of functions to be applied to values.
- **min**: Map all values smaller than the defined values to the *mapTo* value. Allows to define a filter to eliminate noise (using "mapTo":0) or to set a lower value bound. In case *mapTo* is not defined it defaults to *min*.
- **max**: Map all values bigger than the defined values to the *mapTo* value. Can be used to set a upper value bound. In case *mapTo* is not defined it defaults to *max*.
Applying a value sampling transformation has the advantage that the computation is done on the backend resulting in much less data transfer.
The response has the format '"transformedValue":{"shape":[width,height],"value":[value1,value2,...]}'.
### Example Queries