sul-cidr / histonets

Histonets is an application to convert images of scanned maps into digital networks
https://histonets.stanford.edu
Other
20 stars 0 forks source link

Regular error in UI from ridge/skeletonize pipeline #235

Open csbailey5t opened 7 years ago

csbailey5t commented 7 years ago

In the post-process stage of the UI, which runs ridges and skeletonize, we regularly get the following error, depending on parameter values:

ValueError: threshold_li is expected to work with images having more than one value. The input image seems to have just one value 0.

We need to better handle this in both the CLI and UI.

csbailey5t commented 7 years ago

Here is an example map image that can be used to test particular params. An example of params that throw the above error is: '[{"action":"ridges","options":{"width":6,"threshold":10,"dilation":3}},{"action":"skeletonize","options":{"method":"combined","dilation":13,"binarization-method":"li"}}]'

small_map_4ff395ae19d273f19f90fa664ce2ddae_1d150a_5e6162_6c1a03_bc1400_tmp