Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Resample over WarpImageFilter in Examples #809

Open
blowekamp opened this issue May 2, 2019 · 15 comments
Open

Use Resample over WarpImageFilter in Examples #809

blowekamp opened this issue May 2, 2019 · 15 comments
Assignees
Labels
area:Registration Issues affecting the Registration module status:Backlog Postponed without a fixed deadline

Comments

@blowekamp
Copy link
Member

These two filers apply deformation fields to images ( and vector images ). The same functionality now exist in the ResampleImageFilter.

Should these filters be deprecated to avoid confusion?

@blowekamp blowekamp added status:Needs info Further clarification or new data required area:Registration Issues affecting the Registration module labels May 2, 2019
@blowekamp
Copy link
Member Author

@thewtex @ntustison @hjmjohnson
Any thought on these classes?

@hjmjohnson
Copy link
Member

@blowekamp I am in favor of deprecating as long a documentation clearly expresses how to get the same results with ResampleImageFilter (Including an example refactoring).

Thanks Brad.

@blowekamp
Copy link
Member Author

Here is list of examples which use the WarpImageFilter:

Filtering/WarpImageFilter1.cxx
RegistrationITKv3/DeformableRegistration10.cxx
RegistrationITKv3/DeformableRegistration16.cxx
RegistrationITKv3/DeformableRegistration17.cxx
RegistrationITKv3/DeformableRegistration2.cxx
RegistrationITKv3/DeformableRegistration3.cxx
RegistrationITKv3/DeformableRegistration5.cxx
RegistrationITKv3/DeformableRegistration9.cxx
RegistrationITKv3/LandmarkWarping2.cxx
RegistrationITKv4/DeformableRegistration10.cxx
RegistrationITKv4/DeformableRegistration16.cxx
RegistrationITKv4/DeformableRegistration17.cxx
RegistrationITKv4/DeformableRegistration2.cxx
RegistrationITKv4/DeformableRegistration3.cxx
RegistrationITKv4/DeformableRegistration5.cxx
RegistrationITKv4/DeformableRegistration9.cxx
RegistrationITKv4/LandmarkWarping2.cxx

Looks like step one is to update those examples to use the ResampleImageFilter.

@blowekamp
Copy link
Member Author

We need to figure out what to do with the ITKv3 Registration examples...

@hjmjohnson
Copy link
Member

