-
Notifications
You must be signed in to change notification settings - Fork 163
/
ChangeLog
137 lines (86 loc) · 5.51 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
ChangeLog for the resynthesizer
2012 Lloyd Konneker bootch nc.rr.com
version 2.0.3 Not use nested function (unsafe gcc extension) for progress callbacks, issues #11,45
Replace GLib functions deprecated since 2.32 to avoid compiler warnings.
Include math.h to avoid compiler warnings.
version 2.0.2 Remove deprecated PyGimp functions so users of unstable GIMP do not see warnings, pull request #7
Change Map>Resynthesize GUI to include hidden options, pull request #42
version 2.0.1 Fixes build scripts to support distribution builders, issue 31. Changes structure to build a library.
version 2.0.1 forward: see also the Github notes for the release
version 2.0 is a major rewrite but with little functional change.
!!! Doesn't break API but gives different results when built multithreaded.
Usually users will not notice different results, but the test suite notices.
Multithreading, because of the nature of the algorithm, in my experience does not provide much performance gain.
For example, the speedup is at best 2x, even with say 8 threads.
* Functional changes:
* If compiled with threading, the algorithm is once again non-deterministic.
Since threads run in random order depending on system conditions, you can't get repeatable results.
The results are, in a few odd cases, worse quality.
Because of nondeterminism, the test suite reports FAILED for all tests: a human must look at the results.
See buildswitches.h to compile without threading (defaults to 8 threads.)
* Structural changes:
* Threaded using glib threads (or POSIX threads)
* The innermost engine is now a static library (libresynthesizer.a), independent of gimp.
It is compiled separately and statically linked into the resynthesizer plugin (an adapter.)
With a little work, it can be compiled independently of glib.
* The innermost engine is now reentrant (uses no global, static variables.)
With a little work, it could be compiled as a shared library.
However, the API is poorly documented and needs improvement.
version 1.0.1
* fix off-by-one bug in allocation of sortedOffsets.
The bug was unreported and not noticeable by most users.
Only affects a few cases using maps.
The fix makes the results different in those cases, not necessarily better.
version 1.0 (Many, major changes.)
!!! Changes API from version 0.16 so any old Python and Scheme plugins may not work,
and users of full control panel Map>Resynthesize will need to adjust.
The API change is that the engine does not now invert the selection in the corpus.
* Functional changes:
* handling of alpha channels:
Don't use transparent corpus, and don't match alpha channels.
Note we synthesize color of target pixels, but don't match alphas,
and don't synthesize an alpha value.
* flexible incoming alpha channels: any, some, or no drawables can have alpha
Formerly, they needed the same bpp, but now alpha agnostic.
* eliminated constraint in resynth-gui.h (in the GUI logic) on texture layer bpp must match target:
(allow alpha mismatch.)
* use the selection channel instead of the inverted selection channel for the corpus: confusing. Put onus
on calling plugins to arrange new images with their own selections.
* expand the range of values for use_border parameter: allow directional resynthesizing.
This makes the algorithm slightly 'parametric' in the statistical sense: it has a model of in and out.
The result is that artifacts sometimes creep into the target from the context.
That can be good or bad in the user's view.
TODO Note the control panel is the original and doesn't offer a choice of directionality.
* use g_rand_int_range() : equally distributed random numbers, improvement over rand()%MAX
* use a fixed random seed instead of time() : repeatable, especially for testing.
TODO make the seed a parameter, for now hard-coded in the code. Should be a hash of input file?
* Bugs:
* fix bug in handling partial selection (mask e.g. between 0 and 255)
* fix bug in determining intersection of selection with layer (the Gimp API changed)
* Administrative
* major restructuring so functions are shorter texts
* Added comments
* Gnu/Gimp standards:
* rewrite in C from C++: mainly the Bitmap and Vector classes
* Gnu style
* downgrade from C99
* break into several smaller files, some shared with control gui plugin
* separate engine plugin from control gui plugin
* testResynth.py: testsuite
* moved many magic numbers to resynth-constants.h, altered MAX_WEIGHT and BEST_MAX
* Performance (never achieved significant gains?)
* interleave the mask channel with the color channels: memory locality for performance sometimes better?
* repetitions/passes: feedback to determine how many passes, and parameterize the passes
* trypoint() [VECTORIZED] MMX vectorized inner-most loop: performance the same, so optionally compiled
* rewrote frontend plugins in Python (were Scheme)
* Smart remove object -> Enhance>Heal selection..., fixing a bug in passing corpus layer
* Smart enlarge -> Enhance>Enlarge & sharpen...
* Smart sharpen -> Enhance>Sharpen by resynthesis...
* TODO Fill with Pattern resynth
* wrote frontend plugins in Python
* Uncrop
* Map>Style
* Render>Texture
* Heal transparency
2008 Paul Harrison et al
* version 0.16