Re: [Paraview] obtaining the color MAP transfer function

2018-04-12 Thread Mathieu Westphal
Hello

Please keep the ML in the cc so everyone can provide.

You should be able to do that in the python shell.

Views->Python Shell

s = GetActiveSource()
r=Show(s)
l=r.LookupTable
l.RGBPoints


Best,

Mathieu Westphal

On Thu, Apr 12, 2018 at 3:14 PM, Andrei Cimpoeru <
andrei.cimpo...@cfms.org.uk> wrote:

> Dear Mathieu,
>
> Please see the attached picture. I think that I can see a way to get back
> to the original data. Is there a change to access the table with the *Color
> Transfer Function Values?*
>
> Cheers,
>
> Andrei
>
> On Thu, Apr 12, 2018 at 2:10 PM, Mathieu Westphal <
> mathieu.westp...@kitware.com> wrote:
>
>> Dear Andrei
>>
>> There is no way to guess the pressure values with only the RGB data. One
>> can only guess the range and the color map used for generating the image.
>> You will need to find the original data.
>>
>> Best,
>>
>> Mathieu Westphal
>>
>> On Thu, Apr 12, 2018 at 2:59 PM, Andrei Cimpoeru <
>> andrei.cimpo...@cfms.org.uk> wrote:
>>
>>>
>>> Hi Mathieu,
>>>
>>> Thanks for getting back to me. Let's say that I have the image below
>>> (attached). If you load it in Paraview  you have a vector field of PNG
>>> consisting of RGB values. How do I turn these values back to pressure.
>>> I am interested in this because I want to map the RGB colors back to
>>> pressure field. Is there any way to this using vtk-python?
>>>
>>> Cheers,
>>>
>>> Andrei
>>>
>>>
>>>
>>> On Thu, Apr 12, 2018 at 12:00 PM, Mathieu Westphal <
>>> mathieu.westp...@kitware.com> wrote:
>>>
 Dear Andrei,

 I'm not sure to follow what your are trying to achieve. Please explain
 again.

 In any case, the mapping between the pressure and the RGB values you
 see in paraview is controlled by
 the Color Map Editor and the range of the data. All these tools are
 accessible in the Toolbar visible in the attached image, I've highligthed
 the Color Editor button.

 Best regards,


 Mathieu Westphal

 On Thu, Apr 12, 2018 at 12:28 PM, Andrei Cimpoeru <
 andrei.cimpo...@cfms.org.uk> wrote:

> Hi ,
>
> I am currently working with Paraview  and deep learning models. I have
> created a set of images (.png) using Paraview. The images are related to
> the pressure field around a wing. When I load images back to Paraview all 
> I
> can visualise are the RGB  values.
> *When the image are exported from Paraview the pressure field is
> transferred into RGB values. Is there a way to obtain the function that
> does that?*
> Instead of exporting to .png a data format that I like is the .vti.
> This format keep the current information about pressure, velocity, mach
> number etc. Is there something that I could export a slice  to .vti?
>
>  Many thanks and I am looking forward to hear from you.
>
> Cheers,
>
> Andrei
>
>
>
> --
> *Andrei Cimpoeru* // CFD Engineer
>
>
> 
>
> *e: *andrei.cimpo...@cfms.org.uk   *t*: 0117 906 1106   *w: *
> www.cfms.org.uk
> CFMS Services Ltd // Bristol & Bath Science Park // Dirac Crescent // 
> Emersons
> Green // Bristol // BS16 7FR
>
> CFMS Services Ltd is registered in England and Wales No 05742022 - a
> subsidiary of CFMS Ltd
> CFMS Services Ltd registered office // 43 Queens Square // Bristol //
> BS1 4QP
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
>
>

>>>
>>>
>>> --
>>> *Andrei Cimpoeru* // CFD Engineer
>>>
>>>
>>> 
>>>
>>> *e: *andrei.cimpo...@cfms.org.uk   *t*: 0117 906 1106   *w: *
>>> www.cfms.org.uk
>>> CFMS Services Ltd // Bristol & Bath Science Park // Dirac Crescent // 
>>> Emersons
>>> Green // Bristol // BS16 7FR
>>>
>>> CFMS Services Ltd is registered in England and Wales No 05742022 - a
>>> subsidiary of CFMS Ltd
>>> CFMS Services Ltd registered office // 43 Queens Square // Bristol //
>>> BS1 4QP
>>>
>>
>>
>
>
> --
> *Andrei Cimpoeru* // CFD Engineer
>
>
> 
>
> *e: *andrei.cimpo...@cfms.org.uk   *t*: 0117 906 1106   *w: *
> www.cfms.org.uk
> CFMS Services Ltd // Bristol & Bath Science Park // Dirac Crescent // Emersons
> Green // Bristol // BS16 7FR
>
> CFMS Services Ltd is registered in England and Wales No 05742022 - a
> 

