Ask Your Question
0

Colored depth

asked 2016-04-12 09:20:32 -0500

ROSpioneer gravatar image

I want to transform my grayscale depth image to colored image like this one here

I already have a dataset of depth images in grayscale version. Do you know/have a program to do that or any other information.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-04-12 09:33:02 -0500

berak gravatar image

after converting to CV_8U, use applyColorMap , like this:

Mat bgr;
applyColorMap(depth, bgr, COLORMAP_JET);

image description

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-04-12 09:20:32 -0500

Seen: 814 times

Last updated: Apr 12 '16