shat1.m
来自「实现图象,可以直接运行,里面有示例图象,十分便捷的实现图象压缩」· 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 + -
显示快捷键?