MATLAB: How to compute Correlation of red- and green-channel pixel values of skin lesion area

correlationenergyfeatures extractionimage processingImage Processing Toolboxlesionrgb

I need to compute six correlation coefficients (red-green, green-blue, blue-red, red-grey, green-grey, and blue-grey) for both the whole sub-image and the lesion area respectively,one example shall do it for the 6 as of the same logic shall be applied,as well as calculating the Energy based on color extraction not texture or regionprops one(R,G,B,Gray) but one color space example shall do.. thanks

Best Answer

Did you try corr()?
coeff = corr(redChannel(:), greenChannel(:));