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

Nutil keeps changing assigned colours #327

Open
AutomatedOlfactoryBehaviour opened this issue Feb 25, 2025 · 1 comment
Open

Nutil keeps changing assigned colours #327

AutomatedOlfactoryBehaviour opened this issue Feb 25, 2025 · 1 comment
Assignees

Comments

@AutomatedOlfactoryBehaviour

Hello everyone,

I keep having issues with Nutil changing the colours assigned for quantification (both for the objects to be quantified and the custom maps).
This presents on multiple levels:

  • the colours shown in the main GUI don't match the actual colours assigned (visible only when clicking on the respective colour)
  • the colour used for object quantification changes after the quantification has already started (visible as slow processing speed and notes in the command line defining pixels out of range)

I can reproduce this with Nutil 1.1. as well as 0.8. with parameter files generated from scratch (here it happens sporadically with no real pattern) but every time with any previously generated *.nut parameter file that is loaded.

Is this a known bug because I'm using custom colours? Or maybe an issue with using the waxholm atlas?

The issue isn't just highly annoying but prevents any sort of batch processing making quantification very slow.
I'd appreciate an inputs in this

@sharoncy sharoncy self-assigned this Feb 25, 2025
@sharoncy
Copy link
Member

sharoncy commented Feb 25, 2025

Hi @AutomatedOlfactoryBehaviour. I haven't seen this issue before, but I'd be happy to investigate for you. Please send this info to [email protected], stating it is for Sharon Yates about "Brain Atlases". I'll also need a test dataset, so great if you can attach an example segmentation, corresponding atlas map, your json file from QuickNII or VisuAlign, and your .nut file (press "save as" in Nutil to generate this file).

Here is some additional info which may be useful:

  • You say "the colours shown in the main GUI don't match the actual colours assigned". If you are referring to the "object colour" selected in the GUI, then this is not meant to match the colours assigned in the output images. In the GUI, you specify the colour in the segmentation images that you want to quantify, and then Nutil automatically assigns default colours to the objects in the output images depending on the regions they belong to (https://nutil.readthedocs.io/en/latest/QuantifierReports.html). You can change these colours by using your own regions and assigning colours to them (custom regions).
  • You say "the colour used for object quantification changes after the quantification has already started". Do you save the settings before starting Nutil (e.g. press "save as" before pressing "start")? I'm not sure if this will help, but you could give it a try.

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