Hello,
I'm able to align a ToF frame to a RGB frame:
camRgb.isp.link(sync.inputs["rgb"])
tof.depth.link(align.input)
align.outputAligned.link(sync.inputs["depth"])
sync.inputs["rgb"].setBlocking(False)
camRgb.isp.link(align.inputAlignTo)
instead the opposite doesn't work:
tof.depth.link(sync.inputs["depth"])
camRgb.isp.link(align.input)
align.outputAligned.link(sync.inputs["rgb"])
sync.inputs["depth"].setBlocking(False)
tof.depth.link(align.inputAlignTo)
Please find in attachment the results that I get.
What am I doing wrong?
Thanks!
Alessandro
![](https://discuss.luxonis.com/assets/files/2024-07-22/1721652212-23644-align-to-rgb.png)
![](https://discuss.luxonis.com/assets/files/2024-07-22/1721652212-302315-align-to-tof.png)