using GPU module of OpenCV(>2.4)