Add octave scripts for examples into track list.
authorWANG <wang@wang-OptiPlex-780.(none)>
Fri, 13 Sep 2013 15:49:20 +0000 (17:49 +0200)
committerWANG <wang@wang-OptiPlex-780.(none)>
Fri, 13 Sep 2013 15:49:20 +0000 (17:49 +0200)
examples/2d_fft/hcosine-32.png [new file with mode: 0644]
examples/2d_fft/img_read.m [new file with mode: 0644]
examples/2d_fft/img_write.m [new file with mode: 0644]
examples/Makefile [new file with mode: 0644]
examples/close/img_read.m [new file with mode: 0644]
examples/close/img_write.m [new file with mode: 0644]
examples/dilation/img_read.m [new file with mode: 0644]
examples/dilation/img_write.m [new file with mode: 0644]
examples/open/img_read.m [new file with mode: 0644]
examples/open/img_write.m [new file with mode: 0644]

diff --git a/examples/2d_fft/hcosine-32.png b/examples/2d_fft/hcosine-32.png
new file mode 100644 (file)
index 0000000..4b4615e
Binary files /dev/null and b/examples/2d_fft/hcosine-32.png differ
diff --git a/examples/2d_fft/img_read.m b/examples/2d_fft/img_read.m
new file mode 100644 (file)
index 0000000..52c8229
--- /dev/null
@@ -0,0 +1,2 @@
+a = imread('hcosine-32.png' );
+csvwrite('hcosine-32.csv', a);
diff --git a/examples/2d_fft/img_write.m b/examples/2d_fft/img_write.m
new file mode 100644 (file)
index 0000000..b2338a7
--- /dev/null
@@ -0,0 +1,4 @@
+a = imread('hcosine-32.png' );
+b = csvread('output1.csv' );
+imwrite(b, 'fft2d.png');
+
diff --git a/examples/Makefile b/examples/Makefile
new file mode 100644 (file)
index 0000000..66667e1
--- /dev/null
@@ -0,0 +1,4 @@
+SOURCES = $(wildcard */*.dsp)
+
+all: $(SOURCES)
+       
diff --git a/examples/close/img_read.m b/examples/close/img_read.m
new file mode 100644 (file)
index 0000000..1f1beae
--- /dev/null
@@ -0,0 +1,2 @@
+a = imread('circbw.png' );
+csvwrite('circbw.csv', a);
diff --git a/examples/close/img_write.m b/examples/close/img_write.m
new file mode 100644 (file)
index 0000000..bd0397f
--- /dev/null
@@ -0,0 +1,4 @@
+a = imread('circbw.gif' );
+b = csvread('output1.csv' );
+imwrite(b, 'close.png');
+
diff --git a/examples/dilation/img_read.m b/examples/dilation/img_read.m
new file mode 100644 (file)
index 0000000..dd943aa
--- /dev/null
@@ -0,0 +1,2 @@
+a = imread('letter_j.png' );
+csvwrite('letter_j.csv', a);
diff --git a/examples/dilation/img_write.m b/examples/dilation/img_write.m
new file mode 100644 (file)
index 0000000..574f59d
--- /dev/null
@@ -0,0 +1,4 @@
+a = imread('letter_j.png' );
+b = csvread('output1.csv' );
+imwrite(b, 'dilation.png');
+
diff --git a/examples/open/img_read.m b/examples/open/img_read.m
new file mode 100644 (file)
index 0000000..1f1beae
--- /dev/null
@@ -0,0 +1,2 @@
+a = imread('circbw.png' );
+csvwrite('circbw.csv', a);
diff --git a/examples/open/img_write.m b/examples/open/img_write.m
new file mode 100644 (file)
index 0000000..5eedfec
--- /dev/null
@@ -0,0 +1,4 @@
+a = imread('circbw.gif' );
+b = csvread('output1.csv' );
+imwrite(b, 'open.png');
+