From 022aa6cdaaa5621f3d6b2f245c388a9669cc7ef9 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Sat, 26 Aug 2023 15:46:52 -0400 Subject: [PATCH] COMP: Do not write transforms to file with wasm In itkElastixRegistrationMethod.hxx. --- Core/Main/itkElastixRegistrationMethod.hxx | 2 ++ 1 file changed, 2 insertions(+) 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 } }