且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从图像中的行获取颜色索引

更新时间:2023-12-03 15:34:10

让我谷歌那个为你...... [ ^ ]

Ive worked on this for some time and searched google with no luck. What I'm attempting is to scan each row of an image, and foreach pixel in row determine if the next pixel is equal to current, if so then an index(starts at 1) should be advanced by 1 until the next pixel is not equal or end of current row. The final index for the current color should be added to a collection with the row, column, and final index then the final index should be reset to 1 and continue on the current row unless end of row reached in that case start on next row.

Let me Google that for you...[^]