How to remove a border with an unknown width from an image

后端 未结 4 1846
渐次进展
渐次进展 2021-01-16 01:53

I\'m trying to build a program which can remove an single-colored border form an image.

The border is always white but the width of the border on the left and right

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-16 02:30

    You can use the public int getPixel (int x, int y) function which return for every pixel its color
    It should be easy to run through the border lines and verify that the color is still the same

提交回复
热议问题