I want to compare a bunch of depth images coming from Kinect and eliminate the similar ones. Those images present posture of a single user sitting on the chair (depicted in).
My idea is to create a function which will return the difference in range [0,1] between two postures. This means, I want to compare only a posture for given two images (a grey region). For example, if I pass images to my function, the result will be 0 (because postures are the same, but not at the same position on the picture).
Hence, I need to modify the following code (and find something to replace "correlation"):
a = imread('image_user_depth_000041.jpg'); %first img b = imread('image_user_depth_000042.jpg'); %second img a = RGB2IND(a,16); b = RGB2IND(b,16); c = corr2(a,b); %finding the correlation if c==1 disp('The images are same') % display else disp('the images are not same') end;
Do you have any suggestions? My regards and thanks!