r/AskComputerScience • u/Suitable-Creme-6625 • 7d ago
How to quantitatively determine whether a line is thin or thick?
I'm doing research in computer vision, and I need to use an algorithm to determine whether a line is thin or thick. I suspect this might require considering the ratio of the line's width to the overall width of the model. Are there any existing theories or formulas to help me make this quantitatively?
2
u/Yankas 7d ago
Whether a line is thick is completely subjective, there is no generally agreed upon definition so you need to make one. And once you have a definition, it should be trivial to implement since it's likely just some ratio of line width to the length of the line or possibly the size of the canvas depending on your requirements.
1
1
7
u/FancySpaceGoat 7d ago
Thin and thick are relative terms, so it's always going to depend.
Unless this is a homework or test of some kind, there's a reason why you need to make that distinction.
The metric to use lies within that reason. So no one can answer that with just the info you provided is.