Question:

Piecewise linear contrast stretch is performed on an 8-bit image. The output (\( BV_{{out}} \)) would be zero for input value \( BV_{{in}} \leq 80 \). The output (\( BV_{{out}} \)) would be 255 for \( BV_{{in}}>120 \). For the remaining input values, \( BV_{{out}} = (2 \times BV_{{in}}) - 20 \). If \( BV_{{in}} = 120 \), then \( BV_{{out}} \) is __________ (Answer in integer).

Show Hint

For piecewise contrast stretch, always check which condition the input falls into before applying the respective formula.
Updated On: Apr 17, 2025
Hide Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

Given:
\[ BV_{\text{in}} = 120 \] Since \( 80 < BV_{\text{in}} \leq 120 \), we use the contrast stretch formula:
\[ BV_{\text{out}} = (2 \times 120) - 20 = 240 - 20 = 220 \]

Final Answer: \(\boxed{220}\)
Was this answer helpful?
0
0

Top Questions on General Science

View More Questions

Questions Asked in GATE GE exam

View More Questions