Rank: 337 based on 188 downloads (last 30 days) and 3 files submitted
photo

Avinash Uppuluri

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Avinash View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Apr 2010 Published MATLAB Files GLCM_Features4.m: Vectorized version of GLCM_Features1.m [With code changes] GLCM_Features4 - Calculates the texture features from the different GLCMs Author: Avinash Uppuluri glcm, texture 35 0
25 Nov 2008 GLCM texture features Calculates texture features from the input GLCMs Author: Avinash Uppuluri texture features, glcm 133 24
  • 3.5
3.5 | 6 ratings
23 Sep 2008 Confusion matrix / Matching matrix CFMATRIX calculates the confusion matrix for any classification algorithm that generates a list of c Author: Avinash Uppuluri statistics, probability, confusion matrix, algorithm 20 5
Comments and Ratings by Avinash View all
Updated File Comments Rating
23 Jul 2011 GLCM texture features Calculates texture features from the input GLCMs Author: Avinash Uppuluri

Will, Thanks for the update.

29 Mar 2011 GLCM texture features Calculates texture features from the input GLCMs Author: Avinash Uppuluri

Hi bala,

Please try to explain further. From what I understand it looks like you want to know how to generate the E I S H for each image in your database and use the same parameters of the input image to find the closest ( euclidean ) image to it in the database.

You can generate the GLCM for each image using the in built matlab function graycomatrix() and then pass the generated GLCM to the function you downloaded here GLCM_featuresX()

Hope that helps,
Avinash

12 Mar 2011 Confusion matrix / Matching matrix CFMATRIX calculates the confusion matrix for any classification algorithm that generates a list of c Author: Avinash Uppuluri

Hi Atam,
If you can give me a definition of how you want to measure accuracy and precision I can include it in the code.

Thanks.

25 Feb 2011 GLCM texture features Calculates texture features from the input GLCMs Author: Avinash Uppuluri

Kapil,

I would appreciate if you can leave a short comment on how you think this work can be improved so that I can make it more useful for yourself and others.

Thanks,
Avinash

25 Feb 2011 GLCM texture features Calculates texture features from the input GLCMs Author: Avinash Uppuluri

Hi Kavitha,

Can you please provide more information on how you generate your GLCM matrix (if possible also provide the image used) so that I can reproduce the error on my end.

Thanks,
Avinash

Hi
I tried the above code and got an error stating "Function undefined for input of type double".
What type should i convert my GLCM matrix for this function to work ?
Thanks for the help.

Kavitha

Comments and Ratings on Avinash's Files View all
Updated File Comment by Comments Rating
02 Feb 2012 GLCM texture features Calculates texture features from the input GLCMs Author: Avinash Uppuluri giet
12 Dec 2011 GLCM texture features Calculates texture features from the input GLCMs Author: Avinash Uppuluri m, bhargav

Hi all

Can you explain the physical interpretation of the Inverse difference moment , Information measures of correlation , cluster prominence and shade in a image.
I was trying to get the physical meaning of them , but could not find properly.

Thanks

19 Nov 2011 Confusion matrix / Matching matrix CFMATRIX calculates the confusion matrix for any classification algorithm that generates a list of c Author: Avinash Uppuluri Madi

Hi avinash, i think the formula for calculated TN (True Negative) is something wrong... I'm sorry if wrong...

23 Jul 2011 GLCM texture features Calculates texture features from the input GLCMs Author: Avinash Uppuluri Uppuluri, Avinash

Will, Thanks for the update.

22 Jul 2011 GLCM texture features Calculates texture features from the input GLCMs Author: Avinash Uppuluri Will

function [out] = cad_glcm_features(glcm)

% VECTORIZED CODE: FASTER

size_glcm_1 = size(glcm,1);
size_glcm_2 = size(glcm,2);
size_glcm_3 = size(glcm,3);

% checked
out.autoc = zeros(1,size_glcm_3); % Autocorrelation: [2]
out.contr = zeros(1,size_glcm_3); % Contrast: matlab/[1,2]
out.corrm = zeros(1,size_glcm_3); % Correlation: matlab
out.corrp = zeros(1,size_glcm_3); % Correlation: [1,2]
out.cprom = zeros(1,size_glcm_3); % Cluster Prominence: [2]
out.cshad = zeros(1,size_glcm_3); % Cluster Shade: [2]
out.dissi = zeros(1,size_glcm_3); % Dissimilarity: [2]
out.energ = zeros(1,size_glcm_3); % Energy: matlab / [1,2]
out.entro = zeros(1,size_glcm_3); % Entropy: [2]
out.homom = zeros(1,size_glcm_3); % Homogeneity: matlab
out.homop = zeros(1,size_glcm_3); % Homogeneity: [2]
out.maxpr = zeros(1,size_glcm_3); % Maximum probability: [2]
out.sosvh = zeros(1,size_glcm_3); % Sum of sqaures: Variance [1]
out.savgh = zeros(1,size_glcm_3); % Sum average [1]
out.svarh = zeros(1,size_glcm_3); % Sum variance [1]
out.senth = zeros(1,size_glcm_3); % Sum entropy [1]
out.dvarh = zeros(1,size_glcm_3); % Difference variance [4]
out.denth = zeros(1,size_glcm_3); % Difference entropy [1]
out.inf1h = zeros(1,size_glcm_3); % Information measure of correlation1 [1]
out.inf2h = zeros(1,size_glcm_3); % Informaiton measure of correlation2 [1]
out.indnc = zeros(1,size_glcm_3); % Inverse difference normalized (INN) [3]
out.idmnc = zeros(1,size_glcm_3); % Inverse difference moment normalized [3]

% Indices
[i,j] = meshgrid(1:size_glcm_1,1:size_glcm_2);
idx1 = (i+j)-1;
idx2 = abs(i-j)+1;
ii = (1:(2*size_glcm_1-1))';
jj = (0:size_glcm_1-1)';

for k = 1:size_glcm_3 % number glcms
    % Normalize GLCM
    glcm_sum = sum(sum(glcm(:,:,k)));
    Pij = glcm(:,:,k)./glcm_sum; % Normalize each glcm
    glcm_mean = mean(Pij(:)); % compute mean after norm
    %
    p_x = squeeze(sum(Pij,2));
    p_y = squeeze(sum(Pij,1))';
    %
    u_x = sum(sum(i.*Pij));
    u_y = sum(sum(j.*Pij));
    %
    p_xplusy = zeros((2*size_glcm_1 - 1),1); %[1]
    p_xminusy = zeros((size_glcm_1),1); %[1]
    for aux = 1:max(idx1(:))
       p_xplusy(aux) = sum(Pij(idx1==aux));
    end
    for aux = 1:max(idx2(:))
       p_xminusy(aux) = sum(Pij(idx2==aux));
    end
    
    % Contrast
    out.contr(k) = sum(sum((abs(i-j).^2).*Pij));
    % Dissimilarity
    out.dissi(k) = sum(sum(abs(i-j).*Pij));
    % Energy
    out.energ(k) = sum(sum(Pij.^2));
    % Entropy
    out.entro(k) = -sum(sum(Pij.*log(Pij+eps)));
    % Homogeneity Matlab
    out.homom(k) = sum(sum(Pij./(1+abs(i-j))));
    % Homogeneity Paper
    out.homop(k) = sum(sum(Pij./(1+abs(i-j).^2)));
    % Sum of squares: Variance
    out.sosvh(k) = sum(sum(Pij.*((j-glcm_mean).^2)));
    % Inverse difference normalized
    out.indnc(k) = sum(sum(Pij./(1+(abs(i-j)./size_glcm_1))));
    % Inverse difference moment normalized
    out.idmnc(k) = sum(sum(Pij./(1+((i-j)./size_glcm_1).^2)));
    % Maximum probability
    out.maxpr(k) = max(Pij(:));
    % Sum average
    out.savgh(k) = sum((ii+1).*p_xplusy);
    % Sum entropy
    out.senth(k) = -sum(p_xplusy.*log(p_xplusy+eps));
    % Sum variance
    out.svarh(k) = sum((((ii+1) - out.senth(k)).^2).*p_xplusy);
    % Difference entropy
    out.denth(k) = -sum(p_xminusy.*log(p_xminusy+eps));
    % Difference variance
    out.dvarh(k) = sum((jj.^2).*p_xminusy);
    % Computes correlation
    hxy1 = -sum(sum(Pij.*log(p_x*p_y' + eps)));
    hxy2 = -sum(sum((p_x*p_y').*log(p_x*p_y' + eps)));
    hx = -sum(p_x.*log(p_x+eps));
    hy = -sum(p_y.*log(p_y+eps));
    hxy = out.entro(k);
    % Information measure of correlation 1
    out.inf1h(k) = (hxy-hxy1)/(max([hx,hy]));
    % Information measure of correlation 2
    out.inf2h(k) = (1-exp(-2*(hxy2-hxy)))^0.5;
    % Cluster Prominence
    out.cprom(k) = sum(sum(Pij.*((i+j-u_x-u_y).^4)));
    % Cluster Shade
    out.cshad(k) = sum(sum(Pij.*((i+j-u_x-u_y).^3)));
    %
    s_x = sum(sum(Pij.*((i-u_x).^2)))^0.5;
    s_y = sum(sum(Pij.*((j-u_y).^2)))^0.5;
    corp = sum(sum(Pij.*(i.*j)));
    corm = sum(sum(Pij.*(i-u_x).*(j-u_y)));
    % Autocorrelation
    out.autoc(k) = corp;
    % Correlation paper
    out.corrp(k) = (corp-u_x*u_y)/(s_x*s_y);
    % Correlation Matlab
    out.corrm(k) = corm/(s_x*s_y);
end

Top Tags Applied by Avinash
glcm, algorithm, confusion matrix, probability, statistics
Files Tagged by Avinash View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Apr 2010 Published MATLAB Files GLCM_Features4.m: Vectorized version of GLCM_Features1.m [With code changes] GLCM_Features4 - Calculates the texture features from the different GLCMs Author: Avinash Uppuluri glcm, texture 35 0
25 Nov 2008 GLCM texture features Calculates texture features from the input GLCMs Author: Avinash Uppuluri texture features, glcm 133 24
  • 3.5
3.5 | 6 ratings
23 Sep 2008 Confusion matrix / Matching matrix CFMATRIX calculates the confusion matrix for any classification algorithm that generates a list of c Author: Avinash Uppuluri statistics, probability, confusion matrix, algorithm 20 5

Contact us at files@mathworks.com