Edge detection and removal

大城市里の小女人 提交于 2020-01-13 19:55:21

问题


I am new to Image Processing. I am developing a web application. I need to take an image (free hand drawings) and remove parts of it. For example, take an image of cat and remove everything except its eye.

P.S-> I am developing a pictionary game based authentication system. It requires user to select an image co-relating his password, and I would morph it by detecting the edges and removing the parts of it and store it as a cue and display it to him, so that it makes sense only to him and not an attacker.


回答1:


Edge detection is done via a process called Convolution. There are various convolution matrixes defined, one of which is edge detection. You're going to have to look all that up, and also how to do convolution in Java: see java.awt.image.ConvolveOp for a start. How you then remove 'everything except' is another question.




回答2:


I don't have the entire code, but I had done edge detection using the approach defined [here] (http://www.pixastic.com/lib/docs/actions/edges2/). The removal of the parts was done using canvas methods



来源:https://stackoverflow.com/questions/6542871/edge-detection-and-removal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!