How to compute Correlation of red- and green-channel pixel values of skin lesion area
조회 수: 2 (최근 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!