WIP: Tests for "streaming for resample image filter in case of linear transforms"#84
Conversation
… imaging (SDI) and without SDI
|
@romangrothausmann Happy New Year! 🍾 One of my resolutions is to get this awesome contribution in :-) Would you mind, please
We have the CI working on Thanks! |
jhlegarreta
left a comment
There was a problem hiding this comment.
Nice job. Some specific comments in-line to improve the tests, save typing, etc.
|
Created PR #392 according to #84 (comment). @jhlegarreta Thanks for all your valuable comments. The code of As some changes were done on the tests to conform to the ITK5 standards, I guess |
@romangrothausmann It is true that many tests in master still do not benefit from the use of the macros, but for any new test we write or any test we modify, I'd say that we should converge to using them for the reasosn stated. |
|
@romangrothausmann fantastic, thanks! Should we close this PR, then?
We have a pre-defined set of commit subject prefixes, such as https://github.com/InsightSoftwareConsortium/ITK/blob/master/CONTRIBUTING.md#create-a-topic
Once it comes time for someone else to review, it is very helpful resolve the story versus presenting its evolution. This prevents reviewer from identifying issues in a commit that may be fixed or changed later. Also, the tree is always in a good, working state, no matter what commit is checked out. And, porting bug fixes and features to another branch is possible with |
|
Thanks @jhlegarreta and @thewtex for your replies.
I'm sorry, I thought there would be a subject prefix
I see and am happy to adapt. |
|
Thanks @romangrothausmann ! An inline comment on the boolean methods checks. |
…lter Squashed commit of the following: commit 6b59a58 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Thu Jan 24 10:28:29 2019 +0100 ENH: new test are expected to fail as long as: itkResampleFilter does not support streaming for linear transforms GH PR InsightSoftwareConsortium#82 commit 9b63a48 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Wed Jan 23 14:45:46 2019 +0100 ENH: improvements suggested by @jhlegarreta: see InsightSoftwareConsortium#84 (review) commit 1b922ae Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Oct 23 08:26:39 2018 +0200 ENH: mark resample as modified to enforce re-execution of filter chain commit a6682b0 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Wed Jan 23 13:17:00 2019 +0100 ENH: test for comparing output with stream driven imaging (SDI) and without based on itkWarpImageFilterTest2.cxx and itkResampleImageTest.cxx commit ff8e5df Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Mon Oct 22 15:24:04 2018 +0200 ENH: plain copy of itkResampleImageTest4.cxx and its cmake commit 97f3073 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 15:16:55 2018 +0200 ENH: verify streaming for linear case commit 2e871f1 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 15:05:58 2018 +0200 TEST: demand streaming and employ where possible commit ca68f7f Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Wed Sep 26 15:05:43 2018 +0200 TEST: write MHAs (which support streaming) instead of PNGs commit 56b6c25 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 14:57:59 2018 +0200 TEST: employ itkResampleImageTest2s, still the same as itkResampleImageTest2 commit 4a20d6a Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 14:54:50 2018 +0200 ENH: plain copy of itkResampleImageTest2.cxx and its cmake
…lter Squashed commit of the following: commit e5d421f Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Thu Jan 24 10:28:29 2019 +0100 ENH: new test are expected to fail as long as: itkResampleFilter does not support streaming for linear transforms GH PR InsightSoftwareConsortium#82 commit 6067a02 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Wed Jan 23 14:45:46 2019 +0100 ENH: improvements suggested by @jhlegarreta: see InsightSoftwareConsortium#84 (review) commit 4118d20 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Oct 23 08:26:39 2018 +0200 ENH: mark resample as modified to enforce re-execution of filter chain commit 375eac5 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Wed Jan 23 13:17:00 2019 +0100 ENH: test for comparing output with stream driven imaging (SDI) and without based on itkWarpImageFilterTest2.cxx and itkResampleImageTest.cxx commit a7f066a Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Mon Oct 22 15:24:04 2018 +0200 ENH: plain copy of itkResampleImageTest4.cxx and its cmake commit a7fbd1c Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Mon Oct 22 13:51:59 2018 +0200 ENH: verify streaming is not possible for non-linear case commit 21771f8 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 15:16:55 2018 +0200 ENH: verify streaming for linear case commit 1c66653 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 15:05:58 2018 +0200 TEST: demand streaming and employ where possible commit 89fd06c Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Wed Sep 26 15:05:43 2018 +0200 TEST: write MHAs (which support streaming) instead of PNGs commit 18efabd Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 14:57:59 2018 +0200 TEST: employ itkResampleImageTest2s, still the same as itkResampleImageTest2 commit c4d64b5 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 14:54:50 2018 +0200 ENH: plain copy of itkResampleImageTest2.cxx and its cmake
…lter Squashed commit of the following: commit e5d421f Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Thu Jan 24 10:28:29 2019 +0100 ENH: new test are expected to fail as long as: itkResampleFilter does not support streaming for linear transforms GH PR InsightSoftwareConsortium#82 commit 6067a02 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Wed Jan 23 14:45:46 2019 +0100 ENH: improvements suggested by @jhlegarreta: see InsightSoftwareConsortium#84 (review) commit 4118d20 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Oct 23 08:26:39 2018 +0200 ENH: mark resample as modified to enforce re-execution of filter chain commit 375eac5 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Wed Jan 23 13:17:00 2019 +0100 ENH: test for comparing output with stream driven imaging (SDI) and without based on itkWarpImageFilterTest2.cxx and itkResampleImageTest.cxx commit a7f066a Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Mon Oct 22 15:24:04 2018 +0200 ENH: plain copy of itkResampleImageTest4.cxx and its cmake commit a7fbd1c Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Mon Oct 22 13:51:59 2018 +0200 ENH: verify streaming is not possible for non-linear case commit 21771f8 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 15:16:55 2018 +0200 ENH: verify streaming for linear case commit 1c66653 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 15:05:58 2018 +0200 TEST: demand streaming and employ where possible commit 89fd06c Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Wed Sep 26 15:05:43 2018 +0200 TEST: write MHAs (which support streaming) instead of PNGs commit 18efabd Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 14:57:59 2018 +0200 TEST: employ itkResampleImageTest2s, still the same as itkResampleImageTest2 commit c4d64b5 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 14:54:50 2018 +0200 ENH: plain copy of itkResampleImageTest2.cxx and its cmake
…lter Squashed commit of the following: commit e5d421f Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Thu Jan 24 10:28:29 2019 +0100 ENH: new test are expected to fail as long as: itkResampleFilter does not support streaming for linear transforms GH PR InsightSoftwareConsortium#82 commit 6067a02 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Wed Jan 23 14:45:46 2019 +0100 ENH: improvements suggested by @jhlegarreta: see InsightSoftwareConsortium#84 (review) commit 4118d20 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Oct 23 08:26:39 2018 +0200 ENH: mark resample as modified to enforce re-execution of filter chain commit 375eac5 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Wed Jan 23 13:17:00 2019 +0100 ENH: test for comparing output with stream driven imaging (SDI) and without based on itkWarpImageFilterTest2.cxx and itkResampleImageTest.cxx commit a7f066a Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Mon Oct 22 15:24:04 2018 +0200 ENH: plain copy of itkResampleImageTest4.cxx and its cmake commit a7fbd1c Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Mon Oct 22 13:51:59 2018 +0200 ENH: verify streaming is not possible for non-linear case commit 21771f8 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 15:16:55 2018 +0200 ENH: verify streaming for linear case commit 1c66653 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 15:05:58 2018 +0200 TEST: demand streaming and employ where possible commit 89fd06c Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Wed Sep 26 15:05:43 2018 +0200 TEST: write MHAs (which support streaming) instead of PNGs commit 18efabd Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 14:57:59 2018 +0200 TEST: employ itkResampleImageTest2s, still the same as itkResampleImageTest2 commit c4d64b5 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 14:54:50 2018 +0200 ENH: plain copy of itkResampleImageTest2.cxx and its cmake
This reverts commit e5d421f. because InsightSoftwareConsortium#392 (replaced InsightSoftwareConsortium#84) was merged in bc4e197
Squashed commit of the following: commit 2cdc0ee Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Feb 5 12:56:06 2019 +0100 Revert "ENH: new test are expected to fail as long as:": This reverts commit e5d421f. because InsightSoftwareConsortium#392 (replaced InsightSoftwareConsortium#84) was merged in bc4e197 commit d62cbd4 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Fri Sep 28 11:55:28 2018 +0200 BUG: use ITK_NULLPTR instead of identityTransform commit 9c0b04c Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Thu Sep 27 12:45:50 2018 +0200 ENH: add transform to ImageAlgorithm::EnlargeRegionOverBox commit 5b8eaf5 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 14:07:50 2018 +0200 ENH: use ImageAlgorithm::EnlargeRegionOverBox instead commit d6c44ea Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Thu Aug 30 13:05:31 2018 +0200 ENH: Method to compute InputRequestedRegion in itkResampleImageFilter based on suggestions from: https://discourse.itk.org/t/why-resampleimagefilter-is-slow/1217/14 https://itk.org/pipermail/insight-users/2015-April/051877.html and code from itkImageAlgorithm of v4.13.1 (based on commit 8510db2)
Squashed commit of the following: commit ae8eb62 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Thu Feb 7 15:56:57 2019 +0100 BUG: corrections from @thewtex in PR InsightSoftwareConsortium#469 commit 2cdc0ee Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Feb 5 12:56:06 2019 +0100 Revert "ENH: new test are expected to fail as long as:": This reverts commit e5d421f. because InsightSoftwareConsortium#392 (replaced InsightSoftwareConsortium#84) was merged in bc4e197 commit d62cbd4 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Fri Sep 28 11:55:28 2018 +0200 BUG: use ITK_NULLPTR instead of identityTransform commit 9c0b04c Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Thu Sep 27 12:45:50 2018 +0200 ENH: add transform to ImageAlgorithm::EnlargeRegionOverBox commit 5b8eaf5 Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Tue Sep 25 14:07:50 2018 +0200 ENH: use ImageAlgorithm::EnlargeRegionOverBox instead commit d6c44ea Author: Roman Grothausmann <romangrothausmann@users.noreply.github.com> Date: Thu Aug 30 13:05:31 2018 +0200 ENH: Method to compute InputRequestedRegion in itkResampleImageFilter based on suggestions from: https://discourse.itk.org/t/why-resampleimagefilter-is-slow/1217/14 https://itk.org/pipermail/insight-users/2015-April/051877.html and code from itkImageAlgorithm of v4.13.1 (based on commit 8510db2)
This reverts commit e5d421f. because InsightSoftwareConsortium#392 (replaced InsightSoftwareConsortium#84) was merged in bc4e197
PR for only the tests that are expected to succeed with #82 in order to check their outcome without the changes to
itkResampleImageFilter(which currently appear to effect other tests (likeitkMultiResolutionPyramidImageFilterWithResampleFilterTest) as well)