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
274 stars 182 forks source link

grainMean function in mtex 6.0 beta3 #2090

Open CasperMornout opened 4 months ago

CasperMornout commented 4 months ago

I want to use the grainMean function to calculate mean confidence index from the corresponding EBSD map for my grains. However, the list that is returned is simply the confidence index for all EBSD pixels, i.e. no averaging takes place.

I have:

What grainMean should return

What grainMean returns

Used version: mtex 6.0 beta3. The function does work for mtex 5.10

ralfHielscher commented 4 months ago

Hi Casper,

the functionality of this function has slightly changed in MTEX 5.11 / MTEX 6.0. grainMean(ebsd,prop) indeed returns a list of averaged values of the order / shape as ebsd. If have want to have one value per grain you need to to grainMean(ebsd,prop,grains). Now the output will have the same order as grains.

Have a look at help EBSD/grainMean for more information.

Ralf.