cornish / anonymize-slide-python3

Delete the label image to deidentify a whole-slide image (WSI)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

anonymize-slide

This is Benjamin Gilbert's anonymize-slide program updated to run under python3.

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

Delete the label from slide.mrxs:

anonymize-slide.py slide.mrxs

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

anonymize-slide.py *.ndpi

Requirements

  • Python 3.0+

Changes

  1. Basic update using 2to3
  2. Updates for byte/str representation and methods
  3. TiffFile class modified, because "file" no longer exists to inherit from

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.

About

Delete the label image to deidentify a whole-slide image (WSI)

License:GNU General Public License v2.0


Languages

Language:Python 100.0%