java.lang.Object
imagingbook.common.image.Projection
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 Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Returns the horizontal projection of the associated image.double[]
Returns the vertical projection of the associated image.
-
Constructor Details
-
Projection
Constructor, works only on images of typeByteProcessor
,ShortProcessor
, andFloatProcessor
. Throws an exception if the specified image is of typeColorProcessor
.- Parameters:
ip
- the image to process
-
-
Method Details
-
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
Returns the vertical projection of the associated image. The length of the returned array corresponds to the image width.- Returns:
- the vertical projection array
-