c new cannot adapt to changes in the local signal r g b statistics if n is too small the accuracy of estimating cor eq 13 is significantly degraded and the method is less effective thus a compromise is generally required for the block size n owing to the statistical nature of the values used for performing the color conversion better conversion results are obtained if n is neither too small wherein not enough pixel values are considered for estimating signal statistics nor too large wherein the different signal statistics of various image regions are not properly accounted for an 8 u00d7 8 square block of sixty four pixels provides a good compromise a step 204 loads the raw pixel values of the red r raw green g raw and blue b raw channels for each pixel in the first 8 u00d7 8 block 104 e g j 1 as indicated in table i a step 206 calculates a correlation matrix corin accordance with eq 13 for the position j of the current 8 u00d7 8 block 104 the cor for j 1 is indicated in table i a step 208 calculates a correlation matrix cor nn in accordance with eq 14 for a position j of the current 8 u00d7 8 block 104 the cor nn for j 1 is indicated in table i a step 210 calculates new pixel values for each pixel position i in accordance with eq 15 where i varies from 1 to n for a current 8 u00d7 8 block 104 table i indicates newly calculated pixel values for the red r new green g raw and blue b raw channels for.