Skip to content

Commit

Permalink
COMP: Do not write transforms to file with wasm
Browse files Browse the repository at this point in the history
In itkElastixRegistrationMethod.hxx.
  • Loading branch information
thewtex committed Jul 18, 2024
1 parent fa0c4d8 commit 8af959c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Core/Main/itkElastixRegistrationMethod.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,15 @@ ElastixRegistrationMethod<TFixedImage, TMovingImage>::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);

// Store the name of the written transform file.
transformFound->second = { "File" };
transformParameterMap["TransformFileName"] = { transformFileName };
transformParameterMap.erase("TransformAddress");
#endif
}
}

Expand Down

0 comments on commit 8af959c

Please sign in to comment.