02 2018 档案

摘要:时域下的一维Gabor滤波器: 可以将Gabor滤波器看作是两个输出两个相位的滤波器,分别在实数域和虚数域上。 实数域上滤波器为: 虚数域上滤波器为: 傅里叶变换为频域: 上述两个滤波器对频率敏感,为了获得一个对相位不敏感,而且对正弦输入无正面响应的响应,因此,通过计算两个滤波器输出的和的平方根来得 阅读全文
posted @ 2018-02-27 15:09 fourmii 阅读(1205) 评论(0) 推荐(0) 编辑
摘要:with open('DATA.txt') as reader, open('newfile.txt', 'w') as writer: for index, line in enumerate(reader): if index % 20 == 0: writer.write(line) 阅读全文
posted @ 2018-02-19 14:50 fourmii 阅读(189) 评论(0) 推荐(0) 编辑
摘要:from sklearn.externals import joblib from sklearn.model_selection import train_test_split import numpy as np import cv2 import pylab as pl path = u'testingData16.txt' data0 = np.loadtxt(path,dtype =... 阅读全文
posted @ 2018-02-19 14:47 fourmii 阅读(383) 评论(0) 推荐(0) 编辑
摘要:# -*- coding: utf-8 -*- import numpy as np from sklearn import svm from sklearn.model_selection import train_test_split from sklearn.externals import joblib from sklearn.tree import DecisionTreeClas... 阅读全文
posted @ 2018-02-19 14:45 fourmii 阅读(443) 评论(0) 推荐(0) 编辑
摘要:# -*- coding: utf-8 -*- """ 将图片转换生成的txt文件进行格式化处理 """ import os import re import sys def txtChange(): ifn = r"extract.txt"#待处理的txt文件 ofn = r"testingData.txt"#处理好后生成的txt文件 infile = o... 阅读全文
posted @ 2018-02-19 14:39 fourmii 阅读(431) 评论(0) 推荐(0) 编辑
摘要:# -*- coding: utf-8 -*- #2018-2-19 14:30:30#Author:Fourmi_gsj import cv2 import numpy as np import pylab as pl from PIL import Image import skimage.io as io from skimage import data_dir,data,filters,... 阅读全文
posted @ 2018-02-19 14:32 fourmii 阅读(1375) 评论(0) 推荐(0) 编辑