Compare the pixel of the two different images, takes too long time

前端 未结 3 1815
春和景丽
春和景丽 2021-01-16 12:11

I want to compare the pixel of the two different images. I am comparing the pixel of first image with all the pixels of the second Image. Here is my code stuff:



        
3条回答
  •  鱼传尺愫
    2021-01-16 12:32

    Oh no, remember this in mind when you do image processing in Android.

    Never use getPixel() or setPixel() continuously, like a loop, it will result in a really really bad performance, damn slow. Use getPixels() and setPixels() instead

    Well, keep in mind that you need to read Android Documentation first.

提交回复
热议问题