mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-18 12:40:14 +08:00
Correcting the definition of Ratio of Principal Curvatures
This commit is contained in:
@@ -69,7 +69,7 @@ def _suppress_line(response, sigma, rpc_threshold):
|
||||
detA = Axx * Ayy - Axy**2
|
||||
traceA = Axx + Ayy
|
||||
# ratio of principal curvatures
|
||||
rpc = traceA / (detA + 0.001)
|
||||
rpc = traceA**2 / (detA + 0.001)
|
||||
response[rpc > rpc_threshold] = 0
|
||||
return response
|
||||
|
||||
|
||||
Reference in New Issue
Block a user