|
[Sponsors] |
[General] How to use Median filter in Paraview? It's always greyed out... |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 20, 2015, 02:13 |
How to use Median filter in Paraview? It's always greyed out...
|
#1 |
Senior Member
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16 |
Dear Paraview users
I am trying to use the median filter from Paraview to remove some noise / smooth out the data. However, the median filter is alway in grey, which cannot be applied to the data set I have. My data is in the plt format. I am wondering if anyone used the median filter? Thank you. Jie |
|
August 20, 2015, 22:00 |
|
#2 |
Senior Member
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16 |
I played around with different types of data. I found the median filter works with the vti data format. The question is how to use the median filter if the data is a in different format, e.g. plt format?
|
|
August 21, 2015, 18:49 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Quick answer: The problem is not due to the file format itself, the problem is the data structure it's in.
After loading the "vti" or "plt" file, with it selected in the "Pipeline Browser", go to the tab "Information" below and check what type of data structure it's defined as. For example, as shown in the attached image. |
|
August 23, 2015, 19:29 |
|
#4 | |
Senior Member
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16 |
Quote:
Thanks for your advice. The vti data has the type of image (uniform rectilinear grid) where as my tecplot data has the type of multi-block dataset. The question is whether it is possible to convert one to the other so that the median filter can be applied to the data set I want or is there a type of median filter that can be applied to the multi-block data set? Thanks Jie |
||
August 23, 2015, 19:53 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Hi Jie,
I did some looking into this and it seems that perhaps you're confusing "Median" with "Temporal Average"? I ask this because:
Of course the other way to actually use the Median filter is for you to use the menu "File -> Save Screenshot", save as an image and then load it again to apply the filter... although this doesn't sound very healthy... Best regards, Bruno |
|
August 23, 2015, 20:20 |
|
#6 | |
Senior Member
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16 |
Quote:
Thanks for you quick reply again. I used to use python script to postprocessing my Tecplot data. However, I found it is a bit slow to re-load the data into a 3D array and apply a 3D median filter. Hence, I tried to do it in Paraview. Then, I realised that the median filter from Paraview can only be applied to the images. I am in the process to use the programable filter. However, I am still at the stage of learning how to use the python command to access the data in Paraview. Any advice will be appreciated. Regards, Jie |
||
August 24, 2015, 12:02 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Hi Jie,
A few good references:
Code:
paraview python Code:
paraview numpy Bruno |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Listing the inputs of a grouped dataset with a programmable python filter in Paraview | NadineHS | ParaView | 3 | December 12, 2021 14:54 |
[General] scripting with paraview clip filter | yongxiang | ParaView | 0 | November 7, 2017 08:07 |
[OpenFOAM] ParaView Plotting: Why are some Filters in the Alphabetical list greyed out? | arieljeds | ParaView | 3 | August 23, 2017 13:30 |
[OpenFOAM] specific filter in paraview | sanjar | ParaView | 2 | January 20, 2014 11:53 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 21:41 |