1. A method for demosaicing an image, said method comprising: wherein said image comprises a first plurality of pixel locations where at each pixel location, in said first plurality of pixel locations, a first-color-component value and a second-color-component value are known; wherein said image comprises a second plurality of pixel locations where at each pixel location, in said second plurality of pixel locations, a third-color-component value is known; wherein no pixel location in said first plurality of pixel locations is in said second plurality of pixel locations; interpolating, in a first direction, third-color-component values at said first plurality of pixel locations, thereby producing first-direction-interpolated third-color-component values, wherein said interpolating in said first direction comprises a weighted average of a first plurality of third-color-component values and one of a first plurality of first-color-component values and a first plurality of second-color-component values, wherein said one of a first plurality of first-color-component values and a first plurality of second-color-component values is selected based on a first correlation between said first color component and said third color component and a second correlation between said second color component and said third color component; interpolating, in a second direction, third-color-component values at said first plurality of pixel locations, thereby producing second-direction-interpolated third-color-component values; interpolating first-color-component values at said second plurality of pixel locations using said first-direction-interpolated third-color-component values when a first criterion comprising a first gradient-strength measure associated with said first direction and a second gradient-strength measure associated with said second direction is met; and interpolating first-color-component values at said second plurality of pixel locations using said second-direction-interpolated third-color-component values when a second criterion comprising said first gradient-strength measure associated with said first direction and said second gradient-strength measure associated with said second direction is met.