mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
278 stars 183 forks source link

Bug in calcComponents #1840

Open AzdiarGazder opened 1 year ago

AzdiarGazder commented 1 year ago

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?

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.