Ask Your Question
0

How to convert a .tif gray image to HSL using Python?

asked 2015-06-08 08:03:48 -0600

Mat29 gravatar image

How to convert a .tif gray image to HSL using Python?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-06-08 08:22:02 -0600

updated 2015-06-08 11:03:45 -0600

thdrksdfthmn gravatar image

Of course, there is an OpenCV function for conversion: cvtColor. You have to do it in 2 steps: first HSL to RGB (with COLOR_HSL2BGR), then BGR to Gray ( with COLOR_BGR2GRAY).

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-06-08 08:03:48 -0600

Seen: 644 times

Last updated: Jun 08 '15