sift_keypoints.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: utf-8 -*-
00003 
00004 import os
00005 
00006 import cv2
00007 
00008 import rospkg
00009 import imagesift
00010 
00011 
00012 def main():
00013     rp = rospkg.RosPack()
00014     imgpath = os.path.join(rp.get_path('jsk_perception'), 'sample/ros_fuerte.jpg')
00015 
00016     img = cv2.imread(imgpath, 0)  # gray-scale image
00017 
00018     frames, desc = imagesift.get_sift_keypoints(img)
00019 
00020     out = imagesift.draw_sift_frames(img, frames)
00021 
00022     cv2.imshow('sift image', out)
00023     cv2.waitKey(0)
00024 
00025 
00026 if __name__ == '__main__':
00027     main()


imagesift
Author(s): Rosen Diankov (rdiankov@cs.cmu.edu), Kei Okada
autogenerated on Wed Sep 16 2015 04:36:33