Re: [Paraview] Programmable filter VTK/numpy

2017-10-25 Thread Edoardo Pasca
e: > On Thu, Oct 19, 2017 at 11:02 AM, Edoardo Pasca > wrote: > >> Hi Cory, >> >> thanks for your reply. I'd love to simplify the code like that but there >> are 2 issues with that programmable filter >> >> 1) I miss information on the input and ou

[Paraview] Programmable filter VTK/numpy

2017-10-17 Thread Edoardo Pasca
Hi there, In my programmable filter I want to use numpy to perform some operations on the pixels (in this case a simple thresholding). I've come up with this solution which works. I'm wondering if there are other ways to do the conversion from numpy array to vtkImageData. in the following code I