mtex icon indicating copy to clipboard operation
mtex copied to clipboard

add option to replace unknown pixels with notIndexed

Open kilir opened this issue 9 years ago • 1 comments

Hi Ralf, I found the following modifications in gridify sometimes helpful when there are data sets with missing points (nan or discontinuous coordinates), setting those as nonIndexed phase. This may help in certain situations e.g. when using 'unitCell' in calcGrains isn't sufficient it also helps to works around the weird appearance when plotting grains calculated from gridified data which contains regions of no information (see example below).

sillysquares

% modified function gridify.m.zip

Cheers, Rüdiger

kilir avatar Jul 19 '16 11:07 kilir

in my files the non-indexed is phase 0, might be the case for others. Good idea to include the nan-pixels as not indexed.

bjoerneske avatar Sep 28 '16 21:09 bjoerneske