[Paraview] Python - Accessing Image Data

Berk Geveci berk.geveci at kitware.com
Sat Apr 17 13:33:27 EDT 2010


What do you mean by "selected by the user"? Through the ParaView
selection mechanism or some variable in the data? Also, what do you
mean by "read out"? What is the end goal?

On Thu, Apr 15, 2010 at 10:24 AM, Christian Werner
<christian.werner at rwth-aachen.de> wrote:
> Hi!
>
> Is it actually possible to read and/or manipulate actual image data within
> the Python Shell? I can somehow access field and array data like this:
>
> inputVolume=GetActiveSource()
> pd=inputVolume.GetPointData
> array=pd.GetArray(0)
>
> Then I can do array.sort(), array.reverse() and such. But this has no
> noticable effect and isn't what I want anyway. I also tried GetFieldData and
> GetCellData, but their GetNumberOfArrays() returned 0.
>
> This is just a general question. What I actually need is to read out which
> Points have been selected by the user.
>
> Best regards,
> Christian
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list