octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #8713] image package: new color conversion


From: Carnë Draug
Subject: [Octave-patch-tracker] [patch #8713] image package: new color conversion functions: rgb2lab etc.
Date: Mon, 12 Oct 2015 15:37:22 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.3.0

Follow-up Comment #1, patch #8713 (project octave):

I'm adding this functions to the image package now but they fail the tests.

What version of Octave did you use to write this functions and tests?


octave> test lab2xyz
***** test
 lab_map = rand (64, 3);
 lab_map(:,1) = lab_map(:,1) .* 100;
 lab_map(:,2) = lab_map(:,2) .* 254 - 127;
 lab_map(:,3) = lab_map(:,3) .* 254 - 127;
 assert (xyz2lab (lab2xyz (lab_map)), lab_map, 1e-5); 
!!!!! test failed
lab2xyz: LAB must be a colormap or LAB image

octave> test lab2rgb
***** test
 lab_map = rand (64, 3);
 lab_map(:,1) = lab_map(:,1) .* 100;
 lab_map(:,2) = lab_map(:,2) .* 254 - 127;
 lab_map(:,3) = lab_map(:,3) .* 254 - 127;
 assert (rgb2lab (lab2rgb (lab_map)), lab_map, 5e-3);
!!!!! test failed
lab2rgb: LAB must be a colormap or LAB image


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8713>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]