Go to the documentation of this file.00001
00002
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)
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()