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

contour based gB reconstruction and smoothing #2176

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

vtvivian
Copy link
Contributor

@vtvivian vtvivian commented Jul 24, 2024

smoothTest.m - demo script on mtexdata('twins')

[grainsContour] = boundaryContours(grains) - redraws grain boundary segments using a contouring algorithm instead of following pixel edges

[grains,stablefraction] = smooth1(grains,iter,ebsd,varargin) - same as smooth(grains) but stops moving boundary segments before they cross through the boundary neighbour ebsdId positions

@vtvivian
Copy link
Contributor Author

Here are some expected outputs:

Slide1
Slide2
Slide3
Slide4
Slide5

add new functionality to grain2d/smooth:
if ebsd is passed as an additional input, stop moving gb segments about to cross over to the wrong side of grains.boundary.ebsdId

Regression tested on mtexdata twins:
- reproduced standard smoothing with no option flags 
- option flags have not been tested
- non-square grid and multiphase EBSD maps have not been tested
changes implemented as option in grain2d/smooth
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

Successfully merging this pull request may close these issues.

1 participant