Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L Lima-tango-python
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • LimaGroup
  • Lima-tango-python
  • Issues
  • #29

Closed
Open
Created Aug 24, 2020 by Stuart Fisher@sfisherOwner

[bpm] option for bayer decoding

@berruyer asked if its possible for the bpm-web viewer to show images in colour.

I think it should be possible to add an option to return colour image, for instance bayer decode.

I'm not quite sure how you get hold of the image mode and thus know if you need to bayer decode, somewhere here: https://gitlab.esrf.fr/limagroup/Lima-tango-python/-/blob/master/plugins/Bpm.py#L657

In my video streamer i do something along the lines of

            if cv2:
                if image_mode >= 11 or image_mode <= 14:
                    data = cv2.cvtColor(data, cv2.COLOR_BAYER_RG2RGB)

where image_mode comes from the image header

Edited Aug 24, 2020 by Stuart Fisher
Assignee
Assign to
Time tracking