Take the 2-minute tour ×
Signal Processing Stack Exchange is a question and answer site for practitioners of the art and science of signal, image and video processing. It's 100% free, no registration required.

Is there any better measurement of error between two images than just taking pixel value differences?

The problem I am tackling is stitching images containing "sensitive" objects, such as moving people. Here are two images I would like to blend:

enter image description here

enter image description here

I compute error map using inter-pixel differences:

enter image description here

The image is then considered a graph where pixels are nodes and edges are connecting neighboring pixels. Edge weights are differences between pixels taken from the error map.

Any Max-Flow/Min-Cut algorithm will find an optimal seam which goes through minimum error path (minimum cut - highlighted in red):

enter image description here

As you can see, the seam have successfully avoided girl's hand, but still goes through the guy's face.

The problem is in the error map which assigns too low error for his face as he just moved his head and the pixel differences of his skin are smaller than ripples on water and other less important features.

I heard about saliency map, but not sure if it is the right approach.

share|improve this question
    
What result do you want to get in the blended image? Should there be two guys, or no guy, or maybe one? –  Andrey Dec 16 '12 at 14:33
    
The ideal result would be having higher error in the face area and hence the seam would go through the right part of the image or between the to people. I don't know about any error measurement that would have inbuilt face detection or "symmetry detection" and I am wondering if there is one. –  Libor Dec 16 '12 at 18:25
    
I think an optical flow based method would work better here. Than a DSA based method. –  Naresh Dec 18 '12 at 5:58
    
@Naresh Thanks. I was thinking just about this recently. –  Libor Dec 18 '12 at 16:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.