The ITKv3 examples should definitely be deprecated, and I would recommend removing them (as they are now confusing to users who accidentally end up in that directory.

@hjmjohnson
Copy link
Member

On second thought, perhaps we should just move them out of the "examples" directory and into a "testing" subdirectory as they may still have code coverage utility.

ITKv6 should evaluate if the ITKv3 framework is completely removed.

@blowekamp
Copy link
Member Author

blowekamp commented May 2, 2019

I agree that it is important to keep them as testing while we have the ITKv3 registration framework still there.

Tangentially related, ITKv4 registration framework now sounds old. Perhaps is would have been better to call the old one "legacy" registration framework, and just call the current one "the registration framework". I'm not sure how often it's called ITKv4 registration framework.

@blowekamp blowekamp removed the status:Needs info Further clarification or new data required label May 3, 2019
@blowekamp
Copy link
Member Author

It would take quite a bit of effort to fully remove the warp filters now. There are a number of filters still using them.

The examples are the important things to update now to just use the ResampleImageFilter. I'll try to knock these off little by little.

@hjmjohnson
Copy link
Member

It would take quite a bit of effort to fully remove the warp filters now. There are a number of filters still using them.

The examples are the important things to update now to just use the ResampleImageFilter. I'll try to knock these off little by little.

@blowekamp Thanks. I appreciate the efforts.

@blowekamp blowekamp changed the title Deprecate WarpImageFilter and WarpVectorImageFilter Use Resample over WarpImageFilter in Examples May 17, 2019
@dzenanz
Copy link
Member

dzenanz commented Jun 13, 2019

Can this now be closed? There was some work on this topic over the past month.

@blowekamp
Copy link
Member Author

blowekamp commented Jun 13, 2019

There is still quite a number of examples which should be updated.

@dzenanz
Copy link
Member

dzenanz commented Jul 23, 2019

I just noticed compile errors in non-default module ITKFEMRegistration:
C:\Dashboard\ITK\Modules\Registration\FEM\include\itkFEMRegistrationFilter.h(166): error C2061: syntax error: identifier 'VectorInterpolateImageFunction' [C:\Dashboard\ITK-build\Modules\Registration\FEM\test\ITKFEMRegistrationTestDriver.vcxproj]. Is this on your radar @blowekamp?

@blowekamp
Copy link
Member Author

Nope, I hadn't seen this before. Is it more related to one of my changes or @maekclena changes?

@dzenanz
Copy link
Member

dzenanz commented Jul 23, 2019

Failures started on 2019-07-08. The probable culprit is 9ef036a, by @maekclena.

@stale
Copy link

stale bot commented Nov 20, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status:Backlog Postponed without a fixed deadline label Nov 20, 2019
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this issue Nov 19, 2020
Run the UpdateFromUpstream.sh script to extract upstream VNL
using the following shell commands.

$ git archive --prefix=upstream-vnl/ f5c93ed9 -- 
      CMakeLists.txt
      config/cmake
      core/CMakeLists.txt
      core/testlib
      core/vnl
      core/vxl_config.h.in
      core/vxl_copyright.h
      core/vxl_version.h
      v3p/CMakeLists.txt
      v3p/netlib
      vcl
 | tar x
$ git shortlog --perl-regexp --author='^((?!Kitware Robot).*)$' --no-merges --abbrev=8 --format='%h %s' a302a89b..f5c93ed9

Drew Gilliam (3):
      869d8c77 contrib/brl - update vxl_configure_file locations, and add HEADER_BINARY_DIR to vxl_add_library for appropriate BUILD_INTERFACE on targets
      38e108cf bvgl_algo - use brl_resource_file for bvgl_eulerspiral_lookup_table resource
      7437c02b bsgm_prob_pairwise_dsm bug fix - favor std::is_same over other methods for template type discovery

Hans Johnson (1):
      f5c93ed9 ENH: Add front() and back() members to vnl_vector and vnl_vector_fixed

Joseph Mundy (14):
      c320d11e templated appearance over input image type
      ad1ab6b0 modify bsgm to handle 16 bit input images
      c9e57958 added 2x processing
      a63bf124 remove debug statements
      bded9867 modified scale for 11 bits vs 8 bits
      5adc3edd restructure 16 bit dynamic range interface
      b16e0d25 added print for dynamic range setting
      7c2914c7 add comments and a few cleanups
      03ef4efe moved error checking .h to dispairity estimator .h
      5524102f add include for <limits>
      cb439258 fixed duplicate scale_0 in prob_pairwise
      596e40a9 add grid index for float data
      57f3d9b1 add .h file
      d4acae8a fix inconsistent pointset append cases

Noah Johnson (1):
      dd42c4fa ENH: vgl_io_pointset_3d (InsightSoftwareConsortium#809)

Tim Cootes (3):
      31bd3efa Added option
      f8c7778b Added line styles
      15d4a216 Added option to save separate frames

Change-Id: I444432535c0a8054edf7903eb549b2710514c730
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this issue Nov 20, 2020
Run the UpdateFromUpstream.sh script to extract upstream VNL
using the following shell commands.

$ git archive --prefix=upstream-vnl/ 3d3e8683 -- 
      CMakeLists.txt
      config/cmake
      core/CMakeLists.txt
      core/testlib
      core/vnl
      core/vxl_config.h.in
      core/vxl_copyright.h
      core/vxl_version.h
      v3p/CMakeLists.txt
      v3p/netlib
      vcl
 | tar x
$ git shortlog --perl-regexp --author='^((?!Kitware Robot).*)$' --no-merges --abbrev=8 --format='%h %s' a302a89b..3d3e8683

Drew Gilliam (3):
      869d8c77 contrib/brl - update vxl_configure_file locations, and add HEADER_BINARY_DIR to vxl_add_library for appropriate BUILD_INTERFACE on targets
      38e108cf bvgl_algo - use brl_resource_file for bvgl_eulerspiral_lookup_table resource
      7437c02b bsgm_prob_pairwise_dsm bug fix - favor std::is_same over other methods for template type discovery

Hans Johnson (2):
      f5c93ed9 ENH: Add front() and back() members to vnl_vector and vnl_vector_fixed
      3d3e8683 DOC: Grammer change in comment

Joseph Mundy (14):
      c320d11e templated appearance over input image type
      ad1ab6b0 modify bsgm to handle 16 bit input images
      c9e57958 added 2x processing
      a63bf124 remove debug statements
      bded9867 modified scale for 11 bits vs 8 bits
      5adc3edd restructure 16 bit dynamic range interface
      b16e0d25 added print for dynamic range setting
      7c2914c7 add comments and a few cleanups
      03ef4efe moved error checking .h to dispairity estimator .h
      5524102f add include for <limits>
      cb439258 fixed duplicate scale_0 in prob_pairwise
      596e40a9 add grid index for float data
      57f3d9b1 add .h file
      d4acae8a fix inconsistent pointset append cases

Noah Johnson (1):
      dd42c4fa ENH: vgl_io_pointset_3d (InsightSoftwareConsortium#809)

Tim Cootes (3):
      31bd3efa Added option
      f8c7778b Added line styles
      15d4a216 Added option to save separate frames

Change-Id: I8a2d3efb415942488161724a6a3880b3a7032e13
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this issue Nov 20, 2020
Run the UpdateFromUpstream.sh script to extract upstream VNL
using the following shell commands.

$ git archive --prefix=upstream-vnl/ 3d3e8683 -- 
      CMakeLists.txt
      config/cmake
      core/CMakeLists.txt
      core/testlib
      core/vnl
      core/vxl_config.h.in
      core/vxl_copyright.h
      core/vxl_version.h
      v3p/CMakeLists.txt
      v3p/netlib
      vcl
 | tar x
$ git shortlog --perl-regexp --author='^((?!Kitware Robot).*)$' --no-merges --abbrev=8 --format='%h %s' a302a89b..3d3e8683

Drew Gilliam (3):
      869d8c77 contrib/brl - update vxl_configure_file locations, and add HEADER_BINARY_DIR to vxl_add_library for appropriate BUILD_INTERFACE on targets
      38e108cf bvgl_algo - use brl_resource_file for bvgl_eulerspiral_lookup_table resource
      7437c02b bsgm_prob_pairwise_dsm bug fix - favor std::is_same over other methods for template type discovery

Hans Johnson (2):
      f5c93ed9 ENH: Add front() and back() members to vnl_vector and vnl_vector_fixed
      3d3e8683 DOC: Grammer change in comment

Joseph Mundy (14):
      c320d11e templated appearance over input image type
      ad1ab6b0 modify bsgm to handle 16 bit input images
      c9e57958 added 2x processing
      a63bf124 remove debug statements
      bded9867 modified scale for 11 bits vs 8 bits
      5adc3edd restructure 16 bit dynamic range interface
      b16e0d25 added print for dynamic range setting
      7c2914c7 add comments and a few cleanups
      03ef4efe moved error checking .h to dispairity estimator .h
      5524102f add include for <limits>
      cb439258 fixed duplicate scale_0 in prob_pairwise
      596e40a9 add grid index for float data
      57f3d9b1 add .h file
      d4acae8a fix inconsistent pointset append cases

Noah Johnson (1):
      dd42c4fa ENH: vgl_io_pointset_3d (InsightSoftwareConsortium#809)

Tim Cootes (3):
      31bd3efa Added option
      f8c7778b Added line styles
      15d4a216 Added option to save separate frames

Change-Id: I8a2d3efb415942488161724a6a3880b3a7032e13
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this issue Nov 20, 2020
Run the UpdateFromUpstream.sh script to extract upstream VNL
using the following shell commands.

$ git archive --prefix=upstream-vnl/ 3d3e8683 -- 
      CMakeLists.txt
      config/cmake
      core/CMakeLists.txt
      core/testlib
      core/vnl
      core/vxl_config.h.in
      core/vxl_copyright.h
      core/vxl_version.h
      v3p/CMakeLists.txt
      v3p/netlib
      vcl
 | tar x
$ git shortlog --perl-regexp --author='^((?!Kitware Robot).*)$' --no-merges --abbrev=8 --format='%h %s' a302a89b..3d3e8683

Drew Gilliam (3):
      869d8c77 contrib/brl - update vxl_configure_file locations, and add HEADER_BINARY_DIR to vxl_add_library for appropriate BUILD_INTERFACE on targets
      38e108cf bvgl_algo - use brl_resource_file for bvgl_eulerspiral_lookup_table resource
      7437c02b bsgm_prob_pairwise_dsm bug fix - favor std::is_same over other methods for template type discovery

Hans Johnson (2):
      f5c93ed9 ENH: Add front() and back() members to vnl_vector and vnl_vector_fixed
      3d3e8683 DOC: Grammer change in comment

Joseph Mundy (14):
      c320d11e templated appearance over input image type
      ad1ab6b0 modify bsgm to handle 16 bit input images
      c9e57958 added 2x processing
      a63bf124 remove debug statements
      bded9867 modified scale for 11 bits vs 8 bits
      5adc3edd restructure 16 bit dynamic range interface
      b16e0d25 added print for dynamic range setting
      7c2914c7 add comments and a few cleanups
      03ef4efe moved error checking .h to dispairity estimator .h
      5524102f add include for <limits>
      cb439258 fixed duplicate scale_0 in prob_pairwise
      596e40a9 add grid index for float data
      57f3d9b1 add .h file
      d4acae8a fix inconsistent pointset append cases

Noah Johnson (1):
      dd42c4fa ENH: vgl_io_pointset_3d (InsightSoftwareConsortium#809)

Tim Cootes (3):
      31bd3efa Added option
      f8c7778b Added line styles
      15d4a216 Added option to save separate frames

Change-Id: I8a2d3efb415942488161724a6a3880b3a7032e13
hjmjohnson pushed a commit that referenced this issue Nov 21, 2020
Run the UpdateFromUpstream.sh script to extract upstream VNL
using the following shell commands.

$ git archive --prefix=upstream-vnl/ 3d3e8683 -- 
      CMakeLists.txt
      config/cmake
      core/CMakeLists.txt
      core/testlib
      core/vnl
      core/vxl_config.h.in
      core/vxl_copyright.h
      core/vxl_version.h
      v3p/CMakeLists.txt
      v3p/netlib
      vcl
 | tar x
$ git shortlog --perl-regexp --author='^((?!Kitware Robot).*)$' --no-merges --abbrev=8 --format='%h %s' a302a89b..3d3e8683

Drew Gilliam (3):
      869d8c77 contrib/brl - update vxl_configure_file locations, and add HEADER_BINARY_DIR to vxl_add_library for appropriate BUILD_INTERFACE on targets
      38e108cf bvgl_algo - use brl_resource_file for bvgl_eulerspiral_lookup_table resource
      7437c02b bsgm_prob_pairwise_dsm bug fix - favor std::is_same over other methods for template type discovery

Hans Johnson (2):
      f5c93ed9 ENH: Add front() and back() members to vnl_vector and vnl_vector_fixed
      3d3e8683 DOC: Grammer change in comment

Joseph Mundy (14):
      c320d11e templated appearance over input image type
      ad1ab6b0 modify bsgm to handle 16 bit input images
      c9e57958 added 2x processing
      a63bf124 remove debug statements
      bded9867 modified scale for 11 bits vs 8 bits
      5adc3edd restructure 16 bit dynamic range interface
      b16e0d25 added print for dynamic range setting
      7c2914c7 add comments and a few cleanups
      03ef4efe moved error checking .h to dispairity estimator .h
      5524102f add include for <limits>
      cb439258 fixed duplicate scale_0 in prob_pairwise
      596e40a9 add grid index for float data
      57f3d9b1 add .h file
      d4acae8a fix inconsistent pointset append cases

Noah Johnson (1):
      dd42c4fa ENH: vgl_io_pointset_3d (#809)

Tim Cootes (3):
      31bd3efa Added option
      f8c7778b Added line styles
      15d4a216 Added option to save separate frames

Change-Id: I8a2d3efb415942488161724a6a3880b3a7032e13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Registration Issues affecting the Registration module status:Backlog Postponed without a fixed deadline
Projects
None yet
Development

No branches or pull requests

3 participants