Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ParaView ParaView
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,860
    • Issues 1,860
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 95
    • Merge requests 95
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ParaView
  • ParaViewParaView
  • Issues
  • #17151
Closed
Open
Created Feb 04, 2017 by Magician@Magician

Load Image -> CopyStructure(), GetArray() and AddArray() -> 'Save Data...' cannot work??

  1. Load some image data. (*.png etc.)
  2. Apply Programmable Filter.
  3. Apply 'Save Data...' to the Programmable Filter, but no data is saved with some warning.

The setting of the Programmable Filter is as follows:

# Output Data Set Type: Same as Input
# Script:
pdi = self.GetInput()
pdo = self.GetOutput()

pdo.CopyStructure(pdi)
pdo.GetPointData().AddArray(pdi.GetPointData().GetArray('PNGImage'))

And the warning is as follows:

Warning: In /Users/kitware/buildbot-slave/b99e1795/source-paraview/VTK/IO/Image/vtkPNGWriter.cxx, line 231
vtkPNGWriter (0x6000005a8260): PNGWriter only supports unsigned char and unsigned short inputs

This is just a tiny example. The actual codes are heavily complicated, but they also have the same issue.

This issue happens PV 5.2.0 or older version.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking