- Analyse snn12.m to figure out why it does this, and correct it. This could take some time, and I haven't tried to do that yet - but I'd guess that the padding has not been properly worked out.
- Contact the author of snn12 to ask if they have a more up to date version, or if they can fix it. The email address is in the comments.
- Remove the artefact with Y = Y(3:end, 3:end, :). This is unsatisfactory and inelegant, but it might be sufficient. You'll have to trim any other images that you combine with Y, and if you want to relate coordinates to the original image you'll have to add 2 to them, unless you reexpand Y with padarray.
I got image artifacts on left and top edges of the image in result.
2 views (last 30 days)
Show older comments
After run this program, i got black artifact on left and top corners of the image. How to rectify this..I attached the files.
0 Comments
Answers (1)
David Young
on 24 Feb 2014
Edited: David Young
on 24 Feb 2014
The problem is with snn12.m, which leaves two columns of zeros at the left of the image and two rows of zeros at the top.
Three ways forward:
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!