create a 'glare' effect over the brightest 1% of pixels
Posted: 2018-02-02T13:43:07-07:00
Hello!
New to imagemagick so please forgive me if this is a very basic question.
I'm hoping to create a glare effect over the brightest pixels in a photo, as in the photo below.
I could see two potential ways of doing it: creating a threshold mask and using morphology to make a diamond/plus shape & overlay that. Or, find the x/y coordinates of the white pixels in the mask, and overlay a pre-made semi translucent .png of the glare image at those coordinates.
Problem is, I don't really know how to do either of those things.
Any and all suggestions appreciated!
New to imagemagick so please forgive me if this is a very basic question.
I'm hoping to create a glare effect over the brightest pixels in a photo, as in the photo below.
I could see two potential ways of doing it: creating a threshold mask and using morphology to make a diamond/plus shape & overlay that. Or, find the x/y coordinates of the white pixels in the mask, and overlay a pre-made semi translucent .png of the glare image at those coordinates.
Problem is, I don't really know how to do either of those things.
Any and all suggestions appreciated!