Openslide Usage
John Stevenson-Hoare
John.Stevenson-Hoare at ffei.co.uk
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 (http://www.remotesensing.org/libtiff/). 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.
Cheers
John
________________________________
[FFEI_Logo_BoxOnly[1].png]<http://www.ffei.co.uk> [FFEI wins 3rd Queens award for innovation] <http://www.ffei.co.uk/ffei-wins-third-queens-award-for-innovation/>
CONFIDENTIALITY AND DISCLAIMER NOTICE
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]<http://www.linkedin.com/company/ffei> [Follow @FFEI_ltd] <https://twitter.com/FFEI_ltd> [FFEI YouTube Channel] <http://www.youtube.com/user/FFEIPrintTechnology>
Registered Office: The Cube, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 7DF, England.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20141117/7442fb7e/attachment.html
More information about the openslide-users
mailing list