First off, thank you for contributing this op. I have been playing around with using ridge detection as a substitute for iterative thinning and was hoping to use the op. Running it from a Python script is giving me issues though. I am trying to call it as follows:
#@ Img img #@ Double(label="Maximum threshold:", value=5) rd_max #@ Double(label="Minimum threshold:", value=75) rd_min #@ Double(label="Line width:", value=1) rd_width #@ Integer(label="Max length:", value=3) rd_length #@ OpService ops # Detect the ridges as a polyline set output_lines = ops.run("segment.detectRidges", img, rd_width, rd_min, rd_max, rd_length)
This throws the following traceback which is attached as a text file. As for information on my particular installation, I am running Ubuntu 18.04 and installed a fresh copy of Fiji before running this (ImageJ 2.0.0-rc-68/1.52h). Any ideas as to what I am doing wrong or where this issue is stemming from?