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

Bug in calcComponents #1840

Open
AzdiarGazder opened this issue May 25, 2023 · 0 comments
Open

Bug in calcComponents #1840

AzdiarGazder opened this issue May 25, 2023 · 0 comments

Comments

@AzdiarGazder
Copy link
Contributor

What do you want to do?
Use calcComponents with seed orientations to find the modes & volume fractions within a specified radius.

What data do you have?

  • 'ebsd.orientations' from an EBSD map.
  • A kernel calculated from calcKernel using 'ebsd.orientations' (variableName = psi).
  • An ODF calculated from calcDensity using 'ebsd.orientations' and 'psi'.
  • A list of 20 orientations that serve as seeds (variableName = ori).

What code do you use?

    [modes,vol,~] = calcComponents(odf,'seed',ori(:),'resolution',psi.halfwidth/2,'radius',5*degree,'exact');

What result do you get
No result when "...'radius', 5*degree,... " is specified.

What result do you expect
A consistent list of unique modes and volume fractions.

Error Message

Index exceeds the number of array elements. Index must not exceed 20.

Error in SO3Fun/calcComponents (line 105)
centerId = iid(centerId);

Error in calcModelTexture (line 158)
    [modes,vol,~] = calcComponents(odf,'seed',ori(:),'resolution',psi.halfwidth/2,'radius',5*degree,'exact');

What MTEX version do you use?
5.9 Developer.

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

1 participant