Skip to main content
This question is related to algorithm. So i tagged Algorithm. Thanks
Link
Source Link
Harshit
  • 184
  • 9

compare multiple images in ios in objective-C

i am comparing images with each other here is the code for it.

for (int i=0; i<arrImageData.count; i++) { for (int j=i+1; j<arrImageData.count; j++) { if ([arrImageData[i]isEqualToData:arrImageData[j]]) { [arrImages addObject:arrImage[i]]; } } } 

now problem is when number of images increase it takes too much time to calculate.is there any better solution for it?