To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The example demonstrates how to average multiple images into one.
Description
A folder containing multiple images are loaded and displayed in an adjustable speed. The images are averaged and after all images of the specified folder have been displayed the averaged images is displayed.
To average the image simply the pixel values of every image are added and then averaged by dividing the sum by the number of images. For that it is important to use a data type that is large enough to be able to store the value without saturating. That is why the unsigned 8-bit integer value is converted to an unsigned 32-bit integer value.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Hi,
Thanks for the example. I have tried this example in my code to capture four averaged images. I am triggering a PZT to move a mirror with fixed voltage to shift the image. I need to capture an averaged image, let say an average of ten images, at every move by pzt. I want to save averaged image each time separately in png or tiff file format. Please find the attached image of the vi for your kind information. I am not able to attach the VI.
I would appreciate if some one help this VI to work as I expected.