Skip to content

spectral command line applications cannot read a vectorImage spectrum #912

Description

@cyrilmory

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions