]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Extensions/Algorithms/RGBToYPbPrFunction.h
Kalman completely ported
[cpPlugins.git] / lib / cpPlugins / Extensions / Algorithms / RGBToYPbPrFunction.h
index def48e81d1d440244607d039117737eac6c6da00..56ffd5c6a72eaa2c7b4144d9888b6f8b04a6c414 100644 (file)
@@ -33,9 +33,9 @@ namespace cpPlugins
           {
             static const O M[] =
               {
-                O(  0.2126 ), O(  0.7152 ), O(  0.0722 ),
-                O( -0.2126 ), O( -0.7152 ), O(  0.9278 ),
-                O(  0.7874 ), O( -0.7152 ), O( -0.0722 )
+                O(  0.2990 ), O(  0.5870 ), O(  0.1140 ),
+                O( -0.1687 ), O( -0.3313 ), O(  0.5000 ),
+                O(  0.5000 ), O( -0.4187 ), O( -0.0813 )
               };
             static const vnl_matrix< O > vM( M, 3, 3 );
             static const itk::Matrix< O, 3, 3 > iM( vM );