Skip to content

Commit

Permalink
COMP: Remove duplicate image declaration and read
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dzenanz committed Nov 21, 2022
1 parent 9a55e54 commit 2638e5c
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ main(int argc, char * argv[])
using TriangleFilterType = itk::TriangleThresholdImageFilter<InputImageType, OutputImageType>;
using YenFilterType = itk::YenThresholdImageFilter<InputImageType, OutputImageType>;

const auto input = itk::ReadImage<InputImageType>(argv[1]);

QuickView viewer;
viewer.AddImage(input.GetPointer(), true, itksys::SystemTools::GetFilenameName(argv[1]));

Expand Down

0 comments on commit 2638e5c

Please sign in to comment.