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

[MRG] adding the bounding box parsing code to the dashboard #83

Merged
merged 3 commits into from
Sep 24, 2018

Conversation

kmader
Copy link
Collaborator

@kmader kmader commented Sep 18, 2018

Seems to be an issue if you make a BBOX and then drag it, that it does not register the drag (maybe using mouseup events is not sufficient)

image

image

adding the bounding box parsing code to the dashboard
@kmader kmader requested a review from betatim September 18, 2018 09:54
@kmader
Copy link
Collaborator Author

kmader commented Sep 18, 2018

the others look ok
image

"metadata": {},
"outputs": [],
"source": [
"def get_bbox_handles(in_view_dict):\n",
Copy link
Contributor

@betatim betatim Sep 18, 2018

Choose a reason for hiding this comment

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

move this guy to jupyanno/cornerstone.py?

I'd also add the below as a helper in utils.py to make things easier to read:

def getIn(a_dict, *args):
   value = a_dict[args[0]]
   for arg in args[1:]:
       value = value[arg]
   return value

so that it raises an exception when the key doesn't exist.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it probably makes more sense to have the code in cornerstone_widget chestrays/cornerstone_widget#8

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@betatim we actually do not want an exception because lots of images won't have any bounding boxes (healthy patients) or contain other information (like the plotly or standard image widget) and we don't want it to fail on those.

@betatim
Copy link
Contributor

betatim commented Sep 18, 2018

I'll take a look at the BBox dragging issue in cornerstone.

@betatim
Copy link
Contributor

betatim commented Sep 18, 2018

Drag behaviour is fixed in chestrays/cornerstone_widget#17

@kmader
Copy link
Collaborator Author

kmader commented Sep 18, 2018

Ready to merge

@kmader kmader changed the title adding the bounding box parsing code to the dashboard [MRG] adding the bounding box parsing code to the dashboard Sep 19, 2018
@betatim betatim merged commit e6f93e9 into master Sep 24, 2018
@kmader kmader deleted the adding-bbox-to-dashboard branch September 24, 2018 12:01
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.

None yet

2 participants