merge

(method of grain2d)

merge grains along certain grain boundaries

The function merges grains where the special boundary is determined by the function specialBoundary

Syntax

[grains_merged,parentId] = merge(grains, gB)

Input

grains

grain2d

boundary

grainBoundary

Output

grains_merged

grain2d

parentId

a list of the same size as grains containing the ids of the merged grains

mple:

texdata small rains = smooth(calcGrains(ebsd))

merge all neigbouring Diopside grains B = grains.boundary('Diopside','Diopside') grains_m,parentId] = merge(grains,gB)