|
|
|
|
|
by jamessb
3997 days ago
|
|
This is very nice. I particularly like the automatic mode. However, the deafult 'distance' threshold of 120 seems to be too large: selecting the yellow foreground color picks points on both the yellow and red lines; selecting the green foreground color picks points on both the green curve and the axes. A solution for the test image is to just reduce the threshold to 50. The best threshold may depend on both the target color and the specific image being processed, but could potentially be automatically chosen: imagine constructing a greyscale image by replacing each pixel's color with its distance from the target color, and then picking a threshold for converting this grayscale image to a binary image (e.g. using Otsu's method [0]). The export to plot.ly feature is also great - you can really quickly extract data from one graph and re-plot it in a different/clearer way. [0]: https://en.wikipedia.org/wiki/Otsu%27s_method |
|