Q4. Explain The Following Point-Processing Operations: 1) Digital Image Negative: 2) Contrast Stretching 3) Threshold With Background 4) Bit Plane Slicing Ans: 1) Digital Image Negative
Q4. Explain The Following Point-Processing Operations: 1) Digital Image Negative: 2) Contrast Stretching 3) Threshold With Background 4) Bit Plane Slicing Ans: 1) Digital Image Negative
when, r = 0; s = 255
& if r = 255 then s = 0
Generally, s = (L-1) –r
where, L – total number of gray levels (e.g. 256 for 8-bit image)
For an image with gray level in the range [0, L-1], where L = Largest
value in an image, the negative transformation’s expression is given by:
• s=L–1–r
❑Reasons:
❑ Poor Illumination
❑ Wrong setting of lens aperture
❑ Idea behind Contrast Stretching is to make dark portion darker and bright
portion brighter.
❑ In above figure, dotted line indicated Identity Transformation & solid line
indicates Contrast Stretching.
❑ Dark portion is being made darker by assigning slope of < 1.
❑ Bright portion is being made brighter by assigning slope of > 1.
❑ Any set of slopes cant be generalized for all kind of images.
❑Formulation is given below:
s = l.r ; for 0 ≤ r ≤ a
= m(r-a) + v ; for a ≤ r ≤ b
= n(r-b) + w ; for b ≤ r ≤ L-1