itk_module_test()
set(
  ITKImageLabelTests
  itkChangeLabelImageFilterTest.cxx
  itkLabelContourImageFilterTest.cxx
  itkBinaryContourImageFilterTest.cxx
)

createtestdriver(ITKImageLabel "${ITKImageLabel-Test_LIBRARIES}" "${ITKImageLabelTests}")

itk_add_test(
  NAME itkChangeLabelImageFilterTest
  COMMAND
    ITKImageLabelTestDriver
    itkChangeLabelImageFilterTest
)
itk_add_test(
  NAME itkLabelContourImageFilterTest0
  COMMAND
    ITKImageLabelTestDriver
    --compare
    DATA{Baseline/itkLabelContourImageFilterTest0.png}
    ${ITK_TEST_OUTPUT_DIR}/itkLabelContourImageFilterTest0.png
    itkLabelContourImageFilterTest
    DATA{${ITK_DATA_ROOT}/Input/2th_cthead1.png}
    ${ITK_TEST_OUTPUT_DIR}/itkLabelContourImageFilterTest0.png
    0
    0
)
itk_add_test(
  NAME itkLabelContourImageFilterTest1
  COMMAND
    ITKImageLabelTestDriver
    --compare
    DATA{Baseline/itkLabelContourImageFilterTest1.png}
    ${ITK_TEST_OUTPUT_DIR}/itkLabelContourImageFilterTest1.png
    itkLabelContourImageFilterTest
    DATA{${ITK_DATA_ROOT}/Input/2th_cthead1.png}
    ${ITK_TEST_OUTPUT_DIR}/itkLabelContourImageFilterTest1.png
    1
    0
)
itk_add_test(
  NAME itkBinaryContourImageFilterTest0
  COMMAND
    ITKImageLabelTestDriver
    --compare
    DATA{Baseline/itkBinaryContourImageFilterTest0.png}
    ${ITK_TEST_OUTPUT_DIR}/itkBinaryContourImageFilterTest0.png
    itkBinaryContourImageFilterTest
    DATA{${ITK_DATA_ROOT}/Input/2th_cthead1.png}
    ${ITK_TEST_OUTPUT_DIR}/itkBinaryContourImageFilterTest0.png
    0
    200
    0
)
itk_add_test(
  NAME itkBinaryContourImageFilterTest1
  COMMAND
    ITKImageLabelTestDriver
    --compare
    DATA{Baseline/itkBinaryContourImageFilterTest1.png}
    ${ITK_TEST_OUTPUT_DIR}/itkBinaryContourImageFilterTest1.png
    itkBinaryContourImageFilterTest
    DATA{${ITK_DATA_ROOT}/Input/2th_cthead1.png}
    ${ITK_TEST_OUTPUT_DIR}/itkBinaryContourImageFilterTest1.png
    1
    200
    0
)
