DigitalSlideArchive / HistomicsUI

A Girder plugin for pathology image annotations and analysis.
Apache License 2.0
56 stars 19 forks source link

Copy-paste annotations (related to issue #566) #36

Open kheffah opened 5 years ago

kheffah commented 5 years ago

Oftentimes we want to copy an annotation as-is and paste it in multiple places. This is especially true for things like regions of interest, but also for bounding boxes. This is related to issue DigitalSlideArchive/HistomicsUI#26 and has a complementary value. If issue DigitalSlideArchive/HistomicsUI#26 is addressed, then this becomes less of a priority (again, since this is mostly needed for rectangular annotations).

manthey commented 5 years ago

We can download an annotation and then in the Girder interface upload an annotation. Would it be sufficient to expose the upload control in the HistomicsTK interface? Or would this be better served by having COPY/PASTE options in the context menu?

kheffah commented 5 years ago

@manthey I think it is necessary to have this using a COPY/PASTE option since we don't want to just "paste" the annotation element in the exact same position. Instead, the desired functionality is to right click on the annotation, click "COPY" then move the cursor to the desired centroid (or bounding box centroid) where it should be pasted, then right click and click "PASTE" to create a new element in that location. This is particularly relevant in systematic annotation studies where the ROI size/shape should be constant.

manthey commented 2 years ago

If/when we get to this, we could just as a "copy" option to the annotation context menu, and then the context menu would be available in non-annotation areas as well as over other annotations and a "paste" option would be shown.