I have searched the answers for a long time to help me with this but I can not find it. I tried to do with drawing programs but it looks good.

How can I leave the "w" blank, respecting its shadows or reliefs, so that it remains the same as the "s" , without touching the "s"

attached image

enter image description here

  • $\begingroup$ perhaps a Fourier filter with the right frequency? $\endgroup$ Jan 21, 2018 at 21:51
  • $\begingroup$ @AccidentalFourierTransform hello, I would not know how to implement it, could you give an example please $\endgroup$
    – susy diaz
    Jan 21, 2018 at 23:58

1 Answer 1


As a not too elaborated solution, it seems that a morphological image processing can be done:

procimg = DeleteSmallComponents[img, 140] // EdgeDetect[#, 1, 0.3] & // ColorNegate

enter image description here

  • $\begingroup$ wow thanks, there is some way to vectorize the resulting image, so it does not come out so pixelated, or to start from an image already vectorized $\endgroup$
    – susy diaz
    Jan 24, 2018 at 4:19
  • $\begingroup$ @susydiaz your image is a bit small. It is normal that appears pixelated after processing. For vectorizing images you can use ImageGraphics. I suggest you read the doc about it. $\endgroup$ Jan 24, 2018 at 9:56
  • $\begingroup$ hello, and vectorize the image with an external program (wmf), as I can import a vectorized image, I get that format can not be imported. my idea is img = Command ..., then your code (* ImageGraphics is a command in my mathematica is not or is an external program *) $\endgroup$
    – susy diaz
    Jan 24, 2018 at 17:00
  • $\begingroup$ What version of MMA you have? $\endgroup$ Jan 24, 2018 at 17:15
  • $\begingroup$ my version of MMA is 10.4 $\endgroup$
    – susy diaz
    Jan 24, 2018 at 18:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.