I am using OpenCV for my image processing algorithms and am trying to fix up ragged edges in characters. I read that the morphological Hit-Miss transform is a very good solution for this. Is there any open source implementation of this?
Or is there any other algorithm that can be used to fix ragged edges?

A simple implementation of hit-and-miss can be found here:
But i think that you can solve the problem only with dilation, as the example in page 7 of this slide (it is taken from “Digital Image Processing” book from Gonzales et al.)