Skip to content
Snippets Groups Projects
Commit ad8da73a authored by Ivan Kondov's avatar Ivan Kondov
Browse files

adapted to instructions

parent a75d2a12
No related branches found
No related tags found
No related merge requests found
{
"name": "Image montage",
"name": "Image reconstruction",
"fws": [
{
"fw_id": 0,
......
......@@ -82,4 +82,4 @@ links:
'4': [5]
'5': []
metadata: {}
name: Image montage
name: Image reconstruction
{
"name": "Swirl an image in different angles",
"fws": [
{
"fw_id": -6,
"name": "Pass filename",
"spec": {
"_tasks": [
{
"_fw_name": "PythonFunctionTask",
"function": "auxiliary.print_func",
"inputs": ["montaged image"],
"outputs": ["montaged image"]
}
]
}
},
{
"fw_id": -1,
"name": "Swirl 90",
......@@ -147,10 +161,7 @@
"command_spec": {
"command": ["convert", "-delay", "10", "-loop", "0"],
"original image": {
"source": {
"type": "path",
"value": "/tmp/capitalA.png"
}
"source": "montaged image"
},
"swirl 360": {
"source": "swirl 360"
......@@ -176,6 +187,13 @@
}
}
],
"links": {"-1": [-5], "-2": [-5], "-3": [-5], "-4": [-5], "-5": []},
"links": {
"-1": [-5],
"-2": [-5],
"-3": [-5],
"-4": [-5],
"-5": [],
"-6": [-1, -2, -3, -4, -5]
},
"metadata": {}
}
fws:
- fw_id: -6
name: Pass filename
spec:
_tasks:
- _fw_name: PythonFunctionTask
function: auxiliary.print_func
inputs: [montaged image]
outputs: [montaged image]
- fw_id: -1
name: Swirl 90
spec:
_tasks:
- _fw_name: CommandLineTask
command_spec:
command: [convert, -swirl]
original image: {source: montaged image}
swirl 90:
target: {type: path, value: /tmp}
swirl angle:
source: {type: data, value: '90'}
inputs: [swirl angle, original image]
outputs: [swirl 90]
- fw_id: -2
name: Swirl 180
spec:
_tasks:
- _fw_name: CommandLineTask
command_spec:
command: [convert, -swirl]
original image: {source: montaged image}
swirl 180:
target: {type: path, value: /tmp}
swirl angle:
source: {type: data, value: '180'}
inputs: [swirl angle, original image]
outputs: [swirl 180]
- fw_id: -3
name: Swirl 270
spec:
_tasks:
- _fw_name: CommandLineTask
command_spec:
command: [convert, -swirl]
original image: {source: montaged image}
swirl 270:
target: {type: path, value: /tmp}
swirl angle:
source: {type: data, value: '270'}
inputs: [swirl angle, original image]
outputs: [swirl 270]
- fw_id: -4
name: Swirl 360
spec:
_tasks:
- _fw_name: CommandLineTask
command_spec:
command: [convert, -swirl]
original image: {source: montaged image}
swirl 360:
target: {type: path, value: /tmp}
swirl angle:
source: {type: data, value: '360'}
inputs: [swirl angle, original image]
outputs: [swirl 360]
- fw_id: -5
name: Make an animation from a list of images
spec:
_tasks:
- _fw_name: CommandLineTask
command_spec:
animation:
target: {type: path, value: /tmp/capitalA-swirled-animated.gif}
command: [convert, -delay, '10', -loop, '0']
original image: {source: montaged image}
swirl 180: {source: swirl 180}
swirl 270: {source: swirl 270}
swirl 360: {source: swirl 360}
swirl 90: {source: swirl 90}
inputs: [original image, swirl 90, swirl 180, swirl 270, swirl 360, swirl 270,
swirl 180, swirl 90, original image]
outputs: [animation]
links:
'-1': [-5]
'-2': [-5]
'-3': [-5]
'-4': [-5]
'-5': []
'-6': [-1, -2, -3, -4, -5]
metadata: {}
name: Swirl an image in different angles
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment