ntd
ntd

Reputation: 2372

Converting Kinect depth map to RGB ground truth depth maps

I have an RGB image and its corresponding Kinect depth map which is in black and white. I need to convert the black and white depth map to an RGB depth map. What is the best way to proceed with this?

Any suggestions are welcome. Thank you.

Upvotes: 1

Views: 1450

Answers (1)

Mozglubov
Mozglubov

Reputation: 433

What is an RGB depth map? RGB refers to an image in the form of Red, Green, and Blue channels. Depth is a single channel of information, so for visualization it typically maps onto a black and white image. Are you instead looking for a heatmap representation? A heatmap is a graphical representation of values using colour instead of intensity (Wikipedia has an overview of them). Depending on which programming language you are using, there are usually several options for standard colour schemes for heatmaps.

In Python you can plot a 2D array as a heatmap using the imshow() function from matplotlib.pyplot by specifying the cmap parameter. For example, you might find cmap='hot' or cmap='plasma' gives you the output you are looking for.

Upvotes: 2

Related Questions