how to compare set of images in java using pixel based image comparision metric based on mean squared error?

后端 未结 3 844
伪装坚强ぢ
伪装坚强ぢ 2020-12-10 00:07

In my project i have a set of images. I need to compare them. Each pixel from one image is compared to the pixel at the same location in all other images in the dataset. Aft

3条回答
  •  生来不讨喜
    2020-12-10 01:02

      File file1 = new File(args[0]);
      File file2 = new File(args[1]);
    
      boolean compareResult = FileUtils.contentEquals(file1, file2);
      System.out.println("Are the files are same? " + compareResult);
    

    Apache Commons IO library to perform this comparison (download commons-io-2.4.jar)

提交回复
热议问题