Ask Your Question
0

Colored depth

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

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 -0600

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

Question Tools

1 follower

Stats

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

Seen: 4,249 times

Last updated: Apr 12 '16