A non-transitory computer readable program product, comprising program code instructions for performing, when said non-transitory software program is executed by a computer, a method for transferring a style of a reference visual object (E) to an input visual object (I), wherein the method comprises finding a correspondence map ϕ assigning to at least one paint pixel x in the input visual object a corresponding pixel ϕ(x) in the reference visual object, said finding of a correspondence map ϕ comprising:
- obtaining a reduced set of K candidate labels ̂L by using an inference model of Markov Random fields (MRF) type, wherein said MRF inference model is solved by approximating a Maximum a Posteriori using a loopy belief propagation type method, delivering the approximate marginal probabilities for at least one variable of the MRF model.