summaryrefslogtreecommitdiff
path: root/macros/rotationVectorToMatrix.sci
blob: abe97f9a4c6b1711572fc9583215e11494345b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function [ matrix ] = rotationVectorToMatrix(vector)
// Returns rotation matrix.
//
// Calling Sequence
//   matrix = rotationVectorToMatrix(vector);
//
// Parameters
// matrix: rotation matrix
// vector: 3-D rotation vector
//
// Description
// Converts rotation vector to rotation matrix.
//
// Examples
// vector = pi/4 * [1, 2, 3];
// matrix = rotationVectorToMatrix(vector);
//
// Authors
// Tanmay Chaudhari

         a=opencv_rotationVectorToMatrix(vector);
         matrix(:,:,1)=a(1);
	
endfunction