Skip to content

Commit 2638e5c

Browse files
committed
COMP: Remove duplicate image declaration and read
The error was: 13>C:\Dev\ITKExamples\src\Filtering\Thresholding\DemonstrateThresholdAlgorithms\Code.cxx(77,14): error C2371: 'input': redefinition; different basic types 13>C:\Dev\ITKExamples\src\Filtering\Thresholding\DemonstrateThresholdAlgorithms\Code.cxx(57,14): message : see declaration of 'input' 13>C:\Dev\ITKExamples\src\Filtering\Thresholding\DemonstrateThresholdAlgorithms\Code.cxx(80,9): error C2672: 'QuickView::AddImage': no matching overloaded function found 13>C:\Dev\ITK-git\Modules\Bridge\VtkGlue\include\QuickView.h(128,3): message : could be 'void QuickView::AddImage(TImage *,bool,std::string)' 13>Done building project "DemonstrateThresholdAlgorithms.vcxproj" -- FAILED.
1 parent 9a55e54 commit 2638e5c

File tree

1 file changed

+0
-2
lines changed
  • src/Filtering/Thresholding/DemonstrateThresholdAlgorithms

1 file changed

+0
-2
lines changed

src/Filtering/Thresholding/DemonstrateThresholdAlgorithms/Code.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ main(int argc, char * argv[])
7474
using TriangleFilterType = itk::TriangleThresholdImageFilter<InputImageType, OutputImageType>;
7575
using YenFilterType = itk::YenThresholdImageFilter<InputImageType, OutputImageType>;
7676

77-
const auto input = itk::ReadImage<InputImageType>(argv[1]);
78-
7977
QuickView viewer;
8078
viewer.AddImage(input.GetPointer(), true, itksys::SystemTools::GetFilenameName(argv[1]));
8179

0 commit comments

Comments
 (0)