% calculates the mean and SD for certain blocks

function [m,s]=meanSD(i,j, blocksize, inputimage)

matrix=inputimage((i-1)*blocksize+1:i*blocksize, (j-1)*blocksize+1:j*blocksize);

temp=reshape(matrix, 1, blocksize^2);

m=mean(double(temp));

s=std(double(temp));


