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

Improve interoperability of spectral filters #683

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

cyrilmory
Copy link
Contributor

Changed the image type of the incident spectrum in two-steps spectral filters to match that of the one-step filter (backward-compatible thanks to overloaded SetInput functions)
Overloaded the SetInput functions of the spectral one-step filter to accept the image type used by the two-steps filters.

…ectorImage

Two-steps spectral filters use itk::VectorImages as inputs, while
rtkMechlemOneStepSpectralReconstructionFilter used itk::Image<itk::Vector>
Overloaded SetInput methods now allow to use the same image for one-step
and two-steps spectral reconstructions.
Added a test case in rtkspectralonesteptest to test the overload
Two-steps spectral filters used itk::VectorImage<float, 2> as input format for
the incidentSpectrum, while the one-step uses itk::Image<float, 3>, which
is simpler. This commit modified the two-steps filters to use the
same input format as the one-step one
Now that the two-step filters use an itk::Image<float, 3> as format
for the incidentSpectrum, the test data must be modified accordingly
Fix a bug where the iterators on the incident spectrum images
were moving to fast (same change as performed on the SpectralForwardModel
earlier)
…tral filters

The SetInputIncidentSpectrum and SetInputSecondIncidentSpectrum have previously
been modified to take as input an itk::Image<float, 3> instead of an
itk::VectorImage<float, 2>. This commit adds overloaded versions of these
functions which use the old image type for backward compatibility
Those filters had been updated in C++ but their wrappings had not
The test must use both the newly formatted data for incidentSpectrum
and the old one for legacy testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant