A computer-implemented method of producing a segmented image of a scene comprises providing a plurality of images of the scene, each image corresponding to a respective acquisition of a physical signal, the plurality of images including at least two images corresponding to different physical signals, and generating the segmented image based on the plurality of images, by determining a distribution of labels that minimizes an energy defined on a Markov Random Field (MRF). This improves the field of computer vision.