Matlab image processing thresholding and implementing an equation in matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nasser Jarrar
am 3 Nov. 2017
Kommentiert: Nasser Jarrar
am 4 Nov. 2017
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?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 4 Nov. 2017
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 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!