Rolling median in C - Turlach implementation

后端 未结 2 813
谎友^
谎友^ 2020-11-30 07:14

Does anyone know if there is a clean implementation of the Turlach rolling median algorithm in C? I\'m having trouble porting the R version to a clean C version. See here

2条回答
  •  旧巷少年郎
    2020-11-30 07:28

    OpenCV has a medianBlur function that seems to do what you want. I know it's a rolling median. I can't say if it's the "Turlach rolling median" specifically. It's pretty fast though and it supports multi-threading when available.

提交回复
热议问题