Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

What is the pixel value of RGB umcompression buffer?

Answered

Comments

3 comments

  • Ichiro
    • Network Optix team

    Hi 高偉恆,

    Thanks for the question.

    PixelFormat::rgb means that in the video frame buffer there are exactly 3 bytes for each pixel :

    one for R
    one for G
    one for B,

    In this particular order, and each byte is in range [0..255].

    0
  • 高偉恆

    Hi Ichiro

    But I found that the pixel value is not from 0~255 is from -128~127

    Can you help me check this?

    I use opencv to save the frame. The result is like below.

    0
  • Ichiro
    • Network Optix team

    Hi 高偉恆

    I have checked with our developer, we have not had the experience which the RGB bytes is treated as signed values. Most of the VMS treats them as unsigned values (0..255).

    So likely this is something within in your code about the data type, or you may manually shift them if required.
    Thanks,.

    0

Please sign in to leave a comment.