问题
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