Skip to content

Delete the label image to deidentify a whole-slide image (WSI) with an optional GUI

License

Notifications You must be signed in to change notification settings

cornish/anonymize-slide-python3-gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anonymize-slide-python3-gui

This adds a very simple GUI interface to Benjamin Gilbert's anonymize-slide program which I previously updated to run under python3. The CLI functions still work as before (see usage examples below), however if no CLI arguments are supplied, the GUI is launched.

Please note that the updated python3 code has not been tested with MRXS files

This is a program to remove the slide label from whole-slide images in the following formats:

  • Aperio SVS
  • Hamamatsu NDPI
  • 3DHISTECH MRXS

Slide files are modified in place, making this program both fast and potentially destructive. Do not run it on your only copy of a slide.

Download

Examples

Launch the GUI (supply no arguments):

anonymize-slide-gui.py

Delete the label from slide.mrxs:

anonymize-slide-gui.py slide.mrxs

Delete the label from all NDPI files in the current directory:

anonymize-slide-gui.py *.ndpi

Requirements

  • Python 3.0+

Development Roadmap

  1. Replace the simple messagebox-based GUI with a proper GUI
  2. Possibly refactor the project and merge with the non-GUI version

License

This program is distributed under the GNU General Public License, version 2.

No Warranty

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.