How to compute Correlation of red- and green-channel pixel values of skin lesion area
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Image Analyst
2017-3-1
Did you try corr()?
coeff = corr(redChannel(:), greenChannel(:));
4 个评论
Image Analyst
2017-3-1
Use histogram() or histcounts() to get "Prob" in the first formula.
For the second formula, I have no idea whatsoever what "details" is.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!