Skip to content

Add casting from RGB to single channel #18

@grzanka

Description

@grzanka

Add an algorithm which could be used to cast RGB images to single channel. There should be couple of options for casting: choose R, G or B or use sqrt(R^2+G^2+B^2).

This way "photos" or "scanned images" could be easily converted into single-channel images suitable for further processing (and displaying using colorbar).

Having this option one coule have following logic to display images on left panel:

  • if user uploads RGB image ("picture of cat") it is displayed as normal photo, without colorbar scale.
  • if user uploads single channel image ("tiff file with experimental data") it is displayed with proper colorbar scale, helping users to interpret the values.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions