I got image artifacts on left and top edges of the image in result.

1 Ansicht (letzte 30 Tage)
D.Regan
D.Regan am 24 Feb. 2014
Bearbeitet: David Young am 24 Feb. 2014
After run this program, i got black artifact on left and top corners of the image. How to rectify this..I attached the files.

Antworten (1)

David Young
David Young am 24 Feb. 2014
Bearbeitet: David Young am 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:
  1. 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.
  2. 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.
  3. 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.

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by