In mathematical morphology the values of the structuring element were either zero or one. The hit and miss transform extends this to also include a ‘don’t care’ value. We can use this transform to solve complex problems like finding the skeleton of an object or the intersection point of lines.