ENH: Adding python sample for ConvolveImageWithKernel
Hi @PranjalSahu , Could you please rebase on master -- there were package improvements unrelated to your patch that may be causing issues in CI.
It is failing due to automatically generated test for baseline comparison between C++ and Python ConvolveImageWithKernelTestBaselineComparisonPython.
Ah right, I've also run into issues with C++/Python baseline comparisons before. The ITKSphinxExamples macros were set up with the assumption that C++ and Python script output should always be the same and therefore use the same baseline image; as you've demonstrated here, there are exceptions to this rule.
Some possible paths forward:
- Explicitly port the C++ sample to Python, using the exact same data and image pipeline, so that the result is the same
- Disable the baseline comparison for now
- Move the Python sample to a new example with a
PYTHON_ONLYbaseline check - Modify the CMake baseline macro so that different baselines can be explicitly provided for C++ and Python examples at the user's discretion