View my account

How to align infrared resolution the same as RGB resolution ?

Comments

3 comments

  • Official comment
    Jesus Garcia

    Hello Lyhour, 

    Alignment can be done only between a depth stream and another stream, either RGB or IR. You cannot align IR to RGB. Why do you need to align the IR image to RGB?

    Sincerely,
    Jesus G.
    Intel Customer Support

    Comment actions Permalink
  • Lyhour Newtechnology

    Thank you very much for you kindly response. the reason that I want to align the IR image because I want to use this information for my object detection. Typically, the object detection conducted base on CNN mean that using RGB information (3 channel) for convolutional process. However, I want to add the depth information and IR information for object detection. Hence, I have 5 channels (RGB-D-IR) information for input in the neural network. To do this, we have to acquiring the new dataset that all information of these 5 channels must have the same resolution (W×H). Thank you very much.

    Best Regards,

    CHHAY LYHOUR

    0
    Comment actions Permalink
  • Jesus Garcia

    Hello Lyhour,

    If your use-case allows, you can align color to depth by changing these lines:

    align_to = rs.stream.depth
    align = rs.align(align_to)

    Since the IR stream is generated by the depth sensor of the L515, the IR and depth streams have the same resolution, intrinsics, and extrinsics in relation to the RGB stream. When you align the color to depth, the resolution of the aligned color frame will match that of the depth/IR frame. Then you will have the three streams aligned to each other.

    Sincerely,
    Jesus G.
    Intel Customer Support

    0
    Comment actions Permalink

Please sign in to leave a comment.