오래전 Matrix 연산을 위해 라이브러리를 찾던 중 알게된 Armadillo 를 오늘에서야 테스트를 해 보았다. Armadillo는 사이트에 게시된 속도테스트 결과에 의하면 IT++NEWMAT 라이브러리와 비교해서 월등히 속도가 빠르다. 그래서 OpenCV 의 Matrix 연산과 비교해 보았다. OpenCV Library 는 2.2 버전을 사용하고 컴파일러는 Visual C++ 2010 버전을 사용하였다.

아래는 테스트에 사용한 코드이다.

결과는 의외로 OpenCV 가 더 빠른 결과가 나왔다. 
아래는 위 코드를 열번 반복했을 때 처리 시간이다.
OpenCV Matrix : 1.158083ms 
Armadillo Matrix : 0.946997ms 

OpenCV Matrix : 1.125553ms 
Armadillo Matrix : 0.977720ms 

OpenCV Matrix : 0.932178ms 
Armadillo Matrix : 1.334109ms 

OpenCV Matrix : 1.124107ms 
Armadillo Matrix : 1.342423ms 

OpenCV Matrix : 0.794104ms 
Armadillo Matrix : 0.934708ms 

OpenCV Matrix : 1.126637ms 
Armadillo Matrix : 1.333025ms 

OpenCV Matrix : 1.125553ms 
Armadillo Matrix : 1.332302ms 

OpenCV Matrix : 1.120854ms 
Armadillo Matrix : 1.331218ms 

OpenCV Matrix : 1.124107ms 
Armadillo Matrix : 1.337362ms 

OpenCV Matrix : 1.121216ms 
Armadillo Matrix : 1.332302ms 

실제로 Armadillo 가 가장 빠른지 다른 라이브러리와도 테스트를 해 보아야겠다.
Posted by NeoDreamer
:
BLOG main image
사람의 발목을 잡는건 '절망'이 아니라 '체념'이고 앞으로 나아가게 하는건 '희망'이 아니라 '의지'다. - 암스 중에서 - by NeoDreamer

공지사항

카테고리

전체보기 (793)
Life Story (1)
Thinking (2)
Nothing (5)
---------------* (0)
Dev Story (701)
Com. Story (80)
IT Story (1)
---------------+ (0)
Etc (2)

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

Total :
Today : Yesterday :
05-09 15:15