Openslide Usage

John Stevenson-Hoare John.Stevenson-Hoare at
Mon Nov 17 04:13:39 EST 2014

Hi Nikolay,

It should be relatively easy to get the XML out of the file if you use the LibTIFF library ( The following code snippet should do it:

TIFF *tiff = TIFFOpen(“file-path-to-scn.scn”, “r8”);
if (0 != tiff) {
  char *image_desc = 0;
  if (1 == TIFFGetField(tiff, TIFFTAG_IMAGEDESCRIPTION, &image_desc) {
    // image_desc now points to a buffer containing the XML

Don’t forget to close the TIFF when finished.


[FFEI_Logo_BoxOnly[1].png]<> [FFEI wins 3rd Queens award for innovation] <>

This message and any attachment is confidential and is protected by copyright. If you are not the intended recipient, please email the sender and delete this message and any attachment from your system.

Dissemination and or copying of this email is prohibited if you are not the intended recipient. We believe, but do not warrant, that this email and any attachments are virus free. You should take full responsibility for virus checking.

No responsibility is accepted by FFEI Ltd for personal emails or emails unconnected with FFEI Limited's business.

FFEI Limited is a limited company registered in England and Wales (Registered Number: 3244452).

[Join us on Linked In]<> [Follow @FFEI_ltd] <>  [FFEI YouTube Channel] <>
Registered Office: The Cube, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 7DF, England.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the openslide-users mailing list