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

grainMean function in mtex 6.0 beta3 #2090

Open
CasperMornout opened this issue Mar 14, 2024 · 1 comment
Open

grainMean function in mtex 6.0 beta3 #2090

CasperMornout opened this issue Mar 14, 2024 · 1 comment

Comments

@CasperMornout
Copy link

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:

  • an ebsd variable (in 'indexed' mode) which has the grainId of the grains.
  • a grain2d variable with the same grains as they are in the ebsd
  • (The ebsd and grain2d variable were constructed as normally using calcGrains and nothing was changed to them afterwards.)

What grainMean should return

  • a list of (in my case 6205) entries of mean property (in my case confidence index)

What grainMean returns

  • a list of (in my case 1110514) entries which is exactly the same as the amount of pixels in the ebsd variable.

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

@ralfHielscher
Copy link
Member

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.

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

2 participants