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

后端 未结 3 835
伪装坚强ぢ
伪装坚强ぢ 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 00:59

    You can do it using Catalano Framework. There's several metrics to compare image, including mean square error.

    Example:

    FastBitmap original = new FastBitmap(bufferedImage1);
    FastBitmap reconstructed = new FastBitmap(bufferedImage2);
    
    ObjectiveFidelity o = new ObjectiveFidelity(original, reconstructed);
    
    // Error total
    int error = o.getTotalError();
    
    //Mean Square Error
    double mse = o.getMSE();
    
    //Signal Noise Ratio
    double snr = o.getSNR();
    
    //Peak Signal Noise Ratio
    double psnr = o.getPSNR();
    

    All these metrics are based in the book: Computer Imaging: Digital Image Analysis and Processing - Scott E Umbaugh.

    Next version (1.3) will contains Derivative SNR.

提交回复
热议问题