Calculate the conrast by the difference between the highest and lowest intensity value
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
dila suay
am 18 Mär. 2023
Beantwortet: Matt J
am 18 Mär. 2023
I would like to calculate the image Contrast which I defined as the difference between the highest and lowest intensity value of the image. However I want to ignore a certain percentage of pixels to account for outliers (otherwise a single white and black pixel would lead to "full contrast")
How can I ignore any values outside mean+-std andt hen I will calculate the max(img)-min(img) ?
Thank you so much
0 Kommentare
Akzeptierte Antwort
Matt J
am 18 Mär. 2023
You could use medfilt2 or medfilt3 to get rid of the outliers. You could then use discretize to bin the data into bins of width 2*std for the purposes of computing contrast.
0 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!