Merge branch 'master' of git@git.psi.ch:sf_daq/ch.psi.daq.queryrest.git
This commit is contained in:
34
Readme.md
34
Readme.md
@ -376,7 +376,7 @@ It is possible to apply transformations to values. These transformations are ava
|
|||||||
|
|
||||||
#### Image Resize
|
#### 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
|
```json
|
||||||
@ -439,23 +439,29 @@ Applying an image resize transformation has the advantage that the computation i
|
|||||||
|
|
||||||
#### Value Sampling
|
#### 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.
|
This transformation could potentially also be used for other value forms than images.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"valueTransformation":{
|
"valueTransformations":[
|
||||||
"valueSampler":{
|
{
|
||||||
"downSampleFactor":4,
|
"pattern":"Image",
|
||||||
"valueAggregation":"first-value"
|
"backend":"sf-imagestorage",
|
||||||
},
|
"sequence":[
|
||||||
"valueFunctions":[
|
"valueSampler":{
|
||||||
{
|
"downSampleFactor":4,
|
||||||
"min":200.0,
|
"valueAggregation":"first-value"
|
||||||
"mapTo":0.0
|
},
|
||||||
}
|
"valueFunctions":[
|
||||||
]
|
{
|
||||||
}
|
"min":200.0,
|
||||||
|
"mapTo":0.0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
- **valueSampler**: The value sampling operation.
|
- **valueSampler**: The value sampling operation.
|
||||||
|
Reference in New Issue
Block a user