Class Projection

java.lang.Object
imagingbook.common.image.Projection

public class Projection extends Object

This class implements horizontal and vertical projections of scalar-valued images. See Sec. 8.7 of [1] for additional details.

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

Version:
2022/09/28
  • Constructor Details

  • Method Details

    • getHorizontal

      public double[] getHorizontal()
      Returns the horizontal projection of the associated image. The length of the returned array corresponds to the image height.
      Returns:
      the horizontal projection array
    • getVertical

      public double[] getVertical()
      Returns the vertical projection of the associated image. The length of the returned array corresponds to the image width.
      Returns:
      the vertical projection array