ENH: Migrate example itkGrayscaleFunctionDilateImageFilter
Migrate the itkGrayscaleFunctionDilateImageFilter.cxx example from ITK/Examples/Filtering to ITKSphinxExamples/src/Filtering/MathematicalMorphology/DilateAGrayscaleImage. New baseline output image added as OutputBaseline.png as it didn't exist in ITK before.
| Input | Output/Baseline |
|---|---|
![]() |
![]() |
The baseline output image for testing was added to Girder (data.kitware.com) in a personal public folder here: https://data.kitware.com/#item/6287b8184acac99f42cf8abb
Partially addresses https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/issues/371
This is in draft mode, I want to add an equivalent python code as well.
This is in draft mode, I want to add an equivalent python code as well.
Python Wrapping for module BinaryBallStructuringElement is missing. After a discussion with @tbirdso , I have decided to add the python example as a separate PR which can be merged and released later.
@jadh4v Would you be willing to add the wrappings for BinaryBallStructuringElement to ITK? A file named BinaryBallStructuringElement.wrap would need to be added to this folder with contents similar to line 2 in https://github.com/InsightSoftwareConsortium/ITK/blob/23da3dfa79152648f3d38050ee147df47f41ce0a/Modules/Filtering/MathematicalMorphology/wrapping/itkFlatStructuringElement.wrap#L2.
@jadh4v Please run clang-format on Code.cxx to fix Lint CI
@jadh4v Please run
clang-formatonCode.cxxto fixLintCI
Done. Also added the python code and added it to documentation.
@tbirdso please re-run the pipeline now. I fixed the linting for python too.
@jadh4v Two documentation warnings via CDash:
ITKEx-build/src/Filtering/MathematicalMorphology/DilateUsingFunctionalGrayscale/Documentation.rst:4: WARNING: Title underline too short.
Resolution: Extend the title underline in DilateUsingFunctionalGrayscale/Documentation.rst to at least the width of the title string
checking consistency... /.../bld/ITKEx-build/src/Filtering/MathematicalMorphology/DilateUsingFunctionalGrayscale/Documentation.rst: WARNING: document isn't included in any toctree
Resolution: Please add a reference to DilateUsingFunctionalGrayscale/Documentation.rst in https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/blob/master/src/Filtering/MathematicalMorphology/index.rst.
Hi @jadh4v , Could you please rebase on master -- there were package improvements unrelated to your patch that may be causing issues in CI.
I am going to resurrect this PR and see if we can merge this soon.

