Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FILT: Compute the Misorientation Angle between 2 arrays of Orientations or a single orientation array and a set orientation. #1077

Open
6 tasks
imikejackson opened this issue Sep 19, 2024 · 0 comments
Assignees

Comments

@imikejackson
Copy link
Contributor

imikejackson commented Sep 19, 2024

Say I have an array of Orientations (any of the 7 supported types) and I want to compute the misorientation between each one in the first array and of a specific orientation (again, any of the 7 types should be supported).

Same as above, but instead of a single specific orientation, I have a second array of orientations. Compute the misorientation between them.

This would have similar algorithm to that of "Compute Feature Misorientation" but this filter can just work on any 2 arrays of orientations.

  • This filter goes in the OrientationAnalysis plugin

Input Parameters

  • Input Orientation Array. Now the fun part is we are also going to need the user to tell us what kind of orientation representation the inputs are: Quats, Eulers... any of the 7 are valid

  • What kind of orientations are the inputs: Use the EXACT same choice parameter from the "Convert Orientation Representation" filter

  • Second input orientation Array. I would say that there are 2 possibilities that are both legal:
    0: The 2nd input array has a single Tuple
    1: The 2nd input array has the EXACT same number of tuples as the first input array.

  • Choice Parameter to set what kind of Orientation Representation the 2nd input is.

  • Output Array Creation parameter for the outputs
    - The output array is an array of single component floats.

The algorithm would go something like:

for each input representation:
    convert representation to an Axis-Angle representation
    convert the 2nd representation to an Axis-Angle representation
    find the misorientation between the first input and the second inputs
    The actual angle is the 4th component of the output
end for each

That can be done in parallel.

The code to generalize any input representation into an axis-angle will require a large Switch Statement.

@imikejackson imikejackson changed the title FILT: Copmute the Misorientation Angle between 2 arrays of Orientations or a single orientation array and a set orientation. FILT: Compute the Misorientation Angle between 2 arrays of Orientations or a single orientation array and a set orientation. Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants