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

Fix ROI Colour Clash #1993

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Fix ROI Colour Clash #1993

merged 1 commit into from
Dec 12, 2023

Conversation

JackEAllen
Copy link
Collaborator

Issue

Avoids ROI colour clashes if one ROI is added after another. Previously the first two ROI colours were hard to distinguish between each other.

Description

  • Refactor ROI colour generator method name to be more descriptive
  • Moved second ROI colour (12, 123, 220) to another location in array where it does not clash with other ROI colours

Testing

  • manually tested adding ROIs and check they were distinguishable from each other in image view and spectrum line plot.
  • Executed unit tests.

Acceptance Criteria

Check that ROIs added are distinguishable from one another (in most cases, usually 2-3 ROIs are added) in the image view and spectrum line plot when moved around.

Documentation

N/A - Update documentation as part of #1992 which will enable right clicking of an ROI to change the colour of the ROI.

Rename random generator to be more descriptive as colours selected are not random, update tests to reflect method name change, move secon colour in pallet to another location in pallet to avoid colour clash of ROIs when one ROI is added after another
@JackEAllen JackEAllen self-assigned this Dec 7, 2023
@coveralls
Copy link

Coverage Status

coverage: 75.633%. remained the same
when pulling 0cce80d on roi_colour_clash
into 774a4e8 on main.

Copy link
Collaborator

@MikeSullivan7 MikeSullivan7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, ROIs look distinguishable to me in both the image view and the spectrum.
image

Only improvement I can think of is maybe increasing the thickness of the ROI boxes in the imageview as I could imagine some of the lighter colours getting lost in busy images. That is only personal preference though and I'm happy to approve as is.

@JackEAllen JackEAllen marked this pull request as ready for review December 11, 2023 09:49
@JackEAllen JackEAllen added this pull request to the merge queue Dec 12, 2023
Merged via the queue into main with commit c335583 Dec 12, 2023
8 checks passed
@JackEAllen JackEAllen deleted the roi_colour_clash branch December 12, 2023 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants