File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
Core/Transform/GlobalRegistrationTwoImagesBSpline
LabelMap/ShapeAttributesForBinaryImage
Thresholding/DemonstrateThresholdAlgorithms Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 30
30
#include " itkImageFileWriter.h"
31
31
#include " itkResampleImageFilter.h"
32
32
#include " itkCastImageFilter.h"
33
- #include " itkSquaredDifferenceImageFilter.h"
34
33
35
34
#ifdef ENABLE_QUICKVIEW
36
35
# include " QuickView.h"
@@ -42,9 +41,9 @@ using PixelType = float;
42
41
using ImageType = itk::Image<PixelType, ImageDimension>;
43
42
44
43
static void
45
- CreateEllipseImage (ImageType::Pointer image);
44
+ CreateEllipseImage (const ImageType::Pointer & image);
46
45
static void
47
- CreateCircleImage (ImageType::Pointer image);
46
+ CreateCircleImage (const ImageType::Pointer & image);
48
47
49
48
int
50
49
main (int itkNotUsed (argc), char * itkNotUsed(argv)[])
@@ -252,7 +251,7 @@ main(int itkNotUsed(argc), char * itkNotUsed(argv)[])
252
251
}
253
252
254
253
void
255
- CreateEllipseImage (ImageType::Pointer image)
254
+ CreateEllipseImage (const ImageType::Pointer & image)
256
255
{
257
256
using EllipseType = itk::EllipseSpatialObject<ImageDimension>;
258
257
@@ -300,7 +299,7 @@ CreateEllipseImage(ImageType::Pointer image)
300
299
}
301
300
302
301
void
303
- CreateCircleImage (ImageType::Pointer image)
302
+ CreateCircleImage (const ImageType::Pointer & image)
304
303
{
305
304
using EllipseType = itk::EllipseSpatialObject<ImageDimension>;
306
305
Original file line number Diff line number Diff line change 22
22
23
23
template <typename TImage>
24
24
static void
25
- CreateImage (TImage * const image);
25
+ CreateImage (TImage * image);
26
26
27
27
int
28
- main (int argc, char * argv [])
28
+ main (int argc, char * [])
29
29
{
30
30
constexpr unsigned int Dimension = 2 ;
31
31
using PixelType = unsigned char ;
Original file line number Diff line number Diff line change @@ -51,9 +51,13 @@ main(int argc, char * argv[])
51
51
}
52
52
#ifdef ENABLE_QUICKVIEW
53
53
using InputPixelType = short ;
54
- using OutputPixelType = unsigned char ;
55
54
56
55
using InputImageType = itk::Image<InputPixelType, 2 >;
56
+
57
+ const auto input = itk::ReadImage<InputImageType>(argv[1 ]);
58
+
59
+ #ifdef ENABLE_QUICKVIEW
60
+ using OutputPixelType = unsigned char ;
57
61
using OutputImageType = itk::Image<OutputPixelType, 2 >;
58
62
59
63
using LiFilterType = itk::LiThresholdImageFilter<InputImageType, OutputImageType>;
You can’t perform that action at this time.
0 commit comments