A method for segmenting an image comprising: receiving an input image to be segmented; and with a processor: for each label in a set of labels, assigning unary potentials to pixels of the input image, the unary potentials being based on information for a first channel in the image; for each of pairs of labels in the set of labels, assigning pairwise potentials for neighboring pixels of the image, the pairwise potentials being based on information for a second channel in the image, different from the first channel; optimizing an objective function over pixels of the input image to identify output labels for pixels of the image from the set of labels, the objective function being an aggregation of the unary potentials and pairwise potentials; and segmenting the input image based on the identified labels; characterized in that the first channel comprises a wavelength range in the visible range of the electromagnetic spectrum and the second channel comprises a wavelength range in the infrared range of the electromagnetic spectrum, the first channel and second channel being complementary such that range of the first channel and the range of the second channel do not overlap. receiving an input image to be segmented; and with a processor: for each label in a set of labels, assigning unary potentials to pixels of the input image, the unary potentials being based on information for a first channel in the image; for each of pairs of labels in the set of labels, assigning pairwise potentials for neighboring pixels of the image, the pairwise potentials being based on information for a second channel in the image, different from the first channel; optimizing an objective function over pixels of the input image to identify output labels for pixels of the image from the set of labels, the objective function being an aggregation of the unary potentials and pairwise potentials; and segmenting the input image based on the identified labels; characterized in that the first channel comprises a wavelength range in the visible range of the electromagnetic spectrum and the second channel comprises a wavelength range in the infrared range of the electromagnetic spectrum, the first channel and second channel being complementary such that range of the first channel and the range of the second channel do not overlap. for each label in a set of labels, assigning unary potentials to pixels of the input image, the unary potentials being based on information for a first channel in the image; for each of pairs of labels in the set of labels, assigning pairwise potentials for neighboring pixels of the image, the pairwise potentials being based on information for a second channel in the image, different from the first channel; optimizing an objective function over pixels of the input image to identify output labels for pixels of the image from the set of labels, the objective function being an aggregation of the unary potentials and pairwise potentials; and segmenting the input image based on the identified labels; characterized in that the first channel comprises a wavelength range in the visible range of the electromagnetic spectrum and the second channel comprises a wavelength range in the infrared range of the electromagnetic spectrum, the first channel and second channel being complementary such that range of the first channel and the range of the second channel do not overlap.