I am using elastix as a library, and want to get the affine transformation matrix. The registration works pretty good 👍 . However, the final applying of the transformation tooks really long time, which I don't understand.
I have 3D image, about 400x400x300, the registration tooks around 40sec, however, the final applying taks nearly 3min. I further add some debug code, it shows that most time is spend on elxResamplerBase::CreateItkResultImage(.) by the ResampleImageFilter. I assume during the registration, many times of resample happend, how could the last application took so long time? I also tried manually call resampleImageFilter on my image, with affine transformation, it is about 10sec. So What I see in the code , is that you have elxMyStandardResampler, wrap around itk resample image filter.
Actually, I don't need this image. I tried to set WriteResultImage to false. However, because it is running as library, I think it will create this image. I tried to false writeResultImage to false in code, then some exception will happen. what is the proper way to skip this time consuming step ?
I am using elastix as a library, and want to get the affine transformation matrix. The registration works pretty good 👍 . However, the final applying of the transformation tooks really long time, which I don't understand.
I have 3D image, about 400x400x300, the registration tooks around 40sec, however, the final applying taks nearly 3min. I further add some debug code, it shows that most time is spend on elxResamplerBase::CreateItkResultImage(.) by the ResampleImageFilter. I assume during the registration, many times of resample happend, how could the last application took so long time? I also tried manually call resampleImageFilter on my image, with affine transformation, it is about 10sec. So What I see in the code , is that you have elxMyStandardResampler, wrap around itk resample image filter.
Actually, I don't need this image. I tried to set WriteResultImage to false. However, because it is running as library, I think it will create this image. I tried to false writeResultImage to false in code, then some exception will happen. what is the proper way to skip this time consuming step ?