Adaptive demosaicing with the principal vector method | Synapse