Effacer les filtres
Effacer les filtres

How do I get the value of C and ws in adaptive thresholding?

2 vues (au cours des 30 derniers jours)
ThankGod Alexander
ThankGod Alexander le 8 Mai 2022
Modifié(e) : DGM le 8 Mai 2022
Hello everyone, I need help on how to get the value of C and ws in adaptive thresholidng by Guanglei Xiong

Réponses (1)

DGM
DGM le 8 Mai 2022
Modifié(e) : DGM le 8 Mai 2022
You have to select them based on the image content and your own intent. Refer to the documentation:
ws is the filter window size (pixels). It's just a scalar. The window size is square.
C is an offset parameter used to avoid thresholding noise in uniform regions where there is no object content within the filter window. It's a scalar in the range [0 1]. It's generally going to be a small value. Note that the examples in the documentation seem to describe numbers on a uint8 [0 255] scale instead of [0 1], as the given implementation uses.

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by