You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume you cropped your area and want to test if 2 pixels of different colors match? The library is minimalistic so you can stack 2x pixelsearch. Each instance of pixelsearch runs at 4000+ fps on my laptop!! I added the OR function in assembly code to give about a 1.5x speedup. There likely isn't a good speedup with the AND operation because the logic would be complex, making the SIMD vectorization hard. But rest assured, since the base speed is so fast, you can write your won custom function that wraps my pixelsearch without worries.
Also, it is hard to beat pic.pixelsearch(red) and pic.pixelsearch(green) for clarity. I can't think of a better syntax.
Currently, it seems that the library only supports the OR search for multiple pixels. It would be very useful if it could also support the AND option
The text was updated successfully, but these errors were encountered: