Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 833
    • Issues 833
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 240
    • Merge requests 240
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTKVTK
  • Issues
  • #18314
Closed
Open
Issue created Sep 19, 2021 by Yongchao Wang@YcWung

vtkOpenGLTexture change gray image to RGBA

In some time from version 8 to version 9, vtkOpenGLTexture transforms images with 1 or 2 channels to RGBA format. see around line 277:


        // make sure using unsigned char data of color scalars type
        if (this->IsDepthTexture != 1 &&
          (!directColors || inscalars->GetNumberOfComponents() < 3 || resampleNeeded))

Why do this? It costs vtkImageActor a lot of time to render a large gray image.

Assignee
Assign to
Time tracking