Color Demosaicing with Contour Stencils