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

Issue with discreteSample in MTEX 5.9 #1779

Closed MarcoWitte1 closed 1 year ago

MarcoWitte1 commented 1 year ago

What do you want to do? Calculate discrete orientation sample from ODF

What data do you have? odf = SO3FunRBF (m-3m → xyz (-1))

uniform component weight: 0.11

multimodal components kernel: de la Vallee Poussin, halfwidth 3.5° center: 14323 orientations, resolution: 3.5° weight: 0.89

What code do you use? dis = odf.discreteSample(1000);

What result do you get Error message

What result do you expect No error

Error Message If you get an error message copy and paste it below

Arrays have incompatible sizes for this operation.

Error in  .*  (line 33)
  q.a = a1 .* a2 - b1 .* b2 - c1 .* c2 - d1 .* d2;

Error in  .*  (line 23)
  r = times@quaternion(a,b,varargin{:});

Error in  .*  (line 37)
r = times@rotation(a,b,isa(b,'orientation'));

Error in SO3FunRBF/discreteSample (line 40)
ori = ori .* SO3F.CS.rot(randi(SO3F.CS.numSym,npoints,1));

Related documentation

What MTEX version do you use? 5.9 odf.zip

Cheers, Marco

ralfHielscher commented 1 year ago

Hi Marco,

thank you for pointing out this bug. I have fixed it in the developer version.

Ralf.