About Position Independent of an Image to compare it
-
hello everyone, i want to compare 2 images with position independent in both images, but i cant find anything for it. i was firstly using 2 images in same position and comparing using Getpixel function. So, for position independent what is to be used. Your Sincerely Kaushal Kishore Sharma Kaushal
-
hello everyone, i want to compare 2 images with position independent in both images, but i cant find anything for it. i was firstly using 2 images in same position and comparing using Getpixel function. So, for position independent what is to be used. Your Sincerely Kaushal Kishore Sharma Kaushal
-
hello everyone, i want to compare 2 images with position independent in both images, but i cant find anything for it. i was firstly using 2 images in same position and comparing using Getpixel function. So, for position independent what is to be used. Your Sincerely Kaushal Kishore Sharma Kaushal
Please elaborate. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
kaushal kishore sharma wrote:
So, for position independent
What does that mean? You want to compare random pixels? :confused:
led mike
yes for random pixels
-
yes for random pixels
:confused: How can you compare an image if you compare random pixels? It would be great if you could formulate your query so that it is understandable. This means that you should take a bit of time to think how to formulate your question so that people that are not in front of your computer can understand what you mean. The first step in solving a problem is to formulate it clearly. Sometimes it is already enough to lead you to the solution.
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++ -
Please elaborate. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]lets take an example. i have a image named as file1 in which i have written "CAT" and second image named as file2 in which written as "CAT". now i was firstly using getpixel for both the images at same position for comparing them, so using getpixel in fixed position lead to answer that "images are same" Now i want this same images to be in different places and then want to compare them and get the output "Images are same" So i can i do this work? Kindly help me. Your Sincerely Kaushal Kishore Sharma
-
lets take an example. i have a image named as file1 in which i have written "CAT" and second image named as file2 in which written as "CAT". now i was firstly using getpixel for both the images at same position for comparing them, so using getpixel in fixed position lead to answer that "images are same" Now i want this same images to be in different places and then want to compare them and get the output "Images are same" So i can i do this work? Kindly help me. Your Sincerely Kaushal Kishore Sharma
My suspicion would be that you would have to extract the pixel data for each image, and each line, as if they were strings of binary data (fixed length strings of RGB data), and then pretend to do a file compare (like comparing two text files only you would be doing this with binary fuxed length strings) (this would probably not work if the picture scales were different). You might then be able to find the image of "CAT" in file 1 as a subimage of file 2. Dave.
-
:confused: How can you compare an image if you compare random pixels? It would be great if you could formulate your query so that it is understandable. This means that you should take a bit of time to think how to formulate your question so that people that are not in front of your computer can understand what you mean. The first step in solving a problem is to formulate it clearly. Sometimes it is already enough to lead you to the solution.
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++ -
lets take an example. i have a image named as file1 in which i have written "CAT" and second image named as file2 in which written as "CAT". now i was firstly using getpixel for both the images at same position for comparing them, so using getpixel in fixed position lead to answer that "images are same" Now i want this same images to be in different places and then want to compare them and get the output "Images are same" So i can i do this work? Kindly help me. Your Sincerely Kaushal Kishore Sharma
Let's suppose the first image is at {0, 0} and the second one is at {100, 200} then you may still use some kind of
getpixel
to compare the images, simply offsetting the arguments, i.e. (pseudocode):getpixel(x,y) == getpixel(100 + x, 200 + y)
However I suspect you have no clear idea about what you actually intend to do. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
My suspicion would be that you would have to extract the pixel data for each image, and each line, as if they were strings of binary data (fixed length strings of RGB data), and then pretend to do a file compare (like comparing two text files only you would be doing this with binary fuxed length strings) (this would probably not work if the picture scales were different). You might then be able to find the image of "CAT" in file 1 as a subimage of file 2. Dave.
-
hello everyone, i want to compare 2 images with position independent in both images, but i cant find anything for it. i was firstly using 2 images in same position and comparing using Getpixel function. So, for position independent what is to be used. Your Sincerely Kaushal Kishore Sharma Kaushal
-
:confused: How can you compare an image if you compare random pixels? It would be great if you could formulate your query so that it is understandable. This means that you should take a bit of time to think how to formulate your question so that people that are not in front of your computer can understand what you mean. The first step in solving a problem is to formulate it clearly. Sometimes it is already enough to lead you to the solution.
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++There's no time to think! In fairness, he did miss out the magic "urgentz" word... Iain.