My understanding is that OpenSlide is just giving you the data from the SVS file. So the difference in red is caused by whatever program wrote the file, not OpenSlide.<div><br></div><div>Kent</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Nov 7, 2012 at 1:09 PM, Sriram Somanchi <span dir="ltr"><<a href="mailto:ssomanch@andrew.cmu.edu" target="_blank">ssomanch@andrew.cmu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am new to using virtual slides and openslide library to access these files. I have a few Aperio (.svs) files that I could open with open slide. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">My question is how is the aggregation done at multiple levels. I see that the aggregation RGB of 4x4 grid is not the 1x1 grid at the higher level (my down sampling is ~4). I have attached a small snippet of the code for reference. Can someone please explain how the aggregation is done across multiple levels? <u></u><u></u></p>
<p class="MsoNormal">Otherwise, can you please direct me to documentation which will help me understand this aggregation<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thank you for your help.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Sriram<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Code:<u></u><u></u></p><p class="MsoNormal">openslide_read_region(slide, buf, 0, 0, 0, 4, 4);<u></u><u></u></p>
<p class="MsoNormal">openslide_read_region(slide, buf1, 0, 0, 1, 1, 1);<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Output:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
4x4 grid at level 0:<u></u><u></u></p><p class="MsoNormal">The level 0 width 107046, the height 87978<u></u><u></u></p><p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p><p class="MsoNormal">
The alpha 255, red 239, green 239, blue 239<u></u><u></u></p><p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p><p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p>
<p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p><p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p><p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p>
<p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p><p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p><p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p>
<p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p><p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p><p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p>
<p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p><p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p><p class="MsoNormal">The alpha 255, red 239, green 239, blue 239<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">1x1 grid at level 1:<u></u><u></u></p><p class="MsoNormal">The level 1 width 26761, the height 21994<u></u><u></u></p><p class="MsoNormal">The alpha 255, red 241, green 241, blue 239<u></u><u></u></p>
</div></div><br>_______________________________________________<br>
openslide-users mailing list<br>
<a href="mailto:openslide-users@lists.andrew.cmu.edu">openslide-users@lists.andrew.cmu.edu</a><br>
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users</a><br>
<br></blockquote></div><br></div>