diff --git a/Core/Main/itkElastixRegistrationMethod.hxx b/Core/Main/itkElastixRegistrationMethod.hxx index 4f2e6232c..97dc637b2 100644 --- a/Core/Main/itkElastixRegistrationMethod.hxx +++ b/Core/Main/itkElastixRegistrationMethod.hxx @@ -268,6 +268,7 @@ ElastixRegistrationMethod::GenerateData() { const auto transformFileName = "InitialTransform." + std::to_string(i) + '.' + outputFileNameExtension; +#ifndef __wasm32__ // Write the external transform to file. elx::TransformIO::Write(elx::Deref(externalTransform), m_OutputDirectory + transformFileName); @@ -275,6 +276,7 @@ ElastixRegistrationMethod::GenerateData() transformFound->second = { "File" }; transformParameterMap["TransformFileName"] = { transformFileName }; transformParameterMap.erase("TransformAddress"); +#endif } }