locked
imageprocessing RRS feed

  • Question

  • User-1481032724 posted

    hi

    i have question :

    how can i create website to compared  2 image and get result is same or not for example:

    i have 2 image to "tome" i compared it and return result it's "tome" or not "tome"

    CAN I DO THAT IN ASP.NET

    Tuesday, April 19, 2011 1:57 AM

Answers

  • User1508394307 posted

    The first method from the given link compares images by going through each pixel. All pixels - 100%, failed pixels - X%. You just need to add a counter of how many failed pixels were found.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 19, 2011 7:09 AM

All replies

  • User1508394307 posted

    You can look at 2 examples at this post

    http://blogs.msdn.com/b/domgreen/archive/2009/09/06/comparing-two-images-in-c.aspx

    It required Bitmap object as an input paramater, so you can use

    FileStream stream = new FileStream("your_filename_here"), FileMode.Open, FileAccess.Read);
    byte[] imageBytes = new byte[stream.Length];
    stream.Read(imageBytes, 0, System.Convert.ToInt32(stream.Length));
    Bitmap source = new Bitmap(stream);
    stream.Close();
    to get it from a file.

    Tuesday, April 19, 2011 3:55 AM
  • User-1481032724 posted

    how can i get value in percent between this 2 image in another word  first 2 image in your example are same but next 2 image

    not same but have it's same in 70%

    can u do that

    Tuesday, April 19, 2011 4:54 AM
  • User1508394307 posted

    The first method from the given link compares images by going through each pixel. All pixels - 100%, failed pixels - X%. You just need to add a counter of how many failed pixels were found.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 19, 2011 7:09 AM