ij-ridgedetection icon indicating copy to clipboard operation
ij-ridgedetection copied to clipboard

Scripting in Python available

Open sebi06 opened this issue 6 years ago • 2 comments

Hi,

I was wondering if there is a way to script this plugin ideally in Python or using the macro language?

Cheers,

Sebi

sebi06 avatar Feb 12 '19 21:02 sebi06

Doesn't the Ridge Detection command get recorded? From its use of GenericDialog[Plus], I would have guessed so. In any case, I think you can take the Lines_ plugin class as an example:

https://github.com/thorstenwagner/ij-ridgedetection/blob/0f3c0ef1a3ab97d6fd0c143469e5668f82f3d205/src/main/java/de/biomedical_imaging/ij/steger/Lines_.java#L858-L864

... and directly call into the LineDetector API:

https://github.com/thorstenwagner/ij-ridgedetection/blob/0f3c0ef1a3ab97d6fd0c143469e5668f82f3d205/src/main/java/de/biomedical_imaging/ij/steger/LineDetector.java#L106-L135

imagejan avatar Apr 04 '19 19:04 imagejan

I have kind of a similar problem, I'm trying to use the plugin in a headless mode, and it seems to work, as I can save the resulting image, but I can't find a way to save the summary or any other of the results in text format. Besides, it's throwing a headless exception every time I run it. Sorry if this is a silly question.

I hope you can help me. Thank you so much. Haydee

hdeluna avatar Apr 22 '19 14:04 hdeluna