You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Clamp vig between 0.0 (fully dark) and 1.0 (original color).
127
-
- Multiply the pixel's R, G, B values by vig to darken farther-away pixels more thoroughly.
128
-
129
-
If you apply this algorithm, your resulting image will have gently darkened corners and an undisturbed/sunnier center.
116
+
### 6.) Brightness Adjustment Filter
117
+
-**Flag:**`-B <value>`
118
+
-**Description:** Increases or decreases the brightness of the image by adding a fixed value to each pixel's R, G, and B channels. The value should be an integer—positive to increase, negative to decrease.
119
+
-**Usage examples:**
120
+
```sh
121
+
./filter -B 40 input.bmp output.bmp # Increase brightness by 40
122
+
./filter -B -30 input.bmp output.bmp # Decrease brightness by 30
0 commit comments