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 Oct 1, 2023
1 parent 1054467 commit 022aa6c
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 @@ -268,13 +268,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(elx::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 022aa6c

Please sign in to comment.