Class Make_Projections

java.lang.Object
Ch08_Binary_Regions.Make_Projections
All Implemented Interfaces:
PlugInFilter, JavaDocHelp

public class Make_Projections extends Object implements PlugInFilter, JavaDocHelp

This ImageJ plugin demonstrates the calculation of horizontal and vertical projections from a grayscale image. See Sec. 8.7 of [1] for additional details. The input image is not assumed binary, i.e., gray values are simply added up without thresholding. This plugin only works for 8-bit grayscale images, the original image is not modified. If no image is currently open, the plugin optionally loads a suitable sample image. The resulting projections are shown as separate diagrams, which either show the relative amount of white (default) or black, selectable in the user dialog:

  • The horizontal projection diagram has the same height as the original image and user-adjustable width, with diagram bars being drawn from left to right.
  • The vertical projection diagram has the same width as the original image and user-adjustable height, with diagram bars being drawn from top to bottom.

[1] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).

Version:
2020/12/17, 2022/09/29 revised to match book examples
See Also: