<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Martin,
<div class=""><br class="">
</div>
<div class="">Please refer the API document, it says:</div>
<div class=""><br class="">
</div>
<div class="">
<table class="params" style="font-size: 14px; line-height: 22px; font-family: Roboto, sans-serif; margin-left: 0px; padding-left: 0px; color: rgb(0, 0, 0);">
<tbody class="">
<tr class="">
<td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; font-weight: bold; vertical-align: top;">
x</td>
<td class="">The top left x-coordinate, in the level 0 reference frame. </td>
</tr>
<tr class="">
<td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; font-weight: bold; vertical-align: top;">
y</td>
<td class="">The top left y-coordinate, in the level 0 reference frame. </td>
</tr>
<tr class="">
<td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; font-weight: bold; vertical-align: top;">
level</td>
<td class="">The desired level. </td>
</tr>
<tr class="">
<td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; font-weight: bold; vertical-align: top;">
w</td>
<td class="">The width of the region. Must be non-negative. </td>
</tr>
<tr class="">
<td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; font-weight: bold; vertical-align: top;">
h</td>
<td class="">The height of the region. Must be non-negative.</td>
</tr>
</tbody>
</table>
<div class=""><br class="">
</div>
</div>
<div class="">The x,y are based on level 0. The w,h is just pixels you want.</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class=""><br class="">
</div>
<div class="">Ray</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Oct 10, 2015, at 8:58 PM, Priv.-Doz. Dr. M. Weihrauch <<a href="mailto:martin.weihrauch@uni-koeln.de" class="">martin.weihrauch@uni-koeln.de</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Dear community:<br class="">
<br class="">
I have a C#-wrapper for OpenSlide, which I am using right now. However,<br class="">
concerning the OpenSlide read_region method, I am somewhat confused.<br class="">
There is a x, y, width, height and level.<br class="">
<br class="">
If I see it correctly (using my current software that I wrote), the<br class="">
parameters width and height are in relation to the level. E. g., when I<br class="">
grab a region with a width of 500 and height of 1000 from level 2, which<br class="">
may be total width x height 1000 x 2000, then I am actually grabbing a<br class="">
quarter of the whole image of that level.<br class="">
<br class="">
However, my experiments show that the x and y, so the offset from where<br class="">
I grab, are counting in relation to the full-size level (0). So, when I<br class="">
try to go to the middle of the image at level 2, I would use 500/1000 as<br class="">
coordinates, but with that strategy, I land somewhere at the upper left<br class="">
of the image (so I have to take e. g. 2000/4000, if that would be the<br class="">
middle of level 0).<br class="">
<br class="">
Is that really the case for OpenSlide or does my C# wrapper "translate"<br class="">
something wrong?<br class="">
<br class="">
Thanks<br class="">
<br class="">
Martin<br class="">
_______________________________________________<br class="">
openslide-users mailing list<br class="">
<a href="mailto:openslide-users@lists.andrew.cmu.edu" class="">openslide-users@lists.andrew.cmu.edu</a><br class="">
https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
<hr>
<font size="2"><b>重要声明:</b><br>
只有有权接收电子邮件中可能包含的机密信息的用户才能接收此电子邮件。从 @motic.com 传递的电子邮件可能包含机密信息和法律特许的信息。如果您不是此邮件的预期收件人,请勿阅读、复制、转发或存储此邮件。如果已误收此邮件,请将其转发到发件人,并从您的计算机系统彻底删除此邮件。<br>
<b>Important Notice:</b><br>
This message from @motic.com's email system is for the designated recipient only and may contain privileged, propritary, or otherwise private information. If you received it error, please notify the sender immediately and delete the original. Any other use
of this email by you is prohibited.</font>
</body>
</html>