Skip to content

Commit ca70c18

Browse files
N-Dekkerhjmjohnson
authored andcommitted
COMP: Fix compile errors from *.cxx files in SoftwareGuide/Cover/Source
Fixed compile errors from Visual C++ 2019, saying: > ModelBasedSegmentation.cxx(285,31): error C2059: syntax error: 'itk::LinearInterpolateImageFunction... > ModelBasedSegmentation.cxx(288,3): error C2653: 'InterpolatorType': is not a class or namespace name > ModelBasedSegmentation.cxx(396,19): error C2039: 'StartRegistration': is not a member of 'itk::ImageToSpatialObjectRegistrationMethod<ImageType,EllipseType>' > VWColorSegmentation.cxx(32,44): error C2059: syntax error: 'itk::VectorConfidenceConnectedImageFilter... > VWColorSegmentation.cxx(36,3): error C2653: 'ConfidenceConnectedFilterType': is not a class or namespace name > VectorGradientAnisotropicDiffusionFilter.cxx(22,10): fatal error C1083: Cannot open include file: 'itkVectorCastImageFilter.h': No such file or directory
1 parent 2f8e7e8 commit ca70c18

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

SoftwareGuide/Cover/Source/ModelBasedSegmentation.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ int main( int argc, char *argv[] )
282282
MetricType::Pointer metric = MetricType::New();
283283

284284

285-
using InterpolatorType itk::LinearInterpolateImageFunction<
285+
using InterpolatorType = itk::LinearInterpolateImageFunction<
286286
ImageType, double >;
287287

288288
InterpolatorType::Pointer interpolator = InterpolatorType::New();
@@ -393,7 +393,7 @@ int main( int argc, char *argv[] )
393393

394394

395395
try {
396-
registration->StartRegistration();
396+
registration->Update();
397397
}
398398
catch( const itk::ExceptionObject & exp ) {
399399
std::cerr << "Exception caught ! " << std::endl;

SoftwareGuide/Cover/Source/VWColorSegmentation.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int main(int argc, char * argv[] )
2929
using ImageReaderType = itk::ImageFileReader< ImageType >;
3030
using ImageWriterType = itk::ImageFileWriter< OutputImageType >;
3131

32-
using ConfidenceConnectedFilterType itk::VectorConfidenceConnectedImageFilter<
32+
using ConfidenceConnectedFilterType = itk::VectorConfidenceConnectedImageFilter<
3333
ImageType,
3434
OutputImageType>;
3535

SoftwareGuide/Cover/Source/VectorGradientAnisotropicDiffusionFilter.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "itkImageFileReader.h"
2020
#include "itkImageFileWriter.h"
2121
#include "itkVectorGradientAnisotropicDiffusionImageFilter.h"
22-
#include "itkVectorCastImageFilter.h"
22+
#include "itkCastImageFilter.h"
2323
#include "itkRGBPixel.h"
2424

2525

@@ -48,7 +48,7 @@ int main( int argc, char * argv[] )
4848

4949
using WriterType = itk::ImageFileWriter< OutputImageType >;
5050

51-
using CasterType = itk::VectorCastImageFilter<
51+
using CasterType = itk::CastImageFilter<
5252
ImageType, OutputImageType >;
5353

5454
using FilterType = itk::VectorGradientAnisotropicDiffusionImageFilter<

0 commit comments

Comments
 (0)