File tree Expand file tree Collapse file tree 2 files changed +405
-616
lines changed
Expand file tree Collapse file tree 2 files changed +405
-616
lines changed Original file line number Diff line number Diff line change @@ -44,16 +44,15 @@ int main()
4444 vec sRgb ;
4545
4646 // convert linear to sRGB
47- converter.convert (linearRgb, sRgb , Converter::Conversion::rgb_2_srgb );
47+ converter.rgb2srgb (linearRgb, sRgb );
4848
4949 // convert the sRGB value to CIELab
5050 vec cieLab;
51- converter.convert (sRgb , cieLab, Converter::Conversion::srgb_2_CIELab );
51+ converter.srgb2lab (sRgb , cieLab);
5252
5353 // convert back to linear RGB from CIELab
5454 vec convertedLinearRgb;
55- converter.convert (cieLab, convertedLinearRgb,
56- Converter::Conversion::CIELab_2_rgb);
55+ converter.lab2rgb (cieLab, convertedLinearRgb);
5756 // cpmpute the difference of input and converted linear RGB
5857 const auto differenceEuclid =
5958 std::sqrt (std::pow (convertedLinearRgb[0U ] - linearRgb[0U ], 2.0 ) +
@@ -68,6 +67,7 @@ int main()
6867 {
6968 std::cout << " it didn't work!" ;
7069 }
70+ std::cout << std::endl;
7171
7272 return 0 ;
7373}
You can’t perform that action at this time.
0 commit comments