• DepthAI-v2
  • How to apply a temporal filter to a stereoDepth node?

According to the tutorial, a median filter can be applied by stereo.initialConfig.setMedianFilter(median), but the maximum disparity value exceeds the max value to apply a median filter. However the disparity has noise, and I want to try other filters. How to apply them?

    jarvis maximum disparity value exceeds the max value to apply a median filter

    Not really sure what this means. Any error you are getting?

    jarvis However the disparity has noise, and I want to try other filters. How to apply them?

    https://docs.luxonis.com/projects/api/en/latest/components/nodes/stereo_depth/#currently-configurable-blocks
    The application should be the same as for the median filter. Just swap the filter for the desired one.

    Another example:
    https://docs.luxonis.com/projects/api/en/latest/samples/StereoDepth/depth_post_processing/

    Thanks,
    Jaka

      jakaskerl Great thanks, that helps. The error appears when activating the extended and the median filter at the same time of the stereo depth camera.