Skip to content

Commit

Permalink
BUG: Disable AdaptiveHistogramEqualization Python tests
Browse files Browse the repository at this point in the history
AdaptiveHistogramEqualization is not availabel with the itk-5.1.0.post1
Python wrapping because an upgrade to Swig 4.0 causes segfault's during
swig execution with the AdaptiveHistogramEqualizationImageFilter module
wrapping.
  • Loading branch information
thewtex committed Jun 2, 2020
1 parent c09d5cc commit 7c0f499
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ add_test(NAME AdaptiveHistogramEqualizationImageFilterTest04
${radius04}
)

# Not supported in itk 5.1.0
if(0)
if(ITK_WRAP_PYTHON)
add_test(NAME AdaptiveHistogramEqualizationImageFilterTest01Python
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py
Expand Down Expand Up @@ -137,3 +139,4 @@ if(ITK_WRAP_PYTHON)
${radius04}
)
endif()
endif()
18 changes: 9 additions & 9 deletions src/Filtering/ImageStatistics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
add_example(AdaptiveHistogramEqualizationImageFilter)

foreach( i RANGE 1 6 )
compare_to_baseline(
EXAMPLE_NAME AdaptiveHistogramEqualizationImageFilter
TEST_NAME AdaptiveHistogramEqualizationImageFilterTest0${i}BaselineComparison
TEST_IMAGE AdaptiveHistogramEqualizationImageFilterTest0${i}.png
BASELINE_PREFIX AdaptiveHistogramEqualizationImageFilter0${i}Baseline
OPTIONS --tolerance-intensity 1
DEPENDS AdaptiveHistogramEqualizationImageFilterTest0${i}
)
#compare_to_baseline(
#EXAMPLE_NAME AdaptiveHistogramEqualizationImageFilter
#TEST_NAME AdaptiveHistogramEqualizationImageFilterTest0${i}BaselineComparison
#TEST_IMAGE AdaptiveHistogramEqualizationImageFilterTest0${i}.png
#BASELINE_PREFIX AdaptiveHistogramEqualizationImageFilter0${i}Baseline
#OPTIONS --tolerance-intensity 1
#DEPENDS AdaptiveHistogramEqualizationImageFilterTest0${i}
#)

# compare_to_baseline(
# EXAMPLE_NAME AdaptiveHistogramEqualizationImageFilter
Expand Down Expand Up @@ -44,4 +44,4 @@ add_example(ComputeMinMaxVarianceMeanOfImage)
#add_example(ComputePCAShapeFromSample)
#compare_to_baseline(EXAMPLE_NAME StatisticalPropertiesOfRegions
# BASELINE_PREFIX OutputBaseline
# )
# )

0 comments on commit 7c0f499

Please sign in to comment.