Skip to content

Commit e5428a8

Browse files
committed
COMP: Do not write transforms to file with wasm
In itkElastixRegistrationMethod.hxx.
1 parent 65c2103 commit e5428a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Core/Main/itkElastixRegistrationMethod.hxx

+2
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,15 @@ ElastixRegistrationMethod<TFixedImage, TMovingImage>::GenerateData()
268268
{
269269
const auto transformFileName = "InitialTransform." + std::to_string(i) + '.' + outputFileNameExtension;
270270

271+
#ifndef __wasm32__
271272
// Write the external transform to file.
272273
elx::TransformIO::Write(elx::Deref(externalTransform), m_OutputDirectory + transformFileName);
273274

274275
// Store the name of the written transform file.
275276
transformFound->second = { "File" };
276277
transformParameterMap["TransformFileName"] = { transformFileName };
277278
transformParameterMap.erase("TransformAddress");
279+
#endif
278280
}
279281
}
280282

0 commit comments

Comments
 (0)