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

Added scripts to measure the length of rectangle ROIs #16

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

willsides
Copy link

Added two scripts to measure the short or long dimension of a rectangle or rotated rectangle ROI. The other dimension of the rectangle is used to draw extension lines. Also tweaked choose_microscope_calibration.py to make language of the 'global scale' checkbox more accurate.

Checking this box will apply the scale to images opened in the future, not just images currently open. 
Also changed to checked by default.
Two scripts to annotate the length of a rectangle on either the longer or shorter side. The width of the other side is used to draw extension lines.
@demisjohn
Copy link
Owner

demisjohn commented May 19, 2022

Thanks for your contribution @wdsides !

I tried running this and am getting the error:

[ERROR] Traceback (most recent call last):
  File "Analyze/Microscope Measurement Tools/Choose_Microscope_Calibration.py", line 42, in <module>
ImportError: No module named Microscope_Calibrations_user_settings

I downloaded directly from your repo, unzipped and moved into my FIJI folder in:
/Applications/Fiji.app/plugins/Scripts/Analyze/Microscope Measurement Tools/

But it keeps giving this error. Do you know if there is a bug somewhere? Files appeared to be named correctly, I didn't look further into the code yet.

@willsides
Copy link
Author

So sorry I haven't gotten around to responding until now. I did have a reason to revisit this today and made some changes to the readme to explain the new features and update the install instructions.

I think that error is related to your directory structure. The repository is structured to be copied directly into the directory Fiji.app/ which will then add the folder /Fiji.app/plugins/Analyze/Microscope Measurement Tools/ as well as overwrite the file /Fiji.app/macros/StartupMacros.fiji.ijm (this adds the toolbar icons and hotkeys - I'm not aware of a way to do this without overwriting this file).

@demisjohn
Copy link
Owner

demisjohn commented Feb 2, 2023

@willsides i don’t see how copying the Analyze folder can overwrite that startup script file.
the instructions say to manually “merge” the folder structure - perhaps that is too complex an ask?

@demisjohn
Copy link
Owner

Oh are you saying I also need to copy the startup scripts file, not just the Analysis folder?

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

Successfully merging this pull request may close these issues.

2 participants