为什么必须屏蔽距离图像?

Why does the distance image has to be masked?

基于:

http://de.mathworks.com/help/vision/examples/automatically-detect-and-recognize-text-in-natural-images.html

% Compute the stroke width variation metric
strokeWidthValues = distanceImage(skeletonImage);

为什么distanceImage要被骨架图遮住?

笔画宽度是作为在骨架像素(也称为中轴)处评估的到背景的距离获得的。其他像素的距离无关紧要。