Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ikaros-project committed Sep 17, 2012
0 parents commit e59ef45
Show file tree
Hide file tree
Showing 416 changed files with 45,162 additions and 0 deletions.
79 changes: 79 additions & 0 deletions Examples/Environments/gridworld_demo.ikc
@@ -0,0 +1,79 @@
<?xml version="1.0"?>

<!-- Example xml file with a GridWorld and a Randomizer moving -->
<!-- the agent in a random way in the world -->
<!-- The output can be viewed in the Viewer; without the viewer -->
<!-- IKAROS will run in an endless loop. -->

<group title="Grid World">

<module
class = "Constant"
name = "Environment"
outputsize_x = "9"
outputsize_y = "9"
data = "
1 1 1 1 1 1 1 1 1
1 0 0 0 1 0 0 0 1
1 0 0 0 0 0 0 0 1
1 0 0 0 1 0 0 0 1
1 1 0 1 1 1 1 1 1
1 0 0 0 1 0 0 0 1
1 0 0 0 0 0 0 0 1
1 0 0 0 1 0 0 0 1
1 1 1 1 1 1 1 1 1"
/>

<module
class = "Constant"
name = "Goals"
outputsize_x = "9"
outputsize_y = "9"
data = "
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 2 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0"
/>

<module
class = "GridWorld"
name = "GW"
x_start = "1"
y_start = "1"
move = "relative_sum"
/>

<module
class = "Randomizer"
name = "R"
outputsize = "4"
/>

<connection sourcemodule = "Environment" source = "OUTPUT" targetmodule = "GW" target = "OBSTACLES" delay="0" />
<connection sourcemodule = "Goals" source = "OUTPUT" targetmodule = "GW" target = "VALUES" delay="0" />
<connection sourcemodule = "R" source = "OUTPUT" targetmodule = "GW" target = "MOVE" />

<view name="Full View">
<object class="Grid" module="GW" source="IMAGE" x="0" y="0" color="black,white,red,green" max="3" colors="['black','white','red','green']"/>
<object class="Grid" module="GW" source="LOCAL_OBSTACLES" x="1" y="0" />
<object class="Grid" module="GW" source="LOCAL_VALUES" x="2" y="0" color="black,orange,yellow" max="2" colors="['black','orange','yellow']"/>
<object class="Grid" module="GW" source="LOCATION" x="2" y="1" />
<object class="BarGraph" module="GW" source="REWARD" x="1" y="1" min="0" max="2" />
<object class="BarGraph" module="R" source="OUTPUT" x="0" y="1" min="0" max="10" />

<object class="Grid" module="Environment" source="OUTPUT" x="0" y="2" />
<object class="BarGraph" module="GW" source="COORDINATE" x="1" y="2" max="9" />
<object class="BarGraph" module="GW" source="COLLISION" x="2" y="2" max="1" />
</view>

<view name="Small View">
<object class="Grid" module="GW" source="IMAGE" x="0" y="0" color="black,white,red,green" max="3" />
</view>

</group>
44 changes: 44 additions & 0 deletions Examples/ImageProcessing/CannyEdgeDetector_test.ikc
@@ -0,0 +1,44 @@
<?xml version="1.0"?>

<!--
This system reads the jpeg image "grayrobot.jpeg" and applies the Canny edge detection algorithms to it.
No output is generated.
-->

<group title = "Canny Edge Detector">

<module
class = "InputJPEG"
name = "IN"
filename = "../Media/grayrobot.jpg"
/>

<module
class = "CannyEdgeDetector"
name = "Canny1"
scale = "2"
T0 = "0.7"
T1 = "0.8"
T2 = "0.1"
/>

<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Canny1" target = "INPUT" delay="0" />

<view name = "Demo view">
<object class="Image" module="IN" source="INTENSITY" x="0" y="0" />

<object class="Image" module="Canny1" source="dGx" x="0" y="2" />
<object class="Image" module="Canny1" source="dGy" x="1" y="2" />

<object class="Image" module="Canny1" source="dx" x="1" y="0" />
<object class="Image" module="Canny1" source="dy" x="2" y="0" />

<object class="Image" module="Canny1" source="EDGES" x="0" y="1" />
<object class="Image" module="Canny1" source="MAXIMA" x="1" y="1" />
<object class="Image" module="Canny1" source="OUTPUT" x="2" y="1" />
</view>

</group>

52 changes: 52 additions & 0 deletions Examples/ImageProcessing/ColorTransform_test.ikc
@@ -0,0 +1,52 @@
<?xml version="1.0"?>

