[opengtl-commits] [369] fix wrong computation of blue pixels |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 369
Author: cyrille
Date: 2008-09-04 01:34:05 +0200 (Thu, 04 Sep 2008)
Log Message:
-----------
fix wrong computation of blue pixels
Modified Paths:
--------------
trunk/OpenGTL/OpenShiva/tests/raw/LinearDemosaicing.shiva
trunk/OpenGTL/OpenShiva/tests/raw/LinearDemosaicing.shiva.png
Modified: trunk/OpenGTL/OpenShiva/tests/raw/LinearDemosaicing.shiva
===================================================================
--- trunk/OpenGTL/OpenShiva/tests/raw/LinearDemosaicing.shiva 2008-09-03 23:15:24 UTC (rev 368)
+++ trunk/OpenGTL/OpenShiva/tests/raw/LinearDemosaicing.shiva 2008-09-03 23:34:05 UTC (rev 369)
@@ -17,7 +17,7 @@
result.data[1] = img.sampleNearest( result.coord );
result.data[2] = (img.sampleNearest( coordAdj(result.coord, -1, 1) ) + img.sampleNearest( coordAdj(result.coord, 1, 1) )) * 0.5;
} else {
- result.data[0] = (img.sampleNearest( result.coord - 1 ) + img.sampleNearest( result.coord - 1 )) * 0.5;
+ result.data[0] = (img.sampleNearest( result.coord - 1 ) + img.sampleNearest( result.coord + 1 )) * 0.5;
result.data[1] = (img.sampleNearest( coordAdj(result.coord, -1, 0) ) + img.sampleNearest( coordAdj(result.coord, 1, 0) )) * 0.5;
result.data[2] = img.sampleNearest( result.coord );
}
Modified: trunk/OpenGTL/OpenShiva/tests/raw/LinearDemosaicing.shiva.png
===================================================================
(Binary files differ)