<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Apologies if this question has been asked and answered before but I could find no reference using a simple Google search of the archive.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Many of the vendor formats can or do embed an ICC profile in the file along with the scan and associated images. Can I request that the API be extended to provide access to the profile(s)?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">The use of the profile in ensuring the correct display of the image is a topic that the regulatory bodies, amongst others, seem keen to explore. If this becomes a must-have for any pathology-based viewer then having OpenSlide API support
becomes very important if it is to be based on this technology.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">My suggestion would be to allow a profile to be available for each image, not just the scan, as for example, a different camera system might be used to capture the label or macro image which might therefore dictate a different profile for
these image types. Therefore the API could have functions such as the following:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">const char *const * openslide_get_associated_profile_names (openslide_t *osr)</p>
<p class="MsoNormal"> Get the NULL-terminated array of associated ICC profile names. Could use same naming convention as for associated images (i.e. ‘label’, ‘macro’, ‘thumbnail’) but include say ‘scan’ for the scan image. Vendor driver author
could decide to include (possibly same) profile if relevant for associated images, or choose to exclude from this list if image does not have a profile.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">void openslide_get_associated_profile_length (openslide_t *osr, const char *name, int64_t *len)</p>
<p class="MsoNormal"> Gets the length of a named associated ICC profile.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">void openslide_read_associated_profile (openslide_t *osr, const char *name, uint32_t *dest)</p>
<p class="MsoNormal"> Copy profile bytes from named associated ICC profile to destination buffer.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">What do you think?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">John</p>
</div>
<hr>
<div style="background-color:#FFFFFF; border:1px dotted #003333; padding:.8em">
<div align="center"><a href="http://www.ffei.co.uk"><img alt="FFEI Limited" src="http://www.ffei.co.uk/wp-content/uploads/2013/04/FFEI_Logo_BoxOnly_72dpi-Web-optimised-76x75.jpg" height="75" alt="FFEI_Logo_BoxOnly[1].png" border="0"></a>
<a href="http://www.ffei.co.uk/ffei-wins-third-queens-award-for-innovation/"><img alt="FFEI wins 3rd Queens award for innovation" src="http://www.ffei.co.uk/wp-content/uploads/2013/10/QA_small.png" height="75" border="0"></a></div>
<span style="font-size:12pt; font-family:'Cambria','times new roman','garamond',serif; color:#800080"><strong>CONFIDENTIALITY AND DISCLAIMER NOTICE</strong></span><br>
<p style="">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.
<br>
<br>
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.<br>
<br>
No responsibility is accepted by FFEI Ltd for personal emails or emails unconnected with FFEI Limited's business.
<br>
<br>
FFEI Limited is a limited company registered in England and Wales (Registered Number: 3244452).
</p>
<div align="center"><a href="http://www.linkedin.com/company/ffei" target="_blank"><img src="http://www.ffei.co.uk/wp-content/uploads/2013/10/linkedin_Small.png" border="0" alt="Join us on Linked In"></a>
<a href="https://twitter.com/FFEI_ltd" target="_blank"><img src="http://www.ffei.co.uk/wp-content/uploads/2013/10/twitter_small.png" height="30" border="0" alt="Follow @FFEI_ltd"></a>
<a href="http://www.youtube.com/user/FFEIPrintTechnology" target="_blank"><img src="http://www.ffei.co.uk/wp-content/uploads/2013/10/YouTube_small.png" height="30" border="0" alt="FFEI YouTube Channel"></a>
</div>
<div align="center"><span style="padding-top:10px; font-weight:bold; color:#000000; font-size:10pt; font-family:'Calibri',Arial,sans-serif">Registered Office: The Cube, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 7DF, England.
</div>
</span></div>
</body>
</html>