I was trying to stream from a depth camera, however the data I got is poor, sometimes there are dead pixels equal to zero. So I want to find the mode of each pixel around 5-10 frames. Is there a fast way to do this with OpenCV
Python
? I currently do it with manual counters and compare each pixel by iterating one by one, and this takes a long time. What do you think?
Asked
Active
Viewed 49 times
0

juliussin
- 295
- 3
- 20
-
1Like this https://stackoverflow.com/a/16331189/2836621 – Mark Setchell Mar 28 '20 at 15:16
-
@MarkSetchell I wasn't aware of that. Thanks! – juliussin Mar 28 '20 at 15:19