Re: [Paraview] OSPray scivis - samples along the cast ray when volume rendering?

2018-04-12 Thread David E DeMarle
Hi Mark,

Sorry no it is not fully hooked up yet.

By default we use some heuristics to pick a sampling rate, and we have a
TODO comment in the code to hook that up for the cases when, like now, you
need better control.

Chime in if you like on this related bug report:
https://gitlab.kitware.com/paraview/paraview/issues/17486

thanks

David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Thu, Apr 12, 2018 at 9:59 AM, Van Moer, Mark W 
wrote:

> Hi ParaView,
>
>
>
> For OSPRay, is there a way to set the sampling rate of the rays in
> ParaView? i.e. samplingRate as referenced in the OSPRay documentation,
> Table 6 on this page
>
> https://www.ospray.org/documentation.html
>
>
>
> Thanks,
>
> Mark
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] DigitalRockPhysics Plugin Usage

2018-04-12 Thread Mathieu Westphal
Yes, please provide sample dataset so we can take a look.

Best,

Mathieu Westphal

On Thu, Apr 12, 2018 at 4:20 PM, Michael Jackson <
mike.jack...@bluequartz.net> wrote:

> Thanks for the data. The difference was that your data was point based
> where ours was Cell based. I ran the Cell data to Point Data filter and
> then was able to successfully run the 2 Rock filters. The results were not
> as I expected. Some of our “Features” are getting exploded down to the
> pixel level where others are successfully kept intact. I am not familiar
> with the Digital Rock Physics or the algorithm being used but there
> probably is enough of a difference between the assumptions that the filter
> isn’t going to work for us. I am happy to provide sample data sets and
> discuss what the data is and if the filters would truly work on our data.
> The visualization is novel and I think it would help our users in the long
> run if we could figure out the differences.
>
>
>
> Thanks
>
> --
>
> Michael Jackson | Owner, President
>
>   BlueQuartz Software
>
> [e] mike.jack...@bluequartz.net
>
> [w] www.bluequartz.net
>
> *From: *Mathieu Westphal 
> *Date: *Thursday, April 12, 2018 at 9:31 AM
> *To: *Michael Jackson 
> *Cc: *ParaView 
> *Subject: *Re: [Paraview] DigitalRockPhysics Plugin Usage
>
>
>
> Hi Michael,
>
> There is example data in our test data, please find it attached with an
> example usage of the Explode filter.
>
> Best regards,
>
>
>
>
>
>
> Mathieu Westphal
>
>
>
> On Thu, Apr 12, 2018 at 2:50 PM, Michael Jackson <
> mike.jack...@bluequartz.net> wrote:
>
> What kind of data do I need to have in order to use both of the new
> Digital Rock Physics Filters? I ask because I would like to reproduce the
> screen shots from the ParaView 5.5.0 release notes but with our own data.
> Our current data set is an Image data where we have a Scalar value called
> "Feature ID" that groups voxels into unique features. The values are 32 bit
> signed integer. I can run the Material Cluster Analysis filter and that
> seems to run but when I run the Material Cluster Explode filter I get a
> bunch of flat "sheets" instead of the features that I should be seeing? Is
> there an example data set somewhere that could be used to experiment with
> these filters?
>
> https://drive.google.com/open?id=153azI_-dE0N7Xw0agM8OYBF508cDNSdx
>
> --
> Michael A. Jackson 400 S. Pioneer Blvd
> 
> Owner, President   Springboro, Ohio 45066
> BlueQuartz Software, LLC   EMail: mike.jack...@bluequartz.net
> Voice: 937-790-1601Web: http://www.bluequartz.net
> Fax: 937-746-0783
>
>
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
>
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] DigitalRockPhysics Plugin Usage

