Find Feature Average Orientation

133 views
Skip to first unread message

Christopher Collins

unread,
Sep 3, 2020, 10:45:56 PM9/3/20
to dream3d-users
Hi Dream3D users,

I am running into an issue where the "Find Average Feature Orientation" filter is returning all 0s for the quaternions (and NaN for euler angles):
temp1.PNG
I have attached a simplified pipeline that produces this issue (but it won't let me attach the .ctf file). I know that the .ctf file is being imported correctly as I have exported the cell data to ASCII for comparison with the original .ctf:
temp2.PNG

Is there some other modification I need to perform on the data in order to use the "Find Average Feature Orientation" filter?

Best Regards,
Chris Collins
Test Average Feature Orientation.json

Michael Jackson

unread,
Sep 4, 2020, 4:33:41 PM9/4/20
to Christopher Collins, dream3d-users

Interesting that when I use a .ctf file that I had laying around I get valid Euler and Quaternions. What version of DREAM.3D are you using on which operating system?

 

--

Mike Jackson

 

From: <dream3...@googlegroups.com> on behalf of Christopher Collins <chrcoll...@gmail.com>
Date: Thursday, September 3, 2020 at 10:45 PM
To: dream3d-users <dream3...@googlegroups.com>
Subject: Find Feature Average Orientation

 

Hi Dream3D users,

 

I am running into an issue where the "Find Average Feature Orientation" filter is returning all 0s for the quaternions (and NaN for euler angles):

I have attached a simplified pipeline that produces this issue (but it won't let me attach the .ctf file). I know that the .ctf file is being imported correctly as I have exported the cell data to ASCII for comparison with the original .ctf:

 

Is there some other modification I need to perform on the data in order to use the "Find Average Feature Orientation" filter?

 

Best Regards,

Chris Collins

--
You received this message because you are subscribed to the Google Groups "dream3d-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dream3d-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dream3d-users/f3618112-dbec-491e-b5d7-4392af253aa7n%40googlegroups.com.

Christopher Collins

unread,
Sep 4, 2020, 5:14:09 PM9/4/20
to dream3d-users
Hi Mike, 

I am using Dream3D 6.6.154 on windows 10 x64 system:

o3.png
o4.png


I downloaded the most recent BlueQuartz Software Edition from the website and it works no problem for me in that version:

o2.png

I am rebuilding my OpenSource version now to try again, and I will let you know if I run into any problems.

Best Regards,
Chris Collins

Christopher Collins

unread,
Sep 5, 2020, 11:17:52 PM9/5/20
to dream3d-users
Hi Mike, 

I rebuilt the OpenSource version:

o4.png

Unfortunately, the same issue is occurring. The "Find Average Feature Orientation" filter is returning all 0's for the quaternions and NaN for euler angles. I will try looking through the source code for the plugin but I am new to working with SIMPL so I probably wont have much luck.

Best Regards,
Chris Collins

Michael Jackson

unread,
Sep 7, 2020, 2:15:48 PM9/7/20
to Christopher Collins, dream3d-users

Chris,

    So there was an issue in the use of the Quaternion API for the latest develop branches. I have removed the troublesome API from the Quaternion class and updated all of the codes. The good news is that the filters now work and produce values that they should. The bad news is that I think that something changed in the CAxisSegmentation filter between the 6.5 and 6.6 branches. Please verify with your own data if you think the filters are behaving appropriately.

 

Assuming the unit tests pass I will push the new code up to the develop branches later today (SEPT 7 2020).

 

--

Mike Jackson

 

From: <dream3...@googlegroups.com> on behalf of Christopher Collins <chrcoll...@gmail.com>


Date: Saturday, September 5, 2020 at 11:17 PM
To: dream3d-users <dream3...@googlegroups.com>

Subject: Re: Find Feature Average Orientation

 

Hi Mike, 

 

I rebuilt the OpenSource version:

 

 

Unfortunately, the same issue is occurring. The "Find Average Feature Orientation" filter is returning all 0's for the quaternions and NaN for euler angles. I will try looking through the source code for the plugin but I am new to working with SIMPL so I probably wont have much luck.

 

Best Regards,

Chris Collins

--

You received this message because you are subscribed to the Google Groups "dream3d-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dream3d-user...@googlegroups.com.

Christopher Collins

unread,
Sep 16, 2020, 6:47:19 PM9/16/20
to dream3d-users
Hi Mike,

I just wanted to confirm that the changes you made fixed this issue for me. The latest version of my superbuild is not causing me any issues with the "Find Average Feature Orientation" filter. Thank you so much!

Best Regards,
Chris Collins

Yaping Wang

unread,
Nov 7, 2023, 11:19:32 AM11/7/23
to dream3d-users
Hi Mike, 

I am using DREAM3D-6.5.171-Win64 on Windows 10 and also having nan when I calculate the average orientation. 

And another thing is I feel that the average calculation was not actually conducted as the AvgEuler value is not the same with same FeatureID. Do you understand why?

Best
Yaping


Michael Jackson

unread,
Nov 8, 2023, 5:43:47 PM11/8/23
to Yaping Wang, dream3d-users
Dear Yaping, 
   Do you have a pipeline and a data set so I can reproduce the issue?




Mike Jackson

--
You received this message because you are subscribed to the Google Groups "dream3d-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dream3d-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages