path-to-target menu

--------------------------------
The Path-to-target menu lets you answer the following question:

How far is it from each pixel of type A in an image to the nearest pixel of type B?

The menu works as follows:

  1. You provide the names of two bitmap images, a Matrix bitmap and a Target bitmap.
  2. You click on the PERFORM CALCULATION menu field. For each pixel in the matrix bitmap that is set (that is, black), the system finds the shortest path to a pixel that is set in the target bitmap. This path is required to pass only through pixels that are set in the matrix bitmap. You click on the DISPLAY HISTOGRAM menu field to see a histogram of the path length versus percent of image area.

If you set the Create It? menu field to Yes, the system will create a black & white image that expresses the path length for each matrix pixel graphically, by assigning intensity values that are proportional to the path length for each matrix pixel. You can enter the name you want this image to have in the Image file menu field. If you create such an image, you can do a black & white segmentation on it to make a bitmap of all the matrix pixels that are within a range of distance to the nearest target.