Skip to content
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

[第四次作业-问题1]第三问的拉普拉斯增强算子用哪个? #60

Open
mxy2097 opened this issue Nov 3, 2019 · 6 comments
Assignees
Labels

Comments

@mxy2097
Copy link

mxy2097 commented Nov 3, 2019

问题描述

是用[0 -1 0, -1 5 -1, 0 -1 0]对图像做卷积吗?为什么得到的图像还不如原图像

相关文件

使用GIST来上传相关的长文件,然后链接到此处。

@douhaoexia
Copy link

是用增强算子. 请上传增强后的图像以供判断.

@mxy2097
Copy link
Author

mxy2097 commented Nov 3, 2019

上传不上去,请问您有邮箱吗

@douhaoexia
Copy link

你可以把代码和结果都发给我 [email protected]

@antenna-before
Copy link

同对这个问题有疑问
1.用[0 -1 0, -1 5 -1, 0 -1 0]对图像做卷积?
2.如果用上述卷积核处理,输出后变为负数的像素如何处理?
🙏

@douhaoexia
Copy link

@tureliuyaohua 可以看课件. 如果用 [[0,1,0],[1,-4,1],[0,1,0]] ,则是需要原图减掉变换后的图;如果用[[0,-1,0],[-1,5,-1],[0,-1,0]] ,则直接卷积即可,等效于 用[[0,1,0],[1,-4,1],[0,1,0]] ,且原图减掉变换后图的情况.
最后得到的增强后的图像数组,如果出现超限数值(大于255,或小于0),可以尝试比较
1.负值取绝对值,
2.直接截断
3.做线性映射到(0,255)
三种情况的显示结果,并讨论

@antenna-before
Copy link

感谢老师 试了一下这几种方式,直接截断效果最佳😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants