def testGaborResponse(self): img = '2.pgm' img_path = os.path.join('..','data','orl_faces', 's1',img) gf = GaborFilter(img_path) response = gf.response(4, 3) output, imOutput = gf.outputImage(response) # im = Image.open(img) # im.show() imOutput.show() today = datetime.date.today() filename = os.path.join('..','data', 'results', \ 's1_2_'+'gb_response_real-'+str(today)+'.jpg') imOutput.save(filename)
def testGaborFunction(self): img = '2.pgm' img_path = os.path.join('..','data','orl_faces', 's1',img) gf = GaborFilter(img_path) gb = gf.gabor2DFunction(4, 3)