2018-04-12 Thread Michael Jackson
Thanks for the data. The difference was that your data was point based where 
ours was Cell based. I ran the Cell data to Point Data filter and then was able 
to successfully run the 2 Rock filters. The results were not as I expected. 
Some of our “Features” are getting exploded down to the pixel level where 
others are successfully kept intact. I am not familiar with the Digital Rock 
Physics or the algorithm being used but there probably is enough of a 
difference between the assumptions that the filter isn’t going to work for us. 
I am happy to provide sample data sets and discuss what the data is and if the 
filters would truly work on our data. The visualization is novel and I think it 
would help our users in the long run if we could figure out the differences.

 

Thanks

--

Michael Jackson | Owner, President

  BlueQuartz Software

[e] mike.jack...@bluequartz.net

[w] www.bluequartz.net

From: Mathieu Westphal 
Date: Thursday, April 12, 2018 at 9:31 AM
To: Michael Jackson 
Cc: ParaView 
Subject: Re: [Paraview] DigitalRockPhysics Plugin Usage

 

Hi Michael,

There is example data in our test data, please find it attached with an example 
usage of the Explode filter.

Best regards,

 

 


Mathieu Westphal

 

On Thu, Apr 12, 2018 at 2:50 PM, Michael Jackson  
wrote:

What kind of data do I need to have in order to use both of the new Digital 
Rock Physics Filters? I ask because I would like to reproduce the screen shots 
from the ParaView 5.5.0 release notes but with our own data. Our current data 
set is an Image data where we have a Scalar value called "Feature ID" that 
groups voxels into unique features. The values are 32 bit signed integer. I can 
run the Material Cluster Analysis filter and that seems to run but when I run 
the Material Cluster Explode filter I get a bunch of flat "sheets" instead of 
the features that I should be seeing? Is there an example data set somewhere 
that could be used to experiment with these filters?

https://drive.google.com/open?id=153azI_-dE0N7Xw0agM8OYBF508cDNSdx

--
Michael A. Jackson 400 S. Pioneer Blvd
Owner, President   Springboro, Ohio 45066
BlueQuartz Software, LLC   EMail: mike.jack...@bluequartz.net
Voice: 937-790-1601Web: http://www.bluequartz.net
Fax: 937-746-0783



___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview

 

___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] How to cancel Animation Save

2018-04-12 Thread Michael Jackson
So the issue is related to when you export an animation as a bunch of images 
and when the options dialog window comes up you change the resolution of the 
output image to some custom value which forces the rendering portion of the 
window to become smaller. What I did to work-around the issue is that I used 
the new "preview" mode of ParaView 5.5.0 to set the preview to 1920x1080, then 
did the export animation and the images are saved correctly. This is 
reproducible on several of my macOS machines here at work.

--
Michael Jackson | Owner, President
  BlueQuartz Software
[e] mike.jack...@bluequartz.net
[w] www.bluequartz.net

-Original Message-
From: ParaView  on behalf of Utkarsh 
Ayachit 
Date: Wednesday, April 11, 2018 at 9:36 AM
To: Michael Jackson 
Cc: ParaView 
Subject: Re: [Paraview] How to cancel Animation Save

Doesn't ring a bell, sorry. If it's fairly reproducible, please do
report an issue with the steps to reproduce so we can track it down.

Utkarsh


On Wed, Apr 11, 2018 at 9:27 AM, Michael Jackson
 wrote:
> Thanks for the update. I'll be more careful when starting my animation. 
The reason I had to cancel was that the images being saved were corrupted with 
a "stitch line" both horizontally and vertically (Image attached). ParaView 
5.4.1 did not do this. Thoughts? My video card inside my MacPro is a Radeon 
7950 3GB card in a Mac Pro 5,1.
>
> --
> Michael Jackson | Owner, President
>   BlueQuartz Software
> [e] mike.jack...@bluequartz.net
> [w] www.bluequartz.net
>
> -Original Message-
> From: Utkarsh Ayachit 
> Date: Wednesday, April 11, 2018 at 9:22 AM
> To: Michael Jackson 
> Cc: ParaView 
> Subject: Re: [Paraview] How to cancel Animation Save
>
> There isn't a way currently. I've reported an issue:
> https://gitlab.kitware.com/paraview/paraview/issues/18103
>
>
> On Wed, Apr 11, 2018 at 9:01 AM, Michael Jackson
>  wrote:
> > ParaView 5.5.0. Was setting up a new animation that I was saving 
out to disk. 1400 Timesteps. Started the export as .png images but the images 
are not correct. So how do I cancel the export? On my machine the export will 
take about 25 minutes so waiting for it to finish kind sucks. Force quitting 
seems to be the only obvious way to stop it. But then I lost my state (maybe 
having a backup state file somewhere might help recover from this).
> >
> > I will assume "operator error" on this one: Where is the cancel 
animation export button?
> >
> > MacOS 10.13.x with ParaView 5.5.0.
> >
> > --
> > Michael Jackson | Owner, President
> >   BlueQuartz Software
> > [e] mike.jack...@bluequartz.net
> > [w] www.bluequartz.net
> >
> >
> > ___
> > 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
> >
> > Search the list archives at: http://markmail.org/search/?q=ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > https://public.kitware.com/mailman/listinfo/paraview
>
>
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview



