Monday, 26 November 2012

comparison between two button images


How to Compare two button images ?

am doing like this but it's not executing..



if ([button1.imageView.image isEqual:@"1.png"] && [button9.imageView.image isEqual:@"1.png"])
            {
               
                nslog(@"Image mathcing");
            }
else
{
      NSLog(@"not matching..");
}

1 comment:

  1. Hi friends, good Morning Every one
    If you want to compare two images firdtofall you have to convert two images in to Data formate, ofter we have to check the Size (length) of two images, if the length is equal to two images, later you have to choose the some randam places of the image data values, it will be compare to same places of the images data places values. If the two places values are same your images are 90% similar.


    ReplyDelete