hough_indexing#
- EBSD.hough_indexing(phase_list: PhaseList, indexer: EBSDIndexer, chunksize: int = 528, verbose: int = 1, return_index_data: bool = False, return_band_data: bool = False) CrystalMap | tuple[CrystalMap, np.ndarray] | tuple[CrystalMap, np.ndarray, np.ndarray][source]#
Index patterns by Hough indexing using
pyebsdindex.See
EBSDIndexerandindex_pats()for details.Currently, PyEBSDIndex only supports indexing with a single mean projection center (PC).
- Parameters:
- phase_list
List of phases. The list must correspond to the phase list in the passed.
- indexer
PyEBSDIndex EBSD indexer instance of which the
index_pats()method is called. Its phaselist must be compatible with the givenphase_list, and theindexer.vendormust be"KIKUCHIPY". An indexer can be obtained withget_indexer().- chunksize
Number of patterns to index at a time. Default is the minimum of 528 or the number of patterns in the signal. Increasing the chunksize may give faster indexing but increases memory use.
- verbose
Which information to print from PyEBSDIndex. Options are 0 - no output, 1 - timings (default), 2 - timings and the Hough transform of the first pattern with detected bands highlighted.
- return_index_data
Whether to return the index data array returned from
EBSDIndexer.index_pats()in addition to the resulting crystal map. Default isFalse.- return_band_data
Whether to return the band data array returned from
EBSDIndexer.index_pats(). Default isFalse.
- Returns:
xmapCrystal map with indexing results.
index_dataArray returned from
EBSDIndexer.index_pats(), returned ifreturn_index_data=True.band_dataArray returned from
EBSDIndexer.index_pats(), returned ifreturn_band_data=True.
Notes
Requires
pyebsdindexto be installed. See Dependencies for further details.This wrapper of PyEBSDIndex is meant for convenience more than speed. It uses the GPU if
pyopenclis installed, but only uses a single thread. If you need the fastest indexing, refer to the PyEBSDIndex documentation for multi-threading and more.