how can i combine the L,a,b to make lab image?
조회 수: 2 (최근 30일)
이전 댓글 표시
i use RGB2lab function to convert RGB image to lab image i do this work by this to line code % cform = makecform('srgb2lab'); lab = applycform(mov(k).cdata,cform); but the output of this 2 way is different for example the value of pixels in lab(:,:,1) isnt between 0-100 i want to know the second way for convert is true? and after convert i need to rebuilt the image from l,a,b how can i do this? when i use cat[l,a,b] the output isnt true?!(RGB2lab is a function that i download from http://www.mathworks.com/matlabcentral/fileexchange/24009-rgb2lab
댓글 수: 1
Walter Roberson
2012년 10월 28일
Please use better tags for this Question; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags
답변 (1개)
Image Analyst
2012년 10월 26일
If I remember correctly applycform gives different ranges depending on if the image is floating point or integer. Try casting your image to double before converting to LAB and see if you get the correct ranges out. You might have to do it manually using makecform instead of using that File Exchange program.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Modify Image Colors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!