function [normed_data] = normalization_all(data)
% Calculating mean and standard deviation on whole image, then
% normalization, to keep consistent

mean_val=mean(data,1);
sigma_val=std(data,0,1);
    
normed_data=bsxfun(@minus,data,mean_val);
normed_data=bsxfun(@rdivide,normed_data,sigma_val);
zhangqianqianQQ
github-repos/MATLAB/zhangqianqianQQ-MachineVisionAlgorithm/MachineVisionAlgorithm-683338f6c3b1aab9fa2b80026915fe936aebf0ee/分类算法/DEEP-TENSOR-FACTORIZATION-FOR-HYPERSPECTRAL-IMAGE-CLASSIFICATION-master/code/common tool/normalization_all.m
MachineVisionAlgorithm
github-repos/MATLAB/zhangqianqianQQ-MachineVisionAlgorithm
683338f6c3b1aab9fa2b80026915fe936aebf0ee