___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] DigitalRockPhysics Plugin Usage

2018-04-12 Thread Michael Jackson
What kind of data do I need to have in order to use both of the new Digital 
Rock Physics Filters? I ask because I would like to reproduce the screen shots 
from the ParaView 5.5.0 release notes but with our own data. Our current data 
set is an Image data where we have a Scalar value called "Feature ID" that 
groups voxels into unique features. The values are 32 bit signed integer. I can 
run the Material Cluster Analysis filter and that seems to run but when I run 
the Material Cluster Explode filter I get a bunch of flat "sheets" instead of 
the features that I should be seeing? Is there an example data set somewhere 
that could be used to experiment with these filters?

https://drive.google.com/open?id=153azI_-dE0N7Xw0agM8OYBF508cDNSdx

-- 
Michael A. Jackson 400 S. Pioneer Blvd
Owner, President   Springboro, Ohio 45066
BlueQuartz Software, LLC   EMail: mike.jack...@bluequartz.net
Voice: 937-790-1601Web: http://www.bluequartz.net
Fax: 937-746-0783
 


___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] obtaining the color MAP transfer function

2018-04-12 Thread Andrei Cimpoeru
Hi ,

I am currently working with Paraview  and deep learning models. I have
created a set of images (.png) using Paraview. The images are related to
the pressure field around a wing. When I load images back to Paraview all I
can visualise are the RGB  values.
*When the image are exported from Paraview the pressure field is
transferred into RGB values. Is there a way to obtain the function that
does that?*
Instead of exporting to .png a data format that I like is the .vti. This
format keep the current information about pressure, velocity, mach number
etc. Is there something that I could export a slice  to .vti?

 Many thanks and I am looking forward to hear from you.

Cheers,

Andrei



-- 
*Andrei Cimpoeru* // CFD Engineer



*e: *andrei.cimpo...@cfms.org.uk   *t*: 0117 906 1106   *w: *www.cfms.org.uk

CFMS Services Ltd // Bristol & Bath Science Park // Dirac Crescent // Emersons
Green // Bristol // BS16 7FR

CFMS Services Ltd is registered in England and Wales No 05742022 - a
subsidiary of CFMS Ltd
CFMS Services Ltd registered office // 43 Queens Square // Bristol // BS1
4QP
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView as Python 3.6 frontend

2018-04-12 Thread Mathieu Westphal
Dear Klaus,

You should be able to compile ParaView with Python 3.6 support, and then
load the paraview module and start displaying sources, filters and views
within your project.

Once you are able to do that, you could use a ProgrammableSource to display
your numpy arrays. You can "transfer" your arrays to the source either via
writing/reading from the disk
of via the ProgrammableSource's own "parameters" arguments.

Let us know if you need further help.

Best regards,

Mathieu Westphal

On Thu, Apr 12, 2018 at 9:40 AM, Klaus Philip 
wrote:

> Hi,
>
>
>
> currently I’m struggling with the following problem:
>
> I’ve a complex Python 3.6 (miniconda, windows 10) project which generates
> 3D point clouds (stored in numpy arrays).
>
> Now I want to use ParaView as a frontend for my application and I wanted
> to ask if this is possible or if somebody already achieved this?
>
>
>
> Greetings,
>
> Philip Klaus
>
>
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] ParaView as Python 3.6 frontend

2018-04-12 Thread Klaus Philip
Hi,

currently I'm struggling with the following problem:
I've a complex Python 3.6 (miniconda, windows 10) project which generates 3D 
point clouds (stored in numpy arrays).
Now I want to use ParaView as a frontend for my application and I wanted to ask 
if this is possible or if somebody already achieved this?

Greetings,
Philip Klaus

___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview