add DICOM (aka supp 145) support #142 Build Problem

Ivo Rakar ivo23061987 at gmail.com
Sat Sep 19 04:03:09 EDT 2015


>So please edit the following line:

>
https://github.com/malaterre/openslide/blob/dicom-wsi/src/openslide-vendor-dicom.c#L84

>And change:

>const int tidx = tile_col * dicoml->tiles_across + tile_row;

>into:

>const int tidx = tile_row * dicoml->tiles_across + tile_col;

Thank you Mathieu,

I tried but I got the same result. I think that the problem lays in the
number of levels of the whole slide image. When I run this function
 openslide_get_level_count(openslide_t * osr) the result is 2 with the
DOGDIR and the respective values are 1 for the first level
and 1.9444444444444444 for the second level. If I try to do the  same thing
with another file, for example OS-3.ndpi from the Openslide test data I got
that is has 13 levels with respective values [1.0, 2.0, 4.0, 8.0, 16.0,
 32.0, 64.0, 128.0, 256.0, 512.0, 1024.0, 2048.0, 4096.0].

So when I use the Demo.java program it is giving me the error because the
highest level downsample is 1.94444444444444 and because of that the region
that I am trying to open is too large for the Java heap space and  the java
virtual machine is throwing me a javaOutOfMemoryError exception.

Unfortunately I know only Java, and my programming skills in C are verry,
verry limited so forgive me if I can not help you more with that.

Thanks for the help!

On 17 September 2015 at 14:50, Mathieu Malaterre <
mathieu.malaterre at gmail.com> wrote:

> On Mon, Sep 14, 2015 at 6:19 PM, Ivo Rakar <ivo23061987 at gmail.com> wrote:
> > $ openslide-write-png DOGDIR 0 0 1 36864 34048 dicom.png
> > openslide-write-png: Cannot seek to offset: Invalid argument
>
> Thanks much !
>
> So please edit the following line:
>
>
> https://github.com/malaterre/openslide/blob/dicom-wsi/src/openslide-vendor-dicom.c#L84
>
> And change:
>
> const int tidx = tile_col * dicoml->tiles_across + tile_row;
>
> into:
>
> const int tidx = tile_row * dicoml->tiles_across + tile_col;
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20150919/cb861832/attachment.html 


More information about the openslide-users mailing list