mtex icon indicating copy to clipboard operation
mtex copied to clipboard

Bug in calcComponents

Open AzdiarGazder opened this issue 1 year ago • 0 comments

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.

AzdiarGazder avatar May 25 '23 03:05 AzdiarGazder