Hi Stefan,<div><br></div><div>did you already try one of the lower layers? Even now it might be happening that by chance you are requesting a region which does not contain image information - though considering your dimensions, the chances are quite low.</div>
<div><br></div><div>Maybe something like this works</div><div><br></div><div>int32_t max_layers = openslide_get_layer_count(slideObject);</div><div>int32_t layer = max_layers - 3;</div><div><br></div><div><div>int64_t w,h;</div>
<div>openslide_get_layer_dimensions(slideObject, layer, &amp;w, &amp;h);</div><div><br></div><div>std::vector&lt;uint32_t&gt; dst(w*h);</div><div>openslide_read_region(slideObject, &amp;dst[0], 0, 0, layer, w, h);</div><div>
<br></div><div>Thus it were at least ensured that the retrieved image information fits into memory and covers the whole image.</div><div><br></div><div>Over here, this is working with the CMU datasets and I have no idea what else could be wrong.</div>
<div><br></div><div>Regarding openslide_read_associated_image I am not sure what this is doing. If it is just reading one of the JPEGs in which the virtual slide is stored on disk, it does not make much sense for MIRAX files since to my best knowledge every JPEG file consists of multiple tiles which need to be properly blended/stitched. Also, as opposed to openslide_read_region all associated images do contain image information, i.e. none of the images from disk contains only blank data.</div>
<div><br></div><div>Regards,</div><div>Hauke</div><br><div class="gmail_quote">2010/12/14 Stefan König <span dir="ltr">&lt;<a href="mailto:blogdde@googlemail.com">blogdde@googlemail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
i tried it now with this call:<br>
<br>
       openslide_read_region(slideObject, dst, 27500, 27500, 0,<br>
*width, *height);<br>
<br>
even if i set dimensions to 10000x1000 i get only (big) plane black<br>
pictures, i tried some different mirax files right now, allways the<br>
same thing.<br>
<br>
this produces a black image too<br></blockquote></div></div>