libITKMathematicalMorphology.dll Error in Windows 10 and 11: Morphological filter startup

A binary or grayscale image opens but the app fails on a morphology operation. If Windows or the program names libITKMathematicalMorphology.dll, write down the earliest message before changing the installation. A module may fail to load even when the DLL itself is present, so use a known test sample and the checks below.
What libITKMathematicalMorphology.dll is used for
The MSYS2 UCRT64 Windows manifest lists libITKMathematicalMorphology.dll as part of its Insight Toolkit package. See the official ITK module source for the associated feature. Windows applications may bundle the toolkit with a different release or toolchain, so follow the app vendor’s supported packaging.
Reproduce the failure on a known sample
Test a small image and compare the first module error with the selected kernel size. Save a copy before working on the original. Record the app release, the step that triggers the failure and the full path Windows reports if available.
Repair the matching ITK component
Restore the matching morphology package for load failures. Once it runs, reset to a supported structuring element on the test image.
Start with the official app installer where possible. Microsoft’s app repair instructions explain when Windows offers repair or reset. Back up settings and project data before resets or reinstalls. For a portable release, extract the complete publisher archive into a new folder. If you maintain the app, rebuild it using a single matching ITK toolchain and runtime. Avoid installing individual DLLs from download sites.
Verify the repair
Check that the sample region grows or shrinks as specified by the operation. Restart the app and repeat the operation on the original input. If the problem returns, retain the earliest log and a small reproducible sample for the app vendor.
Related guide libopencv_imgproc-500.dll troubleshooting. Search the DLL Errors & Fixes Library for additional Windows errors.