shat1.m

来自「本程序的目的是通过变化DCT系数以及寻找可以应用的DCT系数的最小值来进行可扩展」· M 代码 · 共 18 行

M
18
字号
function [originalSI,decodedSI,originalTI,decodedTI] = shat1(Original,Decoded,previousOriginal,previousDecoded)
% %%%spatial information
% originalSI=std(std(double(edge(Original,'sobel'))));
% decodedSI=std(std(double(edge(Decoded,'sobel'))));
% 
% %%%temporal information
% originalTI=std(std(Original-previousOriginal));
% decodedTI=std(std(Decoded-previousDecoded));

%%%spatial information
originalSI=std(std(double(edge(Original,'sobel'))));
decodedSI=std(std(double(edge(Decoded,'sobel'))));

%%%temporal information
originalTI=std(std(Original-previousOriginal));
decodedTI=std(std(Decoded-previousDecoded));

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?