EMsoft-org / EMsoft

Public EMsoft repository
Other
61 stars 94 forks source link

Support for NORDIF binary pattern file #88

Closed hakonanes closed 4 years ago

hakonanes commented 4 years ago

This PR includes reading of patterns from the NORDIF binary file format, which stores all patterns as one long string of intensities of 8 bit depth with no header (this information is stored in a separate text file).

hakonanes commented 4 years ago

Reading of single patterns using e.g. EMEBSDDIPreview and all patterns using e.g. EMgetADP can be tested using one of the scans available here: https://zenodo.org/record/3265037#.XaBzAPdS9hE

hakonanes commented 4 years ago

I did not realise that the input indices for (row, column) to getSingleExpPattern were zero indexed... I'll correct for this.

hakonanes commented 4 years ago

Reading from NORDIF patterns using getSingleExpPattern and getExpPatternRow have been tested both with EMEBSDDIpreview, and EMgetADP and EMEBSDDI, respectively.

ROIs also work. Regarding ROIs, I'm a bit puzzled by that 0-indexing is used in EMEBSDDIpreview while ROIs use 1-indexing, why is that?