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