mesoOSU / Mart2Aust_Hackathon

Fork of Orix for developing tools necessary to make the AusRecon package in python
https://orix.readthedocs.io
GNU General Public License v3.0
2 stars 13 forks source link

Create an efficent neighbor misorientation array #31

Open argerlt opened 2 years ago

argerlt commented 2 years ago

Multiple people are running into the problem where they need an array of all the misorientation angles between neighboring pixels. We need one fast way to do that

Ideally, if you have an nxm crystalmap, would create an (n-1)x(m-1) array of misorientation angles for the Left-Right connection, and a second (n-1)x(m-1) Up-Down connection. For a hex grid, it would kick out three things instead of two (L-R, UL-DR, UR-DL)

should be a function inside a python file called "orix/graph_cut/aux.py" (make this file if it doesn't exist)