필터 지우기
필터 지우기

Matlab image processing thresholding and implementing an equation in matlab

조회 수: 1 (최근 30일)
Using equation P=(8/(i2-i1))*∑grad(i) to find a threshold where i1=0.1% i2=10% of total length of pixel indices. How do I implement this equ in matlab and what does i1,i2 mean and how can i find their value? How can i find the divergence of an image?

채택된 답변

Image Analyst
Image Analyst 2017년 11월 4일
Compute the cdf
[counts, bins] = histcounts(data);
theCDF = cumsum(counts);
theCDF = theCDF / theCDF(end);
i1 = find(theCDF > 0.001, 1, 'first');
i2 = find(theCDF > 0.1, 1, 'first');
  댓글 수: 2
Nasser Jarrar
Nasser Jarrar 2017년 11월 4일
I'm supposed to upload an image and process the function "histcounts" won't work with uint8. To be more clear I've uploaded the paper and the alogrithm i want to implement.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by