[Paraview-developers] How can I export an object to .mhd file in ParaView's python environment?
Yuzheng Zhou
yuzheng.zhou at kitware.com
Thu May 30 11:17:13 EDT 2013
I have a follow-up question. In the Pavaview's Python environment, the
CreateWriter() can export the object as a .mhd and a .zraw file correctly.
Ideally, I want to have a .mha file instead of .mhd+ raw files because a
single file is easier to be processed (uploaing, downloading, etc). But
when I try to use CreateWriter() to create .mha file, I got an error like
this:
vtkSMWriterFactory (0x23b8740): No matching writer found for extension: mha
Can anybody tell me if there a way to export the object as .mha file in
ParaView's python environment, or an easy way to convert .mhd+ raw to .mha
file?
Thanks,
Yuzheng
On Wed, May 29, 2013 at 5:48 PM, Yuzheng Zhou <yuzheng.zhou at kitware.com>wrote:
> Utkarsh,
>
> Thanks a lot. It works very well.
>
> Yuzheng
>
>
> On Wed, May 29, 2013 at 5:30 PM, Utkarsh Ayachit <
> utkarsh.ayachit at kitware.com> wrote:
>
>> Refer to:
>> http://paraview.org/Wiki/ParaView/Python_Scripting#Writing_Data_Files_.28ParaView_3.9_or_later.29
>>
>> You simply use "CreateWriter()" with the the filename with the
>> appropriate extension.
>>
>> Utkarsh
>>
>> On Wed, May 29, 2013 at 5:16 PM, Yuzheng Zhou <yuzheng.zhou at kitware.com>
>> wrote:
>> > Hi all,
>> >
>> > I am trying to export an output object in ParaView's python
>> environment. The
>> > object is generated by a python programmable filter and should be saved
>> as
>> > an MetaImage file. It can be successfully exported as .mhd file via
>> ParaView
>> > UI (File -> Save Data-> choose .mhd as file type). Could anyone please
>> tell
>> > me how it can be exported using ParaView's python interpreter or in the
>> > pvpython environment? Thanks a lot.
>> >
>> >
>> > Thanks,
>> > Yuzheng
>> >
>> >
>> > _______________________________________________
>> > Paraview-developers mailing list
>> > Paraview-developers at paraview.org
>> > http://public.kitware.com/mailman/listinfo/paraview-developers
>> >
>>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130530/8571a4b0/attachment.htm>
More information about the Paraview-developers
mailing list