- 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 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
David Young
2014-2-24
编辑:David Young
2014-2-24
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!