From 182accb18d5d44a2a8ba906fbf939c5729cdc552 Mon Sep 17 00:00:00 2001 From: Philip Cook Date: Sun, 10 Mar 2024 23:10:32 -0400 Subject: [PATCH] ENH/BUG: CompositeTransformUtil --disassemble prepended to the output prefix This makes it impossible to output transforms anywhere but the current working directory Now fixed to write prefix_{number}_{transformtype} rather than {number}_prefix_{transformtype} --- Examples/CompositeTransformUtil.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/CompositeTransformUtil.cxx b/Examples/CompositeTransformUtil.cxx index 6528d591b..3a4e6b811 100644 --- a/Examples/CompositeTransformUtil.cxx +++ b/Examples/CompositeTransformUtil.cxx @@ -70,7 +70,7 @@ Disassemble(itk::TransformBaseTemplate * transform, TransformPointer curXfrm = composite->GetNthTransform(i); auto * dispXfrm = dynamic_cast(curXfrm.GetPointer()); std::stringstream fname; - fname << std::setfill('0') << std::setw(2) << i << "_" << prefix << "_" << curXfrm->GetNameOfClass(); + fname << prefix << "_" << std::setfill('0') << std::setw(2) << i << "_" << curXfrm->GetNameOfClass(); if (dispXfrm != nullptr) { fname << ".nii.gz"; // if it's a displacement field transform