@@ -4,7 +4,7 @@ I wrote this code in 2001 for my thesis on image processing, and
4
4
from that I got an article published:
5
5
6
6
* Breadth-First Search and Its Application to Image Processing Problems* ,
7
- published IEEE TRANSACTIONS ON IMAGE PROCESSING , VOL. 10, NO. 8, AUGUST 2001.
7
+ published on IEEE Transactions on Image Processing , VOL. 10, NO. 8, August 2001.
8
8
[ link] ( https://silvela.org/jaime/BFSpaper.pdf )
9
9
10
10
I have made no functionality change since then, nor have I tried to update
@@ -14,14 +14,14 @@ Tested on a Raspberry Pi running *stretch*, May 2022.
14
14
15
15
## Installing
16
16
17
- You need libtiff to be installed.
17
+ You need ` libtiff ` to be installed.
18
18
In a Debian-derived system:
19
19
20
20
``` sh
21
21
apt-get install libtiff libtiff-dev
22
22
```
23
23
24
- If you want to run the GTK+ gui bit , you will need libgtk-dev
24
+ If you want to run the GTK+ UI , you will need ` libgtk-dev `
25
25
too. This was developed way back when, on GTK+ version 2.
26
26
27
27
``` sh
@@ -47,12 +47,13 @@ The two executables take in a single TIFF image as input, and after
47
47
starting, become a command-line interpreter.
48
48
49
49
For example, we start processing the image ` manos/a30000.tif ` .
50
- In the terminal where we fired the executables, we type :
50
+ In the terminal:
51
51
52
52
``` sh
53
53
./pro-gtk-image manos/a30000.tif
54
54
```
55
55
56
+ Now, we can use the terminal as a REPL.
56
57
One or more commands may be issued, followed by a newline.
57
58
After each, a GTK+ window will display the result of the command.
58
59
62
63
threshold 100
63
64
```
64
65
65
- -> a window opens showing the image after thresholding
66
+ → a window opens showing the image after thresholding
66
67
67
68
``` sh
68
69
regions
69
70
```
70
71
71
- -> a window opens showing the image after cleaning the noisy regions
72
+ → a window opens showing the image after cleaning the noisy regions
72
73
73
- The commands may also be chained. An window will open after each command.
74
+ The commands may also be chained. For example:
74
75
75
76
``` sh
76
77
threshold 100 regions
77
78
```
78
79
80
+ … a window will open after each command.
81
+
79
82
### Non-graphical executable
80
83
81
- The non-graphical executable does not produce a window, of course.
82
- We should write out to a TIFF file to show progress.
84
+ The non-graphical executable does not produce a window with the results,
85
+ of course. We should write out to a TIFF file to show progress.
83
86
84
87
``` sh
85
88
% ./pro-image manos/a30000.tif
0 commit comments