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
Copy file name to clipboardExpand all lines: README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,26 +114,30 @@ For a pixel along the edge or corner, like pixel 15, we would still look for all
114
114
If you apply the above algorithm to each pixel in the image, the result should look like a blurry, out-of-focus version of the original.
115
115
116
116
### 5.) Threshold Filter (Black & White)
117
-
118
117
-**Flag:**`-t`
119
118
-**Description:** Converts each pixel in the image to pure black or white based on its intensity. If the average of red, green, and blue is greater than or equal to 128, the pixel becomes white (255,255,255); otherwise, it becomes black (0,0,0).
120
119
-**Usage example:**
121
-
122
120
```sh
123
121
./filter -t input.bmp output.bmp
124
122
```
125
123
126
124
### 6.) Brightness Adjustment Filter
127
-
128
125
-**Flag:**`-B <value>`
129
126
-**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.
130
-
-**Usage example:**
131
-
127
+
-**Usage examples:**
132
128
```sh
133
129
./filter -B 40 input.bmp output.bmp # Increase brightness by 40
134
130
./filter -B -30 input.bmp output.bmp # Decrease brightness by 30
135
131
```
136
132
133
+
### 7.) Vignette Filter
134
+
-**Flag:**`-v`
135
+
-**Description:** Applies a vignette effect that darkens the corners of the image to focus attention towards the center.
136
+
-**Usage example:**
137
+
```sh
138
+
./filter -v input.bmp output.bmp
139
+
```
140
+
137
141
You should not modify any of the function signatures, nor should you modify any other files other than helpers.c.
138
142
139
143
Consider the following grid of pixels, where we’ve numbered each pixel.
0 commit comments