thanks for the fast reply, but i still find some difficulty about the
code.
My problem is the two images are manually loaded, not from the camera.
My example code is like this :
IplImage image = highgui.cvLoadImage("gambar.png", 1);
if (image == null) {
return;
}
IplImage image2 = highgui.cvLoadImage("gambar.png", 2);
if (image2 == null) {
return;
}
CanvasFrame frame = new CanvasFrame("Frame1");
frame.showImage(image);
CanvasFrame frame2 = new CanvasFrame("Frame2");
frame2.showImage(image2);
And i want to show how many percent the difference between the two
images..
Can you give me some cluehow to finish that code?
Thanks.
Satio.
On Jul 8, 9:51 am, Samuel Audet <
samuel.au...@gmail.com> wrote:
> On 2010-07-08 11:40, satio wrote:
>
> > Hi, is there any method to compare two images in JavaCV?
> > and the result show how many percent(%) the images are similiar..
> > can you give me some examples about that?
> > thank you..
>
> You could modify the ObjectFinder to fit your needs.. Here is some code
> that shows how to use it:
http://code.google.com/p/javacv/source/browse/trunk/procamtracker/src...
>
> Samuel