Question about NDPI
Benjamin Gilbert
bgilbert+openslide at cs.cmu.edu
Tue May 14 00:00:07 EDT 2024
On Mon, May 13, 2024 at 10:30 PM Martin Weihrauch
<m.weihrauch at smartinmedia.com> wrote:
> At Smart In Media, have a huge slide collection and our earliest ever NDPI slide dates back to Oct 2007 and the latest to this year. The models were S210, S360 and S20 and one from one, where I am not sure (2007).
> In all of them, I found the word "Hamamatsu" in a Hex Editor starting at byte #12 (in the oldest slide from 2007, it starts at #18). This would make it a lot easier at identifying Hamamatsu NDPI files from the content of the file, irrespective of the extension, by just searching the first e. g. 30 bytes for the string "Hamamatsu".
>
> Can you confirm this or do you have other findings?
That approach is probably okay, though personally I wouldn't rely on
it. That string "Hamamatsu" is referenced by the Make tag (271) of
the first TIFF directory, and so its location within the file is
probably not contractual. For example, any other software that
decided to generate NDPI-compatible files would not necessarily put
the string in the same place, if it included the string at all.
Best,
--Benjamin Gilbert
More information about the openslide-users
mailing list