15
15
* limitations under the License.
16
16
*
17
17
*=========================================================================*/
18
- #include " itkLiThresholdImageFilter.h"
19
- #include " itkHuangThresholdImageFilter.h"
20
- #include " itkIntermodesThresholdImageFilter.h"
21
- #include " itkIsoDataThresholdImageFilter.h"
22
- #include " itkKittlerIllingworthThresholdImageFilter.h"
23
- #include " itkMaximumEntropyThresholdImageFilter.h"
24
- #include " itkMomentsThresholdImageFilter.h"
25
- #include " itkOtsuThresholdImageFilter.h"
26
- #include " itkRenyiEntropyThresholdImageFilter.h"
27
- #include " itkShanbhagThresholdImageFilter.h"
28
- #include " itkTriangleThresholdImageFilter.h"
29
- #include " itkYenThresholdImageFilter.h"
30
18
31
- #include " itkImageFileReader.h"
32
-
33
- #include " itksys/SystemTools.hxx"
34
19
#include < sstream>
20
+ #include < iostream>
35
21
#include < map>
36
22
#ifdef ENABLE_QUICKVIEW
23
+ # include " itkLiThresholdImageFilter.h"
24
+ # include " itkHuangThresholdImageFilter.h"
25
+ # include " itkIntermodesThresholdImageFilter.h"
26
+ # include " itkIsoDataThresholdImageFilter.h"
27
+ # include " itkKittlerIllingworthThresholdImageFilter.h"
28
+ # include " itkMaximumEntropyThresholdImageFilter.h"
29
+ # include " itkMomentsThresholdImageFilter.h"
30
+ # include " itkOtsuThresholdImageFilter.h"
31
+ # include " itkRenyiEntropyThresholdImageFilter.h"
32
+ # include " itkShanbhagThresholdImageFilter.h"
33
+ # include " itkTriangleThresholdImageFilter.h"
34
+ # include " itkYenThresholdImageFilter.h"
35
+
36
+ # include " itkImageFileReader.h"
37
+
38
+ # include " itksys/SystemTools.hxx"
37
39
# include " QuickView.h"
38
40
#endif
39
41
@@ -47,7 +49,7 @@ main(int argc, char * argv[])
47
49
std::cerr << std::endl;
48
50
return EXIT_FAILURE;
49
51
}
50
-
52
+ # ifdef ENABLE_QUICKVIEW
51
53
using InputPixelType = short ;
52
54
using OutputPixelType = unsigned char ;
53
55
@@ -71,7 +73,6 @@ main(int argc, char * argv[])
71
73
72
74
const auto input = itk::ReadImage<InputImageType>(argv[1 ]);
73
75
74
- #ifdef ENABLE_QUICKVIEW
75
76
QuickView viewer;
76
77
viewer.AddImage (input, true , itksys::SystemTools::GetFilenameName (argv[1 ]));
77
78
@@ -107,6 +108,8 @@ main(int argc, char * argv[])
107
108
108
109
109
110
viewer.Visualize ();
111
+ #else
112
+ std::cout << " Example requires compilation with ENABLE_QUICKVIEW defined." << std::endl;
110
113
#endif
111
114
return EXIT_SUCCESS;
112
115
}
0 commit comments