00001 #!/usr/bin/env python 00002 # -*- coding: utf-8 -*- 00003 00004 import cv2 00005 from scipy.misc import lena 00006 00007 import imagesift 00008 00009 00010 def main(): 00011 img = lena() 00012 00013 frames, desc = imagesift.get_sift_keypoints(img) 00014 00015 out = imagesift.draw_sift_frames(img, frames) 00016 00017 cv2.imshow('sift image', out) 00018 cv2.waitKey(0) 00019 00020 00021 if __name__ == '__main__': 00022 main()