Access Frame Buffer from paraview.simple that I would write from SaveScreenshot()

Hello, I’m trying to access the image data from the Frame Buffer using paraview.simple so that I can analyze (calculate various metrics) the image developed in paraview.simple without utilizing the disk. Does anybody know how to do this? Thanks, John Patchett and Soumya Dutta

view = GetActiveView() # or however you get your view
img =  view.CaptureWindow(1) # argument is magnification factor >= 1

assert img.IsA("vtkImageData")

you can now use the vtkImageData for processing.