See this study note How to calculate transformation matrix between NED and OpenCV coornidate systems.