I'm developing a script to automatically calibrate the pixel size at various magnifications. The script needs to address two key challenges:
Stripe Edge Detection:
I need to identify the edges of stripes (using a MagICAL sample) and compute the average distance between consecutive stripes.
FFT Points Detection:
I need to automatically identify the FFT points corresponding to the Silicon 110 face.
I'm looking for open-source scripts or libraries that offer similar functionalities, or any guidance on algorithms and techniques that could help me implement these features. Any pointers or references to relevant documentation would be greatly appreciated.
This is a good question, but one that goes well beyond the scope of DM scripting. You are basically asking about algorithms for edge, peak, and generalized feature detection, a common problem in many types of data analysis. Once you've studied these problems for a while, you will see that, although they seem like simple problems for the sort of intelligence we have on-board in our brains, it is not an easy matter to design a computer algorithm that robustly finds such features in all cases and contexts. In fact, it is with these sorts of problems that many of the developments in artificial intelligence got their start.
In my opinion, it is not likely that you will find this sort of feature detection encapsulated in simple functions, unless your data are unusually simple and clean. Good luck with your further research and developments for your specific data analysis problems. You have joined a pretty large and active community, one that extends well beyond DM scripting.