Code covered by the BSD License  

Highlights from
GUI for Multivariate Image Analysis of Multispectral Images

image thumbnail
from GUI for Multivariate Image Analysis of Multispectral Images by Kateryna Artyushkova
A GUI for MIA of multispectral image data sets (PCA, Simplisma, MCR, classification).

array_subset=array_downsizing(array, N);
function array_subset=array_downsizing(array, N);
% function array_subset=array_downsizing(array, N);
% array - array of images to be downsized 
% N - number of images to be combined using mean averaging
%
% array_subset - new array

[m,n,p]=size(array);
k=fix(p/N);
M=N-1;

for i=1:k
array_subset(:,:,i)=mean(array(:,:,(N*i-M):N*i),3);
end

Contact us at files@mathworks.com