can lab color space normalize?

23 views (last 30 days)
xiao
xiao on 1 May 2018
Commented: xiao on 1 May 2018
as we all know, the range of lab color space is (0.100) (L), (-127,128) (A,B). so can I normalize them into (0,1) or any other range? and does it have any influence?

Accepted Answer

Guillaume
Guillaume on 1 May 2018
Edited: Guillaume on 1 May 2018
as we all know, the range of lab color space is ...
Not really, this is a convention but like all colour encoding you can use whatever range you wish as long as you define what that range is. The (-128, 127) range was chosen because that's the range of signed 8 bit integers.
While you can use whatever range you wish for your own processing, those matlab functions that expect L*a*b* values expect them to be in the conventional range (0,100) for L* and (-128, 127) for the others. These functions will not work properly if you use a different convention.
  3 Comments
xiao
xiao on 1 May 2018
thank you !

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!