Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 5b36f0e

Browse files
authored
Merge pull request #2 from obee58/project4
Project4 works great now it is finished i am done with it now i make pdf
2 parents 55a3773 + 6e28284 commit 5b36f0e

Some content is hidden

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

60 files changed

+859
-15
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.vscode/*
2+
*.*~

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ endif
1111

1212
# I have spent an hour on fixing this makefile and make refuses to read a list one-by-one
1313
# just copy the lines and replace the filenames
14-
project3: alphamask compose
14+
default: clean project4
1515

16-
all: imgview alphamask compose
16+
project1: imgview
17+
project3: alphamask compose
18+
project4: convolve
19+
all: imgview alphamask compose convolve
1720

1821
recompile: clean all
1922

@@ -23,6 +26,8 @@ alphamask:
2326
${CXX} ${CPPFLAGS} -o alphamask src/alphamask.cpp ${LD}
2427
compose:
2528
${CXX} ${CPPFLAGS} -o compose src/compose.cpp ${LD}
29+
convolve:
30+
${CXX} ${CPPFLAGS} -o convolve src/convolve.cpp ${LD}
2631

2732
clean:
28-
rm -f core.* *.o *~ imgview alphamask compose
33+
rm -f core.* *.o *~ imgview alphamask compose convolve

README.md

Lines changed: 45 additions & 12 deletions

filters/bell9.filt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
9
2+
1 4 10 16 19 16 10 4 1
3+
4 16 40 64 76 64 40 16 4
4+
10 40 100 160 190 160 100 40 10
5+
16 64 160 256 304 256 160 64 16
6+
19 76 190 304 361 304 190 76 19
7+
16 64 160 256 304 256 160 64 16
8+
10 40 100 160 190 160 100 40 10
9+
4 16 40 64 76 64 40 16 4
10+
1 4 10 16 19 16 10 4 1

filters/box.filt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
3
2+
1 1 1
3+
1 1 1
4+
1 1 1

filters/box5.filt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
5
2+
1 1 1 1 1
3+
1 1 1 1 1
4+
1 1 1 1 1
5+
1 1 1 1 1
6+
1 1 1 1 1

filters/box7.filt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
7
2+
1 1 1 1 1 1 1
3+
1 1 1 1 1 1 1
4+
1 1 1 1 1 1 1
5+
1 1 1 1 1 1 1
6+
1 1 1 1 1 1 1
7+
1 1 1 1 1 1 1
8+
1 1 1 1 1 1 1

filters/box9.filt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
9
2+
1 1 1 1 1 1 1 1 1
3+
1 1 1 1 1 1 1 1 1
4+
1 1 1 1 1 1 1 1 1
5+
1 1 1 1 1 1 1 1 1
6+
1 1 1 1 1 1 1 1 1
7+
1 1 1 1 1 1 1 1 1
8+
1 1 1 1 1 1 1 1 1
9+
1 1 1 1 1 1 1 1 1
10+
1 1 1 1 1 1 1 1 1

filters/cross.filt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
11
2+
1 0 0 0 0 0 0 0 0 0 1
3+
0 1 0 0 0 0 0 0 0 1 0
4+
0 0 1 0 0 0 0 0 1 0 0
5+
0 0 0 1 0 0 0 1 0 0 0
6+
0 0 0 0 1 0 1 0 0 0 0
7+
0 0 0 0 0 1 0 0 0 0 0
8+
0 0 0 0 1 0 1 0 0 0 0
9+
0 0 0 1 0 0 0 1 0 0 0
10+
0 0 1 0 0 0 0 0 1 0 0
11+
0 1 0 0 0 0 0 0 0 1 0
12+
1 0 0 0 0 0 0 0 0 0 1

filters/diagonal.filt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
11
2+
0 0 0 0 0 0 0 0 0 0 1
3+
0 0 0 0 0 0 0 0 0 1 0
4+
0 0 0 0 0 0 0 0 1 0 0
5+
0 0 0 0 0 0 0 1 0 0 0
6+
0 0 0 0 0 0 1 0 0 0 0
7+
0 0 0 0 0 1 0 0 0 0 0
8+
0 0 0 0 1 0 0 0 0 0 0
9+
0 0 0 1 0 0 0 0 0 0 0
10+
0 0 1 0 0 0 0 0 0 0 0
11+
0 1 0 0 0 0 0 0 0 0 0
12+
1 0 0 0 0 0 0 0 0 0 0

0 commit comments

Comments
 (0)