-
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
Denoise #9
Labels
Comments
spatial filtering -> random noise를 제거하는데 간단하고 많이 쓰이는 방법 def denoise(img, t=1, L=1/8):
for i in range(t, img.shape[0] - t):
for j in range(t, img.shape[1] - t):
if img[i][j] == 2:
frac = img[i-t:i+t+1, j-t:j+t+1]
N = frac[frac != 0].sum() - 1
R = (frac[frac == 2].sum() - 1) / N
if R < L:
img[i][j] = 1
return img col: noised / denoised |
denoising parameter 조정 필요한 듯... |
@illuminoplanet 데이터 추가 생성에 Denoise 쓰는 건 어떰? |
Denoise에 변수도 바꿔가면서 하면 한 5배 정도 만들 수 있을듯 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
noise는 defect recognition에 도움을 별로 주지 못하기 때문에 denoise
The text was updated successfully, but these errors were encountered: