フィルターのクリア

hii sir i am getting error in 9th line please do help me for this sir

3 ビュー (過去 30 日間)
venmal devi
venmal devi 2016 年 4 月 3 日
編集済み: Image Analyst 2016 年 4 月 3 日
clc;
close all;
clear all;
InputImage=imread('ship1.jpg');
ReconstructedImage=imread('Capture.PNG');
n=size(InputImage);
M=n(1);
N=n(2);
MSE = sum(sum((InputImage-ReconstructedImage).^2))/(M*N);
PSNR = 10*log10(256*256/MSE);
fprintf('\nMSE: %7.2f', MSE);
fprintf('\nPSNR: %9.7f dB', PSNR);

回答 (1 件)

Image Analyst
Image Analyst 2016 年 4 月 3 日
編集済み: Image Analyst 2016 年 4 月 3 日
Simply use the built-in functions for this: immse() and psnr().
Also, are they color images?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by