Skip to content

Commit 958cd89

Browse files
Initial commit
0 parents  commit 958cd89

File tree

583 files changed

+186696
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

583 files changed

+186696
-0
lines changed

.DS_Store

6 KB
Binary file not shown.
+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?xml version="1.0"?>
2+
3+
<!-- Example xml file with a GridWorld and a Randomizer moving -->
4+
<!-- the agent in a random way in the world -->
5+
<!-- The output can be viewed in the Viewer; without the viewer -->
6+
<!-- IKAROS will run in an endless loop. -->
7+
8+
<group title="Grid World">
9+
10+
<module
11+
class = "Constant"
12+
name = "Environment"
13+
outputsize_x = "9"
14+
outputsize_y = "9"
15+
data = "
16+
1 1 1 1 1 1 1 1 1
17+
1 0 0 0 1 0 0 0 1
18+
1 0 0 0 0 0 0 0 1
19+
1 0 0 0 1 0 0 0 1
20+
1 1 0 1 1 1 1 1 1
21+
1 0 0 0 1 0 0 0 1
22+
1 0 0 0 0 0 0 0 1
23+
1 0 0 0 1 0 0 0 1
24+
1 1 1 1 1 1 1 1 1"
25+
/>
26+
27+
<module
28+
class = "Constant"
29+
name = "Goals"
30+
outputsize_x = "9"
31+
outputsize_y = "9"
32+
data = "
33+
0 0 0 0 0 0 0 0 0
34+
0 0 0 0 0 0 0 0 0
35+
0 0 0 0 0 0 1 0 0
36+
0 0 0 0 0 0 0 0 0
37+
0 0 0 0 0 0 0 0 0
38+
0 0 0 0 0 0 0 0 0
39+
0 0 2 0 0 0 0 0 0
40+
0 0 0 0 0 0 0 0 0
41+
0 0 0 0 0 0 0 0 0"
42+
/>
43+
44+
<module
45+
class = "GridWorld"
46+
name = "GW"
47+
x_start = "1"
48+
y_start = "1"
49+
move = "relative_sum"
50+
/>
51+
52+
<module
53+
class = "Randomizer"
54+
name = "R"
55+
outputsize = "4"
56+
/>
57+
58+
<connection sourcemodule = "Environment" source = "OUTPUT" targetmodule = "GW" target = "OBSTACLES" delay="0" />
59+
<connection sourcemodule = "Goals" source = "OUTPUT" targetmodule = "GW" target = "VALUES" delay="0" />
60+
<connection sourcemodule = "R" source = "OUTPUT" targetmodule = "GW" target = "MOVE" />
61+
62+
<view name="Full View">
63+
<object class="Grid" module="GW" source="IMAGE" x="0" y="0" color="black,white,red,green" max="3" colors="['black','white','red','green']"/>
64+
<object class="Grid" module="GW" source="LOCAL_OBSTACLES" x="1" y="0" />
65+
<object class="Grid" module="GW" source="LOCAL_VALUES" x="2" y="0" color="black,orange,yellow" max="2" colors="['black','orange','yellow']"/>
66+
<object class="Grid" module="GW" source="LOCATION" x="2" y="1" />
67+
<object class="BarGraph" module="GW" source="REWARD" x="1" y="1" min="0" max="2" />
68+
<object class="BarGraph" module="R" source="OUTPUT" x="0" y="1" min="0" max="10" />
69+
70+
<object class="Grid" module="Environment" source="OUTPUT" x="0" y="2" />
71+
<object class="BarGraph" module="GW" source="COORDINATE" x="1" y="2" max="9" />
72+
<object class="BarGraph" module="GW" source="COLLISION" x="2" y="2" max="1" />
73+
</view>
74+
75+
<view name="Small View">
76+
<object class="Grid" module="GW" source="IMAGE" x="0" y="0" color="black,white,red,green" max="3" />
77+
</view>
78+
79+
</group>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0"?>
2+
3+
<!--
4+
5+
This system reads the jpeg image "grayrobot.jpeg" and applies the Canny edge detection algorithms to it.
6+
No output is generated.
7+
8+
-->
9+
10+
<group title = "Canny Edge Detector">
11+
12+
<module
13+
class = "InputJPEG"
14+
name = "IN"
15+
filename = "../Media/grayrobot.jpg"
16+
/>
17+
18+
<module
19+
class = "CannyEdgeDetector"
20+
name = "Canny1"
21+
scale = "2"
22+
T0 = "0.7"
23+
T1 = "0.8"
24+
T2 = "0.1"
25+
/>
26+
27+
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Canny1" target = "INPUT" delay="0" />
28+
29+
<view name = "Demo view">
30+
<object class="Image" module="IN" source="INTENSITY" x="0" y="0" />
31+
32+
<object class="Image" module="Canny1" source="dGx" x="0" y="2" />
33+
<object class="Image" module="Canny1" source="dGy" x="1" y="2" />
34+
35+
<object class="Image" module="Canny1" source="dx" x="1" y="0" />
36+
<object class="Image" module="Canny1" source="dy" x="2" y="0" />
37+
38+
<object class="Image" module="Canny1" source="EDGES" x="0" y="1" />
39+
<object class="Image" module="Canny1" source="MAXIMA" x="1" y="1" />
40+
<object class="Image" module="Canny1" source="OUTPUT" x="2" y="1" />
41+
</view>
42+
43+
</group>
44+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0"?>
2+
3+
<!--
4+
5+
This network reads the jpeg image "cannes.jpg" and transforms the RGB image
6+
to L*a*b* form that can bee seen in the viewer. No output is generated.
7+
8+
-->
9+
10+
<group title="Color Transform">
11+
12+
<module
13+
class = "InputJPEG"
14+
name = "IN"
15+
filename = "../Media/cannes.jpg"
16+
/>
17+
<module
18+
class = "ColorTransform"
19+
name = "XYZ"
20+
transform = "RGB->XYZ"
21+
/>
22+
<module
23+
class = "ColorTransform"
24+
name = "LAB"
25+
transform = "RGB->Lab"
26+
/>
27+
28+
<connection sourcemodule = "IN" source = "RED" targetmodule = "XYZ" target = "INPUT0" />
29+
<connection sourcemodule = "IN" source = "GREEN" targetmodule = "XYZ" target = "INPUT1" />
30+
<connection sourcemodule = "IN" source = "BLUE" targetmodule = "XYZ" target = "INPUT2" />
31+
32+
<connection sourcemodule = "IN" source = "RED" targetmodule = "LAB" target = "INPUT0" />
33+
<connection sourcemodule = "IN" source = "GREEN" targetmodule = "LAB" target = "INPUT1" />
34+
<connection sourcemodule = "IN" source = "BLUE" targetmodule = "LAB" target = "INPUT2" />
35+
36+
<view name = "Demo view">
37+
<object class="Image" module="IN" source="RED" x="0" y="0" />
38+
<object class="Image" module="IN" source="GREEN" x="1" y="0" />
39+
<object class="Image" module="IN" source="BLUE" x="2" y="0" />
40+
41+
<object class="Image" name="Color" module="IN" type = "rgb" source="RED+GREEN+BLUE" x="3" y="0" />
42+
43+
<object class="Image" module="XYZ" source="OUTPUT0" x="0" y="1" />
44+
<object class="Image" module="XYZ" source="OUTPUT1" x="1" y="1" />
45+
<object class="Image" module="XYZ" source="OUTPUT2" x="2" y="1" />
46+
47+
<object class="Image" module="LAB" source="OUTPUT0" x="0" y="2" />
48+
<object class="Image" module="LAB" source="OUTPUT1" x="1" y="2" />
49+
<object class="Image" module="LAB" source="OUTPUT2" x="2" y="2" />
50+
</view>
51+
52+
</group>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?xml version="1.0"?>
2+
3+
<!--
4+
5+
This system reads the jpeg image "cannes.jpg" and applies a number of different edge detection algorithms to it.
6+
No output is generated.
7+
8+
-->
9+
10+
<group title = "Convolution Demo">
11+
12+
<module
13+
class = "InputJPEG"
14+
name = "IN"
15+
filename = "../Media/cannes.jpg"
16+
/>
17+
18+
<module
19+
class = "ImageConvolution"
20+
name = "C1"
21+
offset = "0.0"
22+
scale = "1"
23+
rectify="yes"
24+
size_x = "3"
25+
size_y = "3"
26+
kernel=
27+
"1 0 -1
28+
2 0 -2
29+
1 0 -1"
30+
/>
31+
32+
<module
33+
class = "ImageConvolution"
34+
name = "C2"
35+
offset = "0.0"
36+
scale = "1"
37+
rectify="yes"
38+
size_x = "3"
39+
size_y = "3"
40+
kernel =
41+
"1 2 1
42+
0 0 0
43+
-1 -2 -1"
44+
/>
45+
46+
<module
47+
class = "ImageConvolution"
48+
name = "C3"
49+
offset = "0.0"
50+
scale = "1"
51+
rectify="yes"
52+
size_x = "3"
53+
size_y = "5"
54+
kernel =
55+
"-1 2 -1
56+
-1 2 -1
57+
-1 2 -1
58+
-1 2 -1
59+
-1 2 -1
60+
-1 2 -1"
61+
/>
62+
63+
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "C1" target = "INPUT" />
64+
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "C2" target = "INPUT" />
65+
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "C3" target = "INPUT" />
66+
67+
<view name = "Demo view">
68+
<object class="Image" module="IN" source="INTENSITY" x="0" y="0" />
69+
<object class="Image" type="fire" module="C1" source="OUTPUT" x="0" y="1" />
70+
<object class="Image" type="fire" module="C2" source="OUTPUT" x="1" y="1" />
71+
<object class="Image" type="fire" module="C3" source="OUTPUT" x="1" y="0" />
72+
</view>
73+
74+
</group>
75+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0"?>
2+
3+
<!--
4+
5+
This system reads the jpeg image "cannes.jpg" and applies a number of different edge detection algorithms to it.
6+
No output is generated.
7+
8+
-->
9+
10+
<group title = "Edge Detectors">
11+
12+
<module
13+
class = "InputJPEG"
14+
name = "IN"
15+
filename = "../Media/cannes.jpg"
16+
/>
17+
18+
<module class = "SobelEdgeDetector" name = "Sobel" />
19+
<module class = "PrewittEdgeDetector" name = "Prewitt" />
20+
<module class = "RobertsEdgeDetector" name = "Roberts" />
21+
22+
<module class = "HysteresisThresholding" name = "HTSobel" T1 = "0.3" T2 = "0.6" />
23+
<module class = "HysteresisThresholding" name = "HTPrewitt" T1 = "0.3" T2 = "0.6" />
24+
<module class = "HysteresisThresholding" name = "HTRoberts" T1 = "0.1" T2 = "0.4" />
25+
26+
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Sobel" target = "INPUT" delay="0" />
27+
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Prewitt" target = "INPUT" delay="0" />
28+
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Roberts" target = "INPUT" delay="0" />
29+
30+
<connection sourcemodule = "Sobel" source = "OUTPUT" targetmodule = "HTSobel" target = "INPUT" delay="0" />
31+
<connection sourcemodule = "Prewitt" source = "OUTPUT" targetmodule = "HTPrewitt" target = "INPUT" delay="0" />
32+
<connection sourcemodule = "Roberts" source = "OUTPUT" targetmodule = "HTRoberts" target = "INPUT" delay="0" />
33+
34+
<view name = "Demo view">
35+
<object class="Image" type="gray" module="IN" source="INTENSITY" x="0" y="0" />
36+
37+
<object class="Image" module="Sobel" source="OUTPUT" x="0" y="1" />
38+
<object class="Image" module="Prewitt" source="OUTPUT" x="1" y="1" />
39+
<object class="Image" module="Roberts" source="OUTPUT" x="2" y="1" />
40+
41+
<object class="Image" module="HTSobel" source="OUTPUT" x="0" y="2" />
42+
<object class="Image" module="HTPrewitt" source="OUTPUT" x="1" y="2" />
43+
<object class="Image" module="HTRoberts" source="OUTPUT" x="2" y="2" />
44+
</view>
45+
46+
</group>
47+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?xml version="1.0"?>
2+
3+
<!--
4+
5+
This system reads the jpeg image "grayrobot.jpg" and applies a number of different edge detection algorithms to it.
6+
No output is generated.
7+
8+
-->
9+
10+
<group title = "Gabor Filters">
11+
12+
<module
13+
class = "InputJPEG"
14+
name = "IN"
15+
filename = "../Media/grayrobot.jpg"
16+
/>
17+
18+
<module
19+
class = "GaborFilter"
20+
name = "Gabor0"
21+
scale = "10"
22+
theta = "0.0"
23+
lambda = "20"
24+
sigma = "3"
25+
/>
26+
27+
<module
28+
class = "GaborFilter"
29+
name = "Gabor1"
30+
scale = "10"
31+
theta = "0.77"
32+
lambda = "20"
33+
sigma = "3"
34+
/>
35+
36+
<module
37+
class = "GaborFilter"
38+
name = "Gabor2"
39+
scale = "10"
40+
theta = "1.57"
41+
lambda = "20"
42+
sigma = "3"
43+
/>
44+
45+
<module
46+
class = "GaborFilter"
47+
name = "Gabor3"
48+
scale = "10"
49+
theta = "2.27"
50+
lambda = "20"
51+
sigma = "3"
52+
/>
53+
54+
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Gabor0" target = "INPUT" delay="0" />
55+
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Gabor1" target = "INPUT" delay="0" />
56+
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Gabor2" target = "INPUT" delay="0" />
57+
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Gabor3" target = "INPUT" delay="0" />
58+
59+
<view name = "Demo view">
60+
<object class="Image" module="IN" source="INTENSITY" x="0" y="0" h="2" w="2" />
61+
62+
<object class="Image" module="Gabor0" source="GAUSSIAN" x="2" y="0" h="1" w="1" />
63+
<object class="Image" module="Gabor1" source="GAUSSIAN" x="2" y="1" h="1" w="1" />
64+
<object class="Image" module="Gabor2" source="GAUSSIAN" x="2" y="2" h="1" w="1" />
65+
<object class="Image" module="Gabor3" source="GAUSSIAN" x="2" y="3" h="1" w="1" />
66+
67+
<object class="Image" module="Gabor0" source="GRATING" x="3" y="0" h="1" w="1" />
68+
<object class="Image" module="Gabor1" source="GRATING" x="3" y="1" h="1" w="1" />
69+
<object class="Image" module="Gabor2" source="GRATING" x="3" y="2" h="1" w="1" />
70+
<object class="Image" module="Gabor3" source="GRATING" x="3" y="3" h="1" w="1" />
71+
72+
<object class="Image" module="Gabor0" source="FILTER" x="4" y="0" h="1" w="1" />
73+
<object class="Image" module="Gabor1" source="FILTER" x="4" y="1" h="1" w="1" />
74+
<object class="Image" module="Gabor2" source="FILTER" x="4" y="2" h="1" w="1" />
75+
<object class="Image" module="Gabor3" source="FILTER" x="4" y="3" h="1" w="1" />
76+
77+
<object class="Image" module="Gabor0" source="OUTPUT" x="5" y="0" />
78+
<object class="Image" module="Gabor1" source="OUTPUT" x="5" y="1" />
79+
<object class="Image" module="Gabor2" source="OUTPUT" x="5" y="2" />
80+
<object class="Image" module="Gabor3" source="OUTPUT" x="5" y="3" />
81+
</view>
82+
83+
</group>
84+

0 commit comments

Comments
 (0)