when compaer between image how can doing circle in the place where is different

hi ...i doing hammig dicetance to comper between images...i want when enter images it will find similary images and then Put circuits on different locations in the entering image how can do this?? plz help me???

3 Comments

What do you mean by "circuit"? And "put"? And where do you want to put these "circuits" - what's the criteria for specifying the "location"?
By the way, browsers have spell checkers built in (at least Firefox does ), so you might take advantage of that.
And psnr() is a function built in to the Image Processing Toolbox.
thanks for your answer.. that mean if we comper between two images will put circle around the diferernt lik this immages:
<<
>>
privouse images differnt this images by mathworks word...can we done this in matlab???

Sign in to comment.

 Accepted Answer

Yes. Just extract each color channel, subtract them and call regionprops to get the bounding box. The attached demo, test.m3, will produce this figure:

5 Comments

Yes. Make the adaptation something like this
[rows, columns, numberOfColorChannels] = size(rgbImage1);
if numberOfColorChannels == 1
% Grayscale
% Find non-matching pixels
binaryImage = subtraction~=0;
else
% RGB
% Find non-matching pixels
binaryImage = max(subtraction~=0, [], 3);
end
thank you very much image analyst...this code is very good... but when apply this code to detetion this difference as in picture it can not detection the differernce...how can do this??plz help me
It would have been nice if you'd given this image first so I didn't waste my time on something you did not need at all. Like I said before in your other posts, I don't know how to analyze the underside of vehicles. Asking me a much, much simpler question will not suddenly make me be able to analyze these kinds of images, it only wastes our time.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!