Skip to content

ImageDiff and Structrual Similarity  #13902

Description

@aeslaughter

The ImageDiff test object uses skimage python package to compute the "Structural Similarity" (SSIM). This is a large dependency for a rather simple calculation.

https://en.wikipedia.org/wiki/Structural_similarity

Design

I would like to add a ssim function to mooseutils, so that we can do the following.

import mooseutils
index = mooseutils.ssim('file0.png', 'file1.png')
  • The files provided should be read with matplotlib.imread and the function should also
    support a version that accepts the loaded data rather than the filename.
  • The ImageDiffer.py:127 can then be replaced with the new function.
  • The implementation should include some unittesting.

Impact

This should be drop-in replacement for our current function so no API will change, but it will allow us to remove a large python dependency.

@LSWells

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: MOOSE ScriptsGood first issueP: normalA defect affecting operation with a low possibility of significant effects.T: taskAn enhancement to the software.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions