Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 VTK 中,是否可以将绘图(例如 vtkChartXY 示例http://www.itk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot)渲染到 RGB 值数组?
该支持目前不存在,但经过一些修改,可以渲染到可能符合您要求的像素缓冲区对象。您已经可以拍摄渲染图像的快照(这就是基于图像的回归测试的工作方式),并将其保存为 PNG,或者将生成的 vktImageData 用于其他用途。我一直在考虑将其中一些元素渲染到 PBO 中,以便它们可以用于纹理等。