mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-28 00:24:18 +01:00
Add SSIM report to command line tools...
This commit is contained in:
parent
855683983c
commit
86bb0f6d0e
@ -260,6 +260,15 @@ int main(int argc, char **argv) {
|
||||
fprintf(stderr, "Error computing PSNR\n");
|
||||
}
|
||||
|
||||
double MSSIM;
|
||||
double SSIM = img.ComputeSSIM(ci, &MSSIM);
|
||||
if(SSIM > 0.0) {
|
||||
fprintf(stdout, "SSIM: %.9f\n", SSIM);
|
||||
fprintf(stdout, "MSSIM: %.9f\n", MSSIM);
|
||||
} else {
|
||||
fprintf(stderr, "Error computing MSSIM\n");
|
||||
}
|
||||
|
||||
if(format == eCompressionFormat_BPTC) {
|
||||
strcat(basename, "-bc7.png");
|
||||
} else if(format == eCompressionFormat_PVRTC) {
|
||||
|
@ -264,6 +264,15 @@ int _tmain(int argc, _TCHAR* argv[])
|
||||
fprintf(stderr, "Error computing PSNR\n");
|
||||
}
|
||||
|
||||
double MSSIM;
|
||||
double SSIM = img.ComputeSSIM(ci, &MSSIM);
|
||||
if(SSIM > 0.0) {
|
||||
fprintf(stdout, "SSIM: %.9f\n", SSIM);
|
||||
fprintf(stdout, "MSSIM: %.9f\n", MSSIM);
|
||||
} else {
|
||||
fprintf(stderr, "Error computing MSSIM\n");
|
||||
}
|
||||
|
||||
if(format == eCompressionFormat_BPTC) {
|
||||
strcat_s(basename, "-bc7.png");
|
||||
} else if(format == eCompressionFormat_PVRTC) {
|
||||
|
Loading…
Reference in New Issue
Block a user