-
Notifications
You must be signed in to change notification settings - Fork 3
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
add dendrogram selection on 2D image viewer #13
base: master
Are you sure you want to change the base?
Conversation
|
||
# assume I got the dendrogram structure here as d | ||
d = data[dendro_att] # here is ndarray data | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@astrofrog How to get dendrogram structure within ImageWidget
? data['structure' will return a ndarray
not a real dendrogram object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data = self.widget.client.display_data -> data which returns a datacollection
check label='dendrogram' for later
I guess we need all 'children' instead of 'parent', I know 'child' is not in the data object, keep it like this first? (see the figure below) Icon is still not shown as checked yet, what's the size of it again, 72*72 + alpha channel? maybe I could make another one ;) |
@PennyQ - it should be easy to find the children given a structure. Given a structure
|
So then given a structure, you need to loop recursively over all the children of a structure in order to select the whole structure. |
@astrofrog It's updated with 1) finding all children branches 2) add mouse dragging to extend selection 3) update with a new icon figure |
as above, it now an icon on 2D image viewer.