ijpb / MorphoLibJ

Collection of mathematical morphology methods and plugins for ImageJ
http://imagej.net/MorphoLibJ
GNU Lesser General Public License v3.0
98 stars 49 forks source link

Image names ending with .tif #48

Closed tischi closed 3 years ago

tischi commented 3 years ago

@dlegland I have an issue macro recording the analysis of images whose name ends with .tif Could it be that you are somehow removing the ending when presenting the choices for which images to select?

dlegland commented 3 years ago

Hi, yes maybe. The default behaviour in most MLJ plugins is to use the "short name" of the images, and to add a suffix like "-crop", "-filter"...

maybe a rename command in the beginning of the macro could solve the pbm?

tischi commented 3 years ago

maybe a rename command in the beginning of the macro could solve the pbm?

Yes, it does. Not sure whether this is good though. I think beginners would have zero chance of figuring this out.

dlegland commented 3 years ago

Hmm, not clear to me... When a new image is created, a new name is generated. So the problem is to get image name from the input image name and assuming the processing within plugin, right? The processing will always being plugin-dependent IMHO...

tischi commented 3 years ago

I am fetching the name of the current image, using getTitle():

input = getTitle();
run("Intensity Measurements 2D/3D", "input=["+input+"] labels=mask mean numberofvoxels");

But if input.contains(".tif") it crashes.

image
dlegland commented 3 years ago

OK, so it seems this is a bug.... I try to have a look. I also cc @iarganda , I think he wrote the plugin originally

dlegland commented 3 years ago

well, I think I found! just need to recompile (i.e., fighting with maven), to get a new version...

dlegland commented 3 years ago

You can try new snapshot version: https://github.com/ijpb/MorphoLibJ/releases/tag/v1.4.3-test

I tried with a 2D tiff image, and got not problem...

tischi commented 3 years ago

Thanks! I trust you :)