<!--
This network reads the jpeg image "cannes.jpg" and transforms the RGB image
to L*a*b* form that can bee seen in the viewer. No output is generated.
-->

<group title="Color Transform">

<module
class = "InputJPEG"
name = "IN"
filename = "../Media/cannes.jpg"
/>
<module
class = "ColorTransform"
name = "XYZ"
transform = "RGB->XYZ"
/>
<module
class = "ColorTransform"
name = "LAB"
transform = "RGB->Lab"
/>

<connection sourcemodule = "IN" source = "RED" targetmodule = "XYZ" target = "INPUT0" />
<connection sourcemodule = "IN" source = "GREEN" targetmodule = "XYZ" target = "INPUT1" />
<connection sourcemodule = "IN" source = "BLUE" targetmodule = "XYZ" target = "INPUT2" />

<connection sourcemodule = "IN" source = "RED" targetmodule = "LAB" target = "INPUT0" />
<connection sourcemodule = "IN" source = "GREEN" targetmodule = "LAB" target = "INPUT1" />
<connection sourcemodule = "IN" source = "BLUE" targetmodule = "LAB" target = "INPUT2" />

<view name = "Demo view">
<object class="Image" module="IN" source="RED" x="0" y="0" />
<object class="Image" module="IN" source="GREEN" x="1" y="0" />
<object class="Image" module="IN" source="BLUE" x="2" y="0" />

<object class="Image" name="Color" module="IN" type = "rgb" source="RED+GREEN+BLUE" x="3" y="0" />

<object class="Image" module="XYZ" source="OUTPUT0" x="0" y="1" />
<object class="Image" module="XYZ" source="OUTPUT1" x="1" y="1" />
<object class="Image" module="XYZ" source="OUTPUT2" x="2" y="1" />

<object class="Image" module="LAB" source="OUTPUT0" x="0" y="2" />
<object class="Image" module="LAB" source="OUTPUT1" x="1" y="2" />
<object class="Image" module="LAB" source="OUTPUT2" x="2" y="2" />
</view>

</group>
75 changes: 75 additions & 0 deletions Examples/ImageProcessing/Convolution_test.ikc
@@ -0,0 +1,75 @@
<?xml version="1.0"?>

<!--
This system reads the jpeg image "cannes.jpg" and applies a number of different edge detection algorithms to it.
No output is generated.
-->

<group title = "Convolution Demo">

<module
class = "InputJPEG"
name = "IN"
filename = "../Media/cannes.jpg"
/>

<module
class = "ImageConvolution"
name = "C1"
offset = "0.0"
scale = "1"
rectify="yes"
size_x = "3"
size_y = "3"
kernel=
"1 0 -1
2 0 -2
1 0 -1"
/>

<module
class = "ImageConvolution"
name = "C2"
offset = "0.0"
scale = "1"
rectify="yes"
size_x = "3"
size_y = "3"
kernel =
"1 2 1
0 0 0
-1 -2 -1"
/>

<module
class = "ImageConvolution"
name = "C3"
offset = "0.0"
scale = "1"
rectify="yes"
size_x = "3"
size_y = "5"
kernel =
"-1 2 -1
-1 2 -1
-1 2 -1
-1 2 -1
-1 2 -1
-1 2 -1"
/>

<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "C1" target = "INPUT" />
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "C2" target = "INPUT" />
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "C3" target = "INPUT" />

<view name = "Demo view">
<object class="Image" module="IN" source="INTENSITY" x="0" y="0" />
<object class="Image" type="fire" module="C1" source="OUTPUT" x="0" y="1" />
<object class="Image" type="fire" module="C2" source="OUTPUT" x="1" y="1" />
<object class="Image" type="fire" module="C3" source="OUTPUT" x="1" y="0" />
</view>

</group>

47 changes: 47 additions & 0 deletions Examples/ImageProcessing/EdgeDetectors_test.ikc
@@ -0,0 +1,47 @@
<?xml version="1.0"?>

<!--
This system reads the jpeg image "cannes.jpg" and applies a number of different edge detection algorithms to it.
No output is generated.
-->

<group title = "Edge Detectors">

<module
class = "InputJPEG"
name = "IN"
filename = "../Media/cannes.jpg"
/>

<module class = "SobelEdgeDetector" name = "Sobel" />
<module class = "PrewittEdgeDetector" name = "Prewitt" />
<module class = "RobertsEdgeDetector" name = "Roberts" />

<module class = "HysteresisThresholding" name = "HTSobel" T1 = "0.3" T2 = "0.6" />
<module class = "HysteresisThresholding" name = "HTPrewitt" T1 = "0.3" T2 = "0.6" />
<module class = "HysteresisThresholding" name = "HTRoberts" T1 = "0.1" T2 = "0.4" />

<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Sobel" target = "INPUT" delay="0" />
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Prewitt" target = "INPUT" delay="0" />
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Roberts" target = "INPUT" delay="0" />

<connection sourcemodule = "Sobel" source = "OUTPUT" targetmodule = "HTSobel" target = "INPUT" delay="0" />
<connection sourcemodule = "Prewitt" source = "OUTPUT" targetmodule = "HTPrewitt" target = "INPUT" delay="0" />
<connection sourcemodule = "Roberts" source = "OUTPUT" targetmodule = "HTRoberts" target = "INPUT" delay="0" />

<view name = "Demo view">
<object class="Image" type="gray" module="IN" source="INTENSITY" x="0" y="0" />

<object class="Image" module="Sobel" source="OUTPUT" x="0" y="1" />
<object class="Image" module="Prewitt" source="OUTPUT" x="1" y="1" />
<object class="Image" module="Roberts" source="OUTPUT" x="2" y="1" />

<object class="Image" module="HTSobel" source="OUTPUT" x="0" y="2" />
<object class="Image" module="HTPrewitt" source="OUTPUT" x="1" y="2" />
<object class="Image" module="HTRoberts" source="OUTPUT" x="2" y="2" />
</view>

</group>

84 changes: 84 additions & 0 deletions Examples/ImageProcessing/GaborFilter_test.ikc
@@ -0,0 +1,84 @@
<?xml version="1.0"?>

<!--
This system reads the jpeg image "grayrobot.jpg" and applies a number of different edge detection algorithms to it.
No output is generated.
-->

<group title = "Gabor Filters">

<module
class = "InputJPEG"
name = "IN"
filename = "../Media/grayrobot.jpg"
/>

<module
class = "GaborFilter"
name = "Gabor0"
scale = "10"
theta = "0.0"
lambda = "20"
sigma = "3"
/>

<module
class = "GaborFilter"
name = "Gabor1"
scale = "10"
theta = "0.77"
lambda = "20"
sigma = "3"
/>

<module
class = "GaborFilter"
name = "Gabor2"
scale = "10"
theta = "1.57"
lambda = "20"
sigma = "3"
/>

<module
class = "GaborFilter"
name = "Gabor3"
scale = "10"
theta = "2.27"
lambda = "20"
sigma = "3"
/>

<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Gabor0" target = "INPUT" delay="0" />
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Gabor1" target = "INPUT" delay="0" />
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Gabor2" target = "INPUT" delay="0" />
<connection sourcemodule = "IN" source = "INTENSITY" targetmodule = "Gabor3" target = "INPUT" delay="0" />

<view name = "Demo view">
<object class="Image" module="IN" source="INTENSITY" x="0" y="0" h="2" w="2" />

<object class="Image" module="Gabor0" source="GAUSSIAN" x="2" y="0" h="1" w="1" />
<object class="Image" module="Gabor1" source="GAUSSIAN" x="2" y="1" h="1" w="1" />
<object class="Image" module="Gabor2" source="GAUSSIAN" x="2" y="2" h="1" w="1" />
<object class="Image" module="Gabor3" source="GAUSSIAN" x="2" y="3" h="1" w="1" />

<object class="Image" module="Gabor0" source="GRATING" x="3" y="0" h="1" w="1" />
<object class="Image" module="Gabor1" source="GRATING" x="3" y="1" h="1" w="1" />
<object class="Image" module="Gabor2" source="GRATING" x="3" y="2" h="1" w="1" />
<object class="Image" module="Gabor3" source="GRATING" x="3" y="3" h="1" w="1" />

<object class="Image" module="Gabor0" source="FILTER" x="4" y="0" h="1" w="1" />
<object class="Image" module="Gabor1" source="FILTER" x="4" y="1" h="1" w="1" />
<object class="Image" module="Gabor2" source="FILTER" x="4" y="2" h="1" w="1" />
<object class="Image" module="Gabor3" source="FILTER" x="4" y="3" h="1" w="1" />

<object class="Image" module="Gabor0" source="OUTPUT" x="5" y="0" />
<object class="Image" module="Gabor1" source="OUTPUT" x="5" y="1" />
<object class="Image" module="Gabor2" source="OUTPUT" x="5" y="2" />
<object class="Image" module="Gabor3" source="OUTPUT" x="5" y="3" />
</view>

</group>

0 comments on commit e59ef45

Please sign in to comment.