-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Texture Feature/ Denoising #6
Comments
from skimage.feature import greycomatrix, greycoprops
import numpy as np
angle = [0,np.pi/4, np.pi/2, np.pi*3/4]
#개별 measure 하나씩
def contrast(img):
glcm = greycomatrix( img , [1], angle)
result = greycoprops(glcm, 'contrast')
return result
def energy(img):
glcm = greycomatrix( img , [1], angle)
result = greycoprops(glcm, 'energy')
return result
def correlation(img):
glcm = greycomatrix( img , [1], angle)
result = greycoprops(glcm, 'correlation')
return result
def dissimilarity(img):
glcm = greycomatrix( img , [1], angle)
result = greycoprops(glcm, 'dissimilarity')
return result
def ASM(img):
glcm = greycomatrix( img , [1], angle)
result = greycoprops(glcm, 'ASM')
return result
def homogeneity(img):
glcm = greycomatrix( img , [1], angle)
result = greycoprops(glcm, 'homogeneity')
return result
#ASM을 제외한 총 5개의 measure 특징 추출
def extract_texture(x):
feature_name = lambda s, x, y: f"{s}_{str(x).zfill(2)}_{str(y)}"
text = {}
props = ['dissimilarity', 'contrast', 'homogeneity', 'energy', 'correlation']
angles = [0, np.pi/4, np.pi/2, np.pi*3/4] #4 angles
glcm = greycomatrix( x , [1], angles)
for f in props:
for i in range(4):
text[feature_name('text', f, i)] = greycoprops(glcm,f )[0][i]
return pd.Series(text) |
|
Evaluation *Denoising X Control: Density-based + Radon-based + Geometry-based Experiment: Density-based + Radon-based + Geometry-based + *Distance-based Experiment: Density-based + Radon-based + Geometry-based + *Texture-based Experiment: Density-based + Radon-based + Geometry-based + *Distance-based + *Texture-based |
대개 비슷한 성능을 보이거나 미미한 성능 향상이 있었음 |
*Denoising O -Denoising: Median Filter -Denoising: Spatial -Denoising: Labeling |
Denoise + Feature 2개 추가 -> 성능 향상 |
Denoising wafer map denoising 기법 denoise data |
Texture feature
on paper [3]
Using GLCM(Gray Level of Co-occurrence Matrix)
skimage.feature.greycomatrix
skimage.feature.greycoprops
measure type: contrast, energy, correlation, dissimilarity, ASM, homogeneity
my option) distance: 1 / angle: 0,45,90,135
The text was updated successfully, but these errors were encountered: