PSNR code in java not working plzz help
It is psnr code that is not working ..can someone help plz
*********************************************************************
*********************************************************************
*/ import java.io.*; public class Psnr { public static double log10(double x) { return Math.log(x)/Math.log(10); } public static void main (String[] args) { int nrows, ncols; int img1[][], img2[][]; double peak, signal, noise, mse; if (args.length != 4) { System.out.println("Usage: Psnr"); return; } nrows = Integer.parseInt(args[0]); ncols = Integer.parseInt(args[1]); img1 = new int[nrows][ncols]; img2 = new int[nrows][ncols]; ArrayIO.readByteArray(args[2], img1, nrows, ncols); ArrayIO.readByteArray(args[3], img2, nrows, ncols); signal = noise = peak = 0; for (int i=0; i
Replies
-
Anoop KumarDid you copied this code from somewhere??
#-Link-Snipped-#
Clearly ArrayIO is not from standard Java library. You need to find out which library to use. -
zionyeah ..copied it ..
-
VimleshMishrazion as anoop told ArrayIO is not from standard java library which giving error while compilation try below link #-Link-Snipped-#
You are reading an archived discussion.
Related Posts
LG Electronics has launched its much-talked about smartphone - LG G2 in India with 4G at a price of Rs. 49,000 for 32 GB variant and Rs. 46,000 for 16...
Let us understand the best setting for the group key rotation interval in your router. What setting makes the router perform optimally without disconnection.
Sony India has launched the first DTH Theatre in India with Sony HT-IV300 home entertainment system. Providing the viewers with great sound quality, the Sony DTH Theatre system features an...
Anyone needs IS Codes just put a test
Stop living in a fear that the NSA, other government agencies, ISPs and hackers will steal your important data & funny-cat videos. MIT engineer Raluca Popa has built a new...