markemus

Results 33 comments of markemus

@gregster7 check my PR here https://github.com/bgilbert/anonymize-slide/pull/6 which adds removal of macro images for aperio. Should work for svs although I wrote it for aperio tiff.

BTW we discovered recently that the Aperio anonymization at least does NOT currently remove or modify macro images. Big problem. I've been working on a version that fixes that -...

``` def do_aperio_svs(filename): with TiffFile(filename) as fh: # Check for SVS file try: desc0 = fh.directories[0].entries[IMAGE_DESCRIPTION].value() if not desc0.startswith(b'Aperio'): raise UnrecognizedFile except KeyError: raise UnrecognizedFile accept(filename, 'SVS') # Find and...

I believe they often do. I have a new version of this that removes the macro, and also removes the filename from the ImageDescription tag which can contain PHI. I'll...

@Tomatenbiss I merged your Mirax fix as well - could you please run your tests again and make sure it still works for both formats? For aperio images the macro...

No, sorry, I've never dealt with mrxs before. But thank you for the test results, much appreciated!

By the way I looked into it a bit more: in Aperio, the macro image is cut off at the top so that it does not show the label. However...

@fiendish I'm not maintaining this code anymore, however: The exceptions exist to ensure that we can catch if phi is not removed. If the label is misidentified as a thumbnail,...

There are test images on the openslide website here: https://openslide.org/formats/ventana/ see the bottom of the page. You can navigate to the other formats for their test images. Also wanted to...

@r3m0chop I added a pull request with an update for Python 3 a while back.