Spectral filters have been updated to accept either a 2D vectorImage or a 3D image for the incident spectrum, but the command line applications that instantiate them still read the incident spectrum only as a 3D image.
When the spectrum is actually a vectorImage on disk, this ends up causing an ITKException in the GenerateInputRequestedRegion of the spectral filter because the size of the spectrum is incorrect.
This issue affects :
- rtkspectralforwardmodel
- rtkspectralsimplexdecomposition
- rtkspectralonestep
A solution would be to first read the image's header, and then read the image with the correct type.