Debian Codegraph @

src/filter/alpha0ps/readme

raw
1 alpha0ps
2
3 These plugins are for alpha channel manipulation
4
5
6 Included are the following plugins:
7
8 alpha0ps: shrink,grow,threshold and visualize alpha
9 alphagrad: fill alpha channel with a gradient
10 alphaspot: draw simple shapes into the alpha channel
11
12
13 Written by Marko Cebokli, aug 2010, and released under GNU GPL
14
15
16 RELEASE NOTES
17
18 ** aug 2010
19 Version 0.1
20 "pre-alpha" (throw it out and see what happens... :-)
21
22 ** aug 2012
23 Version 0.2
24 Endian proofing (use uint8_t* to access image data)
25
26 ** sep 2012
27 Version 0.3
28 Add alpha blur
29 Some code cleaning
30
31
32
33 ALPHAOPS:
34
35 This plugin can shrink, grow, threshold and invert the alpha
36 channel. It is mainly intended to improve keying edges.
37 It can also display the alpha channel in various ways, to enable
38 quick assessment of the effect.
39 It is cascadable, so for example one can do a soft shrink first
40 and then threshold, which gives a slightly different result than
41 a hard shrink.
42
43 Parameters:
44
45 Display:
46 what to display. Choices are seven: Image, Alpha as gray, Gray+red,
47 Selection on black, Selection on gray, Selection on white and
48 Selection on checkers.
49 This is intended for monitoring during adjustment mostly. After
50 adjusting the parameters, it should be left on "Image", which lets
51 the unchanged input image through - this plugin is intended to
52 change only the alpha channel...
53
54 Display input alpha:
55 use input alpha for the display function above. (Check what alpha
56 we are getting on the input)
57
58 Operation:
59 select the operation to be done on the alpha channel. Currently
60 there are seven choices: NO OP, Shave, Shrink hard, Shrink soft,
61 Grow hard, Grow soft, Threshold and blur.
62 "Shave" tries to remove the "hairy" stuff, and also shrinks the selection
63 a bit.
64 The "hard" operations introduce no new values to the alpha channel,
65 so if you have a "hard" key (only 0 and 255) it will stay that way.
66 The "soft" operations will introduce interpolated values, making
67 the edge softer.
68 NOTE: the shave, shrink and grow operations are quite slow, because they
69 do many conditional operations on each pixel.
70 "Blur" simply blurs the alpha channel with a quasi Gaussian blur.
71
72 Threshold:
73 this is only used for the Threshold operation.
74
75 Shrink/Grow/Blur amount:
76 how far the shrinking/growing will extend, or the amount of blur.
77
78 Invert:
79 Inverts the input alpha channel, transparent will become opaque
80 and vice versa.
81
82
83
84
85 ALPHAGRAD:
86
87 This is a very simple plugin, that just fills the alpha channel
88 with a specified gradient.
89 It's purpose is to enable, together with alpha controlled color
90 manipulation, the use of graduated filters, for example like the
91 Cokin series #121, #122, #124, #150 and similar.
92 It is cascadable, allowing work with pre-existing alpha.
93
94 Parameters:
95
96 Position:
97 shift in the direction of gradient, for positioning the
98 gradient.
99
100 Transition width:
101 Width of the gradient slope between min and max values.
102
103 Tilt:
104 rotation of the gradient direction.
105
106 Min:
107 minimum value of the alpha channel, "before" the gradient.
108
109 Max:
110 maximum value of the alpha channel, "after" the gradient.
111
112 Operation:
113 selects between "Draw on clear", "Min", "Max", "Add" and "Subtract".
114 The last four options combine the drawn gradient with pre-existing
115 alpha.
116
117
118
119
120 ALPHASPOT
121
122 This is a simple plugin, that can draw a few simple shapes into
123 the alpha channel. It is intended for "in" and "out" masks in
124 keying, non-rectangular picture-in-picture, spotlight effects etc.
125 It is cascadable, allowing work with pre-existing alpha and
126 building of more complex shapes.
127
128 Parameters:
129
130 Shape:
131 selects between four shapes: rectangle, round, triangle and
132 diamond.
133
134 Pozx, pozy:
135 position of the drawn shape.
136
137 Sizx, sizy:
138 size of the drawn shape.
139
140 Tilt:
141 rotation of the drawn shape.
142
143 Transition width:
144 width of the soft border.
145
146 Min:
147 value of alpha outside of the shape.
148
149 Max:
150 value of alpha inside of the shape.
151
152 Operation:
153 selects between Draw on clear, Min, Max, Add, Subtract. The last
154 four options combine the drawn shape with pre-existing alpha.
155
156