# Match depth image with color image

**URL:** <https://discourse.processing.org/t/match-depth-image-with-color-image/13161>\
**Category:** Coding Questions\
**Created:** [August 3, 2019, 11:11pm UTC](https://discourse.processing.org/t/match-depth-image-with-color-image/13161 "2019-08-03T23:11:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cai](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@Cai](https://discourse.processing.org/u/Cai)\
**Post date:** [August 3, 2019, 11:11pm UTC](https://discourse.processing.org/t/match-depth-image-with-color-image/13161/1 "2019-08-03T23:11:09Z")

</div>

how do I minimize the error such that the color and displayed pixel match?

 ![37%20PM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/0122aad2eab6a7e83bd10628760e47563ccc434a.png)

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [August 7, 2019, 1:45pm UTC](https://discourse.processing.org/t/match-depth-image-with-color-image/13161/2 "2019-08-07T13:45:33Z")

</div>

Is this a Kinect 1 or 2, or something else? Stereo calibration, see eg

[https://answers.opencv.org/question/63846/resize-kinect-color-stream-to-match-depth/](https://answers.opencv.org/question/63846/resize-kinect-color-stream-to-match-depth/)
