Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assign measure to label macro recording #26

Open
tischi opened this issue Oct 21, 2018 · 5 comments
Open

Assign measure to label macro recording #26

tischi opened this issue Oct 21, 2018 · 5 comments
Assignees

Comments

@tischi
Copy link

tischi commented Oct 21, 2018

The macro recording for Assign Measure to Label does not record the user selection, but only
run("Assign Measure to Label");

@dlegland dlegland self-assigned this Oct 22, 2018
@tischi
Copy link
Author

tischi commented Apr 8, 2022

@dlegland Could this be fixed soon-ish? We need this for teaching material for a course in a couple of weeks.

@dlegland
Copy link
Contributor

Hi @tischi ,
quite busy at the current time, I will try to have a look but can not promise too much...

@dlegland
Copy link
Contributor

Hi @tischi ,
I made a beta release that seems to work on some common images;
https://github.com/ijpb/MorphoLibJ/releases/tag/v1.5.1.beta01

can you check if it works for you?

@tischi
Copy link
Author

tischi commented Apr 25, 2022

It seems to work, but the recording is a bit non-standard (is this intended)?

run("Particles");
close();
run("Blobs (25K)");
setAutoThreshold("Default dark");
//run("Threshold...");
//setThreshold(107, 255);
setOption("BlackBackground", false);
run("Convert to Mask");
run("Close");
run("Connected Components Labeling", "connectivity=4 type=[16 bits]");
run("Analyze Regions", "area perimeter circularity euler_number bounding_box centroid equivalent_ellipse ellipse_elong. convexity max._feret oriented_box oriented_box_elong. geodesic tortuosity max._inscribed_disc average_thickness geodesic_elong.");

call("inra.ijpb.plugins.LabelToValuePlugin.process", "Table=blobs-lbl-Morphometry", "Column=Area", "Min=7.0", "Max=948.0");
run("Assign Measure to Label");

@dlegland
Copy link
Contributor

dlegland commented May 9, 2022

Hi,

good to know that it works!

For the recording format, I used the same approach @iarganda developed for the Morphological Segmentation plugin.
It seems that for complex plugins, the auto-recording of parameters from GenericDialog class does not work anymore... then it is necessary to use alternative methods. The magical of recording is still not totally clear for me!

best,
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants