8000 Make DefaultLUTService use IOService · Issue #81 · imagej/imagej-common · GitHub
[go: up one dir, main page]

Skip to content
Make DefaultLUTService use IOService #81
@stelfrich

Description

@stelfrich

DefaultLUTService.legacyTextLUT uses TableLoader.valuesFromTextFile to read a LUT from a CSV files. Since this is the only use of TableLoader.valuesFromTextFile in our codebase we should retire it in favor of implementations in scijava-plugins-io-table. See also scijava/scijava-plugins-io-table#4 (comment).

This, however, poses several challenges/tasks (in no particular order):

  1. Should LUTService still support reading of LUTs from InputStream? If so, such requests can't be handled by IOService. Is that correct, @ctrueden?
  2. We should migrate code for reading LUTs from InputStreams into dedicated IOPlugins
  3. Basically, strip down the LUTService to pass requests to IOService and fail gracefully if a LUT can't be read (which doesn't work for InputStreams - see 1.)

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

      0