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

Image names ending with .tif #48

Closed
tischi opened this issue Feb 15, 2021 · 8 comments
Closed

Image names ending with .tif #48

tischi opened this issue Feb 15, 2021 · 8 comments

Comments

@tischi
Copy link

tischi commented Feb 15, 2021

@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
Copy link
Contributor

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
Copy link
Author

tischi commented Feb 15, 2021

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
Copy link
Contributor

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
Copy link
Author

tischi commented Feb 15, 2021

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
Copy link
Contributor

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
Copy link
Contributor

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

@dlegland
Copy link
Contributor

dlegland commented Feb 15, 2021

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
Copy link
Author

tischi commented Feb 15, 2021

Thanks! I trust you :)

@tischi tischi closed this as completed Feb 15, 2021
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