rm_low_freq.py
Go to the documentation of this file.
00001 import roslib; roslib.load_manifest('hai_sandbox')
00002 import cv
00003 import sys
00004 import os.path as pt
00005 
00006 img_path = sys.argv[1]
00007 print 'loading', img_path
00008 img = cv.LoadImageM(img_path)
00009 dst = cv.CloneMat(img)
00010 dif = cv.CloneMat(img)
00011 cv.Smooth(img, dst, cv.CV_GAUSSIAN, 91)
00012 cv.Sub(img, dst, dif)
00013 cv.SaveImage(img_path, dif)
00014 
00015 #orig_path, fname = pt.split(img_path)
00016 #name = pt.splitext(fname)[0]
00017 #pt.join(orig_path, name)
00018 
00019 
00020 


hai_sandbox
Author(s): Hai Nguyen
autogenerated on Wed Nov 27 2013 11:46:56