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

create visualization graph #1011

Merged
merged 57 commits into from
Jul 23, 2024

Conversation

YukaUU
Copy link
Contributor

@YukaUU YukaUU commented Jul 16, 2024

Add visualization panel to viewer page.

Summary

Click the icon to the left of the toolbar's tutorial to open the side menu on the right side.
Then, you can see a graph visualizing the annotation information
It shows the relationship between human:annotation vs zooming.
all

Motivation

To visualize pathologist annotation information

Testing

The graph and the results with collection:Mark.
Annotation:0
d0
d0_log
Annotation:1
d1
d1_log
Annotation:9
d9
d9_log

Copy link
Member

@birm birm left a comment

Choose a reason for hiding this comment

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

Can we call this new field something a little more reasable, like viewerState?

Maybe you want to save it somewhere inside, so that each drawn object has its own x,y,zoom, even if they're grouped together? I noted some issues when testing this in #1013

@YukaUU
Copy link
Contributor Author

YukaUU commented Jul 18, 2024

Can we call this new field something a little more reasable, like viewerState?

OK!
I change new field name.

Maybe you want to save it somewhere inside, so that each drawn object has its own x,y,zoom, even if they're grouped together? I noted some issues when testing this in #1013

That's right.
I will fix it.

@YukaUU
Copy link
Contributor Author

YukaUU commented Jul 18, 2024

I changed new field name from states to viewerStates.29e4a08

Test

  1. Show x, y and zooming in pop panel
    image

2.log (send data to DB)
change_states_viewerStates

3.log:DB collection:Mark
chabge_states_viewerStates

@YukaUU
Copy link
Contributor Author

YukaUU commented Jul 18, 2024

Maybe you want to save it somewhere inside, so that each drawn object has its own x,y,zoom, even if they're grouped together? I noted some issues when testing this in #1013

Not all annotations saved have (accurate) info saved #1013#1013 (comment)

I fixed it!

Test

  1. Annotation: Multi mode
Annotation: Multi mode
  1. log (send data to DB)
    image

3.log:DB collection:Mark
image

  1. Check pop up panel
    image
    image
    image
    image
    image

@YukaUU
Copy link
Contributor Author

YukaUU commented Jul 18, 2024

Delete viewerStates
Past PR did not support Multi Mode. #966
I fixed it #1011 (comment)
This commit was also deleted.#1011 (comment)

Test

  1. Annotation: Single mode
    image
    log:DB collection:Mark
    image

2.Annotation: Multi mode
image
log:DB collection:Mark
image

Copy link
Member

@birm birm left a comment

Choose a reason for hiding this comment

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

Very close; just one hopefully quick thing I noticed!

viewerStates: {
x: StatesHelper.getCurrentStates(true).x,
y: StatesHelper.getCurrentStates(true).y,
z: StatesHelper.getCurrentStates(true).y
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
z: StatesHelper.getCurrentStates(true).y
z: StatesHelper.getCurrentStates(true).z

I'm pretty sure this is why this is happening:
Screenshot 2024-07-19 at 10 49 08 AM
Screenshot 2024-07-19 at 10 49 02 AM

Copy link
Contributor Author

@YukaUU YukaUU Jul 20, 2024

Choose a reason for hiding this comment

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

I also noticed a mistake in my local and was fixing the same point.
Thank you!!

@YukaUU
Copy link
Contributor Author

YukaUU commented Jul 20, 2024

@birm
Refactored to remove unnecessary code, etc
I resolved all comments and issue.
#1011 (review) , #1013)
Please check it

Test

Visualization Graph
image
log (send data to DB)
image
log:DB collection:Mark
image
Pop up panel
image
image
image
image
image

Other(It is not related to this PR.)
All fixes in this PR are done, but I found a bug in the Pop Panel display, added to the issue
When two or more annotations overlap, only one of them is displayed when trying to display the PoP Panel. #1014

@birm birm self-requested a review July 22, 2024 21:58
Copy link
Member

@birm birm left a comment

Choose a reason for hiding this comment

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

Great work, and good fixes!

@birm birm merged commit 87e0cbd into camicroscope:develop Jul 23, 2024
1 of 2 checks passed
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