Search code examples
pythonalgorithmfeature-extraction

Find average of multiple images


I have extracted edges that are in form of shape in an object. The shapes extracted contained 80 shapes. How do I find the average of 80 similar shapes to form a new shape, which will serve as a pattern to use for matching using python.


Solution

  • To combine multiple images i would propose doing the following:

    1. Read the files with the OpenCV packages for Python
    2. Convert the images to Numpy-Arrays
    3. Use arythmetic or geometric mean to get a combination of all images
    4. Save the resulting image using OpenCV

    This would result in the shapes that are present in all immages to be more pronounced.