All,
A simple question: my incentive is to manipulate images using PIL in a pvbatch
script. At the time being, I am writing the images to file in PNG format and
reading the file again from disc using PIL. I have found out that the
underlying image writing is performed by the vtkPNGWriter class a
Look into the cinemaIO directory of ParaView. We move back and forth
between paraview, numpy and PIL often there.
For example:
image = self.view.CaptureWindow(1)
ext = image.GetExtent()
width = ext[1] - ext[0] + 1
height = ext[3] - ext[2] + 1
imagescalars = image.GetPointData().GetScalars()
idata
David,
that’s excellent.
Thanks a lot.
Frank.
From: David E DeMarle [mailto:dave.dema...@kitware.com]
Sent: Mittwoch, 12. Oktober 2016 19:56
To: Albina, Frank
Cc: paraview@paraview.org; Del Citto, Francesco
Subject: Re: [Paraview] Paraview python script: passing images to PIL (python
image
, Francesco; paraview@paraview.org
Subject: Re: [Paraview] Paraview python script: passing images to PIL (python
image library)
David,
that’s excellent.
Thanks a lot.
Frank.
From: David E DeMarle [mailto:dave.dema...@kitware.com]
Sent: Mittwoch, 12. Oktober 2016 19:56
To: Albina, Frank
Cc: paraview
heers,
>
>
> Frank.
>
> *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of *Albina,
> Frank
> *Sent:* Mittwoch, 12. Oktober 2016 20:01
> *To:* David E DeMarle
> *Cc:* Del Citto, Francesco; paraview@paraview.org
>
> *Subject:* Re: [Paravi