在VTK中,是否可以将绘图渲染到RGB缓冲区?
在VTK中,是否可以渲染绘图(就像vtkChartXY示例一样简单http://www.itk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot)到 RGB 值数组?
In VTK, is it possible to render a plot (something as simple as, say, the vtkChartXY example http://www.itk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot) to an array of RGB values?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前尚不支持,但通过一些修改,可以渲染到符合您要求的像素缓冲区对象中。您已经可以拍摄渲染图像的快照(这就是基于图像的回归测试的工作原理),并将其保存为 PNG,或将生成的 vktImageData 用于其他用途。我一直在考虑将其中一些元素渲染到 PBO 中,以便它们可以用于纹理等。
The support is not currently present, but with some modification it would be possible to render into a pixel buffer object which may fit your requirement. You can already take a snapshot of the rendered image (and that is how the image based regression testing works), and save that as a PNG, or use the generated vktImageData for other things. I have been thinking about rendering some of these elements into PBOs so that they could then be used in textures etc.