Given an intensity level (0, L−1) of an image with “r” and “s” positive…
2022
Given an intensity level (0, L−1) of an image with “r” and “s” positive values, how will the negative of an image be obtained?
- A.
s = L − 1 − r
- B.
s = L + r
- C.
s = L − r
- D.
s = L + 1 + r
Attempted by 166 students.
Show answer & explanation
Correct answer: A
To obtain the negative of a digital image, each input gray level r (between 0 and L - 1) is mapped to an output gray level using the negative transformation formula: s = (L - 1) - r When r = 0 (black), s becomes L - 1 (white), so the darkest pixels become the brightest.