title: 3D template matching by opencv
body: <p>I have a 3D matrix (very large, let call it L) and a 3D small one (very small, let call it S) and want to use OpenCV to find the closest pattern in L.</p>
  
  <p>Does OpenCV do it for me? If yes, how I should use it?
  Thanks.</p>