goyal420
we can only compare size of image using this scheme
No goyal you didn't notice that i didn't compare the image till the end.I will only matched the portion of image.When we got an ascii "3" it will closed the loop.
Ok lets take it in simple way.Check this code.....
import java.io.*;
class cha
{
public static void main(String args[])
{
byte b[]=new byte[6000];
try
{
FileInputStream f=new FileInputStream("kk.jpg");
f.read(b);
FileOutputStream fo=new FileOutputStream("mon.jpg");
fo.write(b);
}
catch(Exception e)
{
System.out.println("Exception caught ");
}
}
}
It will cut your portion of image and then Apply my image comparison program again it will show the image will be matched.Now do one thing put "32" (condition to close the loop).
Now you can able to compare the image till it didn't find the space in his bit combination.
I didn't have any project on this topic.But i think if you do an event to select the portion of image(you may take rectangle to select the portion of image you want to match) and matched with the original one. It works.
I think now you clear that it will compare the image not size.
i think you are wrong.
Ya may be i am wrong It will just my idea to do comparison.
As you know in our computer thing differ only in his bit combination then why not compare the things on his bit combination.
What wrong in this idea goyal....?
in order to obtain more precise comparasion we need to use some algorithm
You can refer the thread named "laplacian image processing" to know about these algorithms
Frankly speaking i didn't have any read about these topics.
But i must read about this after 8th jan(My university last exam held on 8th).
After getting time i must read about these topics and try to do this project.