ANTs icon indicating copy to clipboard operation
ANTs copied to clipboard

Time series options in ImageMath

Open s-kash opened this issue 4 years ago • 1 comments

Describe the problem I remember the following options worked in an older version of ANTs 2.1.0(?): TimeSeriesSimpleSubtraction, TimeSeriesSurroundSubtraction, TimeSeriesSincSubtraction and SplitAlternatingTimeSeries.

SplitAlternatingTimeSeries error: terminate called after throwing an instance of 'itk::ExceptionObject' what(): /home/sri/ANTs/Build/staging/include/ITK-5.1/itkImageSource.hxx:273: itk::ERROR: SplitAlternatingTimeSeriesImageFilter(0x560e1b2efe70): Subclass should override this method!!! If old behavior is desired invoke this->DynamicMultiThreadingOff(); before Update() is called. The best place is in class constructor. Aborted (core dumped)

Subtraction error(?): The time series subtraction options are absent.

To Reproduce ImageMath 4 split_.nii.gz SplitAlternatingTimeSeries test_asl.nii.gz ImageMath 4 perf_simpsub.nii.gz TimeSeriesSimpleSubtraction test_asl.nii.gz ImageMath 4 perf_surrsub.nii.gz TimeSeriesSurroundSubtraction test_asl.nii.gz ImageMath 4 perf_sincsub.nii.gz TimeSeriesSincSubtraction test_asl.nii.gz

System information (please complete the following information)

  • OS: Ubuntu
  • OS version: 18.04.04
  • Type of system: Desktop

ANTs version information

  • ANTs code version: ANTs Version: 2.3.3.dev163-g76a49
  • ANTs installation type: Compiled from git source

Additional information Would it too much trouble to include these options back in ImageMath?

Thanks, Sri

s-kash avatar May 27 '20 20:05 s-kash

These errors appear to relate to changes in ITK multi-threading. I can't figure out why, but it looks like the GenerateThreadedData method in (eg) itkSplitAlternatingTimeSeriesImageFilter.hxx is not being called.

cookpa avatar Mar 12 '21 20:03 cookpa