-
Hi, First, thanks for this amazing work, that permits to see bayond EBSP. The result is not as expected. I attached the result of IQ map by KikuchiPy and the CI map plotted by Mtex. Thanks a lot Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 11 replies
-
Hi @Fred-Ad! Thanks for reaching out and asking this question. I agree that the IQ map looks strange, and this might well be due to a bug in kikuchipy... Which version of kikuchipy are you running ( I don't have access to Bruker Esprit v2 myself, and while I wrote the Bruker HDF5 reader in kikuchipy, I tested it against only one file, the one made available on Zenodo by Angus Wilkinson and David M Collins. If the reader indeed reads your patterns in the wrong order, do you think you could send me your dataset, so we make sure that the reader can read your dataset? Lastly, I would like to mention, for those not so familiar with very early EBSD work, that the image quality calculation implemented in kikuchipy (and e.g. EMsoft) uses the method of Krieger Lassen (page 87 in his PhD thesis found here), i.e. it is not the same as the one provided by commercial packages, like EDAX TSL, which relies on the Hough transform. |
Beta Was this translation helpful? Give feedback.
-
Just to be sure, I redownloaded and read in the mentioned Bruker HDF5 dataset from Wilkinson and Collins, and computed maps of the mean intensity, image quality, and average neighbour dot product: That version listed in the dataset is "Esprit 2.X". What is the Esprit version of your dataset, @Fred-Ad? |
Beta Was this translation helpful? Give feedback.
-
I can send my dataset. Can you give me your email or a way to send it ? Thanks a lot |
Beta Was this translation helpful? Give feedback.
-
Finally, I figured out what the "Scan 1/EBSD/SEM/IX" and "Scan 1/EBSD/SEM/IY" arrays show, i.e. the (flattened) indices of patterns in the final 2D map into the 1D array of patterns in "Scan 1/EBSD/Data/RawPatterns". With this fix, I could now do: >>> import matplotlib.pyplot as plt
>>> import kikuchipy as kp
>>> s = kp.load("/home/hakon/phd/data/epTest-coeur.hdf5")
>>> static_bg = s.mean(axis=(0, 1)) # Average all patterns to get a background
>>> static_bg.change_dtype(s.data.dtype) # Revert to 8-bit unsigned integer
>>> s.remove_static_background(static_bg=static_bg.data)
>>> s.remove_dynamic_background()
>>> iq = s.get_image_quality()
>>> adp = s.get_average_neighbour_dot_product_map()
>>> fig, ax = plt.subplots(ncols=2)
>>> ax[0].imshow(iq)
>>> ax[0].set_title("Image quality")
>>> ax[0].axis("off")
>>> ax[1].imshow(adp)
>>> ax[1].set_title("Average neighbour dot product")
>>> ax[1].axis("off")
>>> fig.tight_layout()
>>> fig.savefig("/home/hakon/phd/data/iq_adp.png"), bbox_inches="tight", pad_inches=0, dpi=150) to produce this I'll get this fix in now, and then release this as part of a v0.3.3 patch. |
Beta Was this translation helpful? Give feedback.
-
The fix mentioned in the previous comment is implemented in #339, and will be released as part of v0.3.3 shortly! |
Beta Was this translation helpful? Give feedback.
-
@Fred-Ad, I just published kikuchipy v0.3.3 on PyPI, could you try |
Beta Was this translation helpful? Give feedback.
-
It's the same with
|
Beta Was this translation helpful? Give feedback.
-
I'd love helping, but I'm new in Python. Just know coding in mtex in Matlab. |
Beta Was this translation helpful? Give feedback.
Finally, I figured out what the "Scan 1/EBSD/SEM/IX" and "Scan 1/EBSD/SEM/IY" arrays show, i.e. the (flattened) indices of patterns in the final 2D map into the 1D array of patterns in "Scan 1/EBSD/Data/RawPatterns". With this fix, I could now do: