MATLAB: Calculate correlation between the blocks correlation between the blocks i've divided the image into 16×16 blocks i.e total of 256 blocks. now i want to calculate the correlation between the blocks… can anybody help me… Best Answer Using File Exchange: MAT2TILES Blocks=mat2tiles(grayImage,[16,16]); data=cellfun(@(x)x(:)-mean(x(:)), Blocks, 'uni',0 );data=[data{:}]; Correlations = data.'*data;Here, Correlations(i,j) is the correlation (my definition) of the i-th and j-th block. I'm not sure if this suits your definition (see my comments above). Related SolutionsMATLAB: I’ve divided the image into non-overlapping blocks i.e 16 x 16. i’want to convert these blocks to array using mat2cell… can u tell me hoe to do so mat2cell(grayImage, [repmat(wholeBlockRows, 1, 15), rows-15*wholeBlockRows], [repmat(wholeBlockCols, 1, 15), cols-15*wholeBlockCols], numberOfColorBands) MATLAB: Calculation of GLCM Mean hi Jassy ,there is an answer ( to check ...) in previous question, i repost it here anyway for further discussion/correction with other Contributers : I=imread('liftingbody.png'); G=graycomatrix(I); [m n]=size(G); GLCMl=0 % left hand side mean GLCMr=0; % right hand side mean for x=1:m for y=1:n GLCMl=GLCMl+x*G(x,y); GLCMr=GLCMr+y*G(x,y); endendThe difference between the two is 111. Related QuestionHow to sort CORRELATION property of graycopropsI have converted image into 16*16 block. How can i convert these block into videoI’ve divided the image into non-overlapping blocks and i want to calculate the mean of every block…How to divide an image into non-overlapping blocksI’ve divide the image into non-overlapping blocks. and after that i’ve calculated the GLCM MEAN… i want to color only those blocks whose GLCM MEAN are the sameHow to divide image to overlapping blocks
Best Answer