From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-05-2021 07:09 AM
Hi,
I'm struggling to implement Vignette effect to my flat 16 bit grayscale image in order to reach the raw image seen below.
As you can see the brightest part of image is centre and the darkest parts are at corners (it looks Gaussian from centre to corners)
My aim is to implement this Vignette effect to my flat image by changing parameters. Does anybody have any idea how to do it?
Solved! Go to Solution.
04-05-2021 07:41 AM
04-05-2021 08:09 AM
04-05-2021 11:52 AM
It seems trivial to create a 2D DBL array containing a normalized 2D Gaussian of matching array size (given width and center in pixel units), then multiply that with your image followed by conversion back to U16). Have you tried that?
Instead of attaching a raw image (that we cannot read anyway), can't you attach a simple VI that contains the image as simple U16 array diagram constant?
04-05-2021 06:54 PM
@altenbach wrote:
It seems trivial to create a 2D DBL array containing a normalized 2D Gaussian of matching array size (given width and center in pixel units), then multiply that with your image followed by conversion back to U16). Have you tried that?
Here's how that could look like....
04-06-2021 10:57 AM
I was planning to use this equation to create 2D Gaussian image for two dimensional function. But if it doesn't work I'll try your solution.
04-06-2021 12:02 PM
Earlier you said it should be symmetric in all direction (Quote: "If it's possible to do this effect by Gaussian, it should be symmetric with the same width in all direction").
Your new formula is basically the same as mine, except you have different width in x and y. If you make the two widths the same, you'll end up with my formula. If you want them different, my code would be easy to change accordingly.
04-06-2021 12:10 PM
OK let's try to see what happens if it's symmetric or asymmetric. At least we're on the same way...
04-06-2021 12:20 PM - edited 04-06-2021 01:38 PM
04-06-2021 01:42 PM - edited 04-06-2021 01:47 PM
This is the solution what i needed... There is only one thing left, multiplying this 2D array with flat grayscale image.