Skip to content

spectral command line applications cannot read a vectorImage spectrum #912

@cyrilmory

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions