How to grow bright pixels in grey region?

asked 2019-07-16 16:36:02 -0600

JeyP4 gravatar image

updated 2019-07-16 16:36:33 -0600

How can I grow bright pixel in grey region?

Input:

Input

Ouput:

Output

Note: bright pixel value is 255 and grey value is 127.

Thank you :)

edit retag flag offensive close merge delete

Comments

Are the only values 0, 127 and 255?

Tetragramm gravatar imageTetragramm ( 2019-07-17 18:18:15 -0600 )edit

you can try a floodfill operation

VxW gravatar imageVxW ( 2019-07-18 01:46:15 -0600 )edit