findTopBottomBorders

abstract fun findTopBottomBorders(image: T, width: Int, height: Int): Vector2ic?

Finds the top and bottom borders of the given image. The values in the returned Pair correspond with the y-coordinate of the first non-empty row from the top and bottom side of the image.

Return

A vector containing the top and bottom borders, or null if the image is completely empty.