A General Framework for Automated Accurate Calculation of b-Matrix (Auto-b) in Diffusion MRI Pulse Sequences (Concepts in Magnetic Resonance Part B, Magnetic Resonance Engineering, 2023)