Brighten up the lights

Now, we will take advantage of the last conclusion of the example we just performed, to brighten the lights in our soldier picture. We already saw that the color edge enhancement in night scenes has the effect of enhancing light sources. So, what would happen if we used this result to amplify the lights in our image by adding the result of the edge enhancement filter to the original image? Normally, we would have to worry about the values after the addition exceeds 255 (the maximum brightness value of an 8-bit image). However, MATLAB will automatically truncate these results and make them equal to 255. Therefore, the only thing we need to be careful about will be to not let many pixels get assigned the maximum value, as this would give us an unnatural result. Let's see all these things with an example.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset