A 4x4 4bitspixel image passes through a pointwise intensity
A 4x4, 4bits/pixel image passes through a point-wise intensity transformation given by:
S=T(r)=alog2(1+r)+b
where a and b are unknown parameters. Only a few pixels are available in the input and the output images, as shown below.
Input Image:
Output Image (after applying T(r):
(a) Find a and b.
(b) What\'s the value of the pixel with the \"?\" mark in the output image?
(c) What\'s the value of the pixel with the \"?\" mark in the input image?
Step by step answer please.
| 3 | |||
| 15 | |||
| ? | |||
| 1 | 3 |
Solution
Given
S=T(r)=alog2(1+r)+b (1)
In the Table Input Image
the values of \"r\" is given
and in the table Output Image
the value of S or T(r) is given
for r = 3 we have T(r) = 5
for r = 15 we have T(r) = 11
so subtituting the complete values given in our equation
T(3) = alog2(1+3)+b
5 = alog2(4)+b
5 = alog222+b // 4 = 2 *2 => 4 = 22
5 = 2a log2 2+ b // log xm = m*log x
5 = 2a +b // loga a = 1
2a + b = 5
b = 5 - 2a (2)
now for r = 15 we have T(r) = 11
T(15) = alog2(1+15)+b
11 = alog2(16)+b
11 = alog224+b
11 = 4a+b (3)
a)
from (2) and (3)
11 = 4a +5-2a
11 = 2a +5
6 = 2a
or a = 3
from (2)
b = 5 -2*3
b = -1
b)
we need to find the value of t(r) for r = 1
t(1) = 3log2(1+1) -1
t(1) = 3log22 -1
T(1) = 2
c)
we have T(r) = 8
we need to find the value of \"r\"
T(r) = 3log2(1+r)-1
8 = 3log2(1+r)-1
9 = 3log2(1+r)
3log2(1+r) = 9
log2(1+r) = 3
1+r = 23 // logb a = c => a = bc
1 +r = 8
r = 7