diff --git a/Core/ComponentBaseClasses/elxFixedImagePyramidBase.hxx b/Core/ComponentBaseClasses/elxFixedImagePyramidBase.hxx index f9d881cd8..f13b9a32e 100644 --- a/Core/ComponentBaseClasses/elxFixedImagePyramidBase.hxx +++ b/Core/ComponentBaseClasses/elxFixedImagePyramidBase.hxx @@ -20,7 +20,10 @@ #include "elxFixedImagePyramidBase.h" #include "elxDeref.h" + +#ifndef __wasm32__ #include "itkImageFileCastWriter.h" +#endif namespace elastix { diff --git a/Core/ComponentBaseClasses/elxMovingImagePyramidBase.hxx b/Core/ComponentBaseClasses/elxMovingImagePyramidBase.hxx index de50added..0f0452b54 100644 --- a/Core/ComponentBaseClasses/elxMovingImagePyramidBase.hxx +++ b/Core/ComponentBaseClasses/elxMovingImagePyramidBase.hxx @@ -21,7 +21,10 @@ #include "elxMovingImagePyramidBase.h" #include "elxDeref.h" + +#ifndef __wasm32__ #include "itkImageFileCastWriter.h" +#endif namespace elastix { diff --git a/Core/ComponentBaseClasses/elxResamplerBase.hxx b/Core/ComponentBaseClasses/elxResamplerBase.hxx index 22ded08b6..b2cbe025d 100644 --- a/Core/ComponentBaseClasses/elxResamplerBase.hxx +++ b/Core/ComponentBaseClasses/elxResamplerBase.hxx @@ -22,7 +22,6 @@ #include "elxConversion.h" #include "elxDeref.h" -#include "itkImageFileCastWriter.h" #include "itkChangeInformationImageFilter.h" #include "itkAdvancedRayCastInterpolateImageFunction.h" #include "itkTimeProbe.h"