Thank you for this usefull functions,
i have just 2 "objections" :
- be carefull of iptcheckinput, it will disapear (maybe replace it by validateattribute, and use inputparser matlab object)
- why dont use the standards or graycomatrix (only one direction as output, no cell array, struct for the stats, offset as a direction vector)
Dear Xunkai Wei
Thank you a lot for your useful source code. It helps me so much in my programs.
I am just confused that whether it has some mistakes in the calculation of SRE and LRE.
%1. Short Run Emphasis (SRE)
SRE = sum(p_r./(c_vector.^2))/N_runs;
% 2. Long Run Emphasis (LRE)
LRE = sum(p_r.*(c_vector.^2))/N_runs;
I think we should use p_g instead of p_r ?
Adding _SECURE_SCL=1 to COMPFLAGS into mexopts.bat file solved theproblem for me with this error.
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xutility(287) : error C2582: 'operator '='
I am using Matalb2012b-64bit, VS2010-Professional, and OpenCV 2.4.5.
Hey Kota, I did have the same problem! It seems to be a Visual Studio 2010 problem! Just install the 2008 version from here http://www.microsoft.com/en-us/download/details.aspx?id=14597 ! There it works fine!