Interpolation type can be set on a CameraControl
Of the possible values, which one will provide the best image quality when scaling from 4K to around 1152x648, if any make a difference?

    Hi Thor
    You can check the API reference when you need info. (https://docs.luxonis.com/projects/api/en/latest/references/python/#depthai.Interpolation)

    1. BILINEAR

    • How It Works: Bilinear interpolation considers the closest 2x2 neighborhood of known pixel values surrounding an unknown pixel's calculated position. It then performs a linear interpolation first in one direction and then in the other.
    • Efficiency: It's more computationally intensive than nearest neighbor but less so than bicubic interpolation. It provides smoother results than nearest neighbor but can introduce blurring in some cases.

    2. BICUBIC

    • How It Works: Bicubic interpolation uses the closest 4x4 neighborhood of known pixels. It provides a weighted average of these pixels, considering the distance of each one from the point of interest. The weights are calculated using cubic polynomials.
    • Efficiency: This method is more computationally intensive due to the larger neighborhood and the cubic calculations. However, it generally produces smoother and less pixelated images than bilinear interpolation, especially for scaling up images.

    3. NEAREST NEIGHBOR

    • How It Works: This method simply assigns the value of the closest neighboring pixel to the new pixel. It doesn’t consider any of the surrounding pixels like bilinear or bicubic.
    • Efficiency: Nearest neighbor is the most computationally efficient among these methods. It's very fast but can produce a blocky or pixelated result, especially noticeable when enlarging images.

    Bypass is nearest neighbour,
    Default is bicubic
    Default_disparity_depth is nearest neigbour.

    Thanks,
    Jaka

    Thank you @jakaskerl for the explanation
    Of course before asking here I looked at the API reference you linked. However there is no explanation whatsoever, just a list and the values, unless I'm missing something?
    Anyway, thanks again

      Thor
      Methods/techniques used by depthai are usually well known cv/image processing techniques. You should get most of the information on the internet, since it is not depthai specific.

      Thanks,
      Jaka