Introduction - If you have any usage issues, please Google them yourself
In an image edge is more important to interpolate the missing pixel values.
In similarity algorithm edge is detected using the unified high frequency map.
Based on this the missing green pixels are interpolated by taking the average of surrounding values. Then the missing red and blue values are interpolated similarly.