add DICOM (aka supp 145) support #142 Build Problem
Ivo Rakar
ivo23061987 at gmail.com
Mon Sep 14 12:19:34 EDT 2015
Mathieu,
I think that I have found where is the catch.
In OpenSlide.java there is an array called levelDownsamples containing all
the downsample values for all the levels if I am not wrong.
The problem when with the file DOGDIR is that I have only two values in
that array [1, 1.94444444444]. For the other formats this array has many
more values.
So when i use the Demo.java it tries to open an image that is too large.
In my case:
$ openslide-write-png DOGDIR 0 0 1 36864 34048 dicom.png
openslide-write-png: Cannot seek to offset: Invalid argument
I don't know why is that.
Thank you!
On 14 September 2015 at 12:26, Mathieu Malaterre <
mathieu.malaterre at gmail.com> wrote:
> Ivo,
>
> On Sat, Sep 12, 2015 at 1:22 PM, Ivo Rakar <ivo23061987 at gmail.com> wrote:
> [...]
> > Thanks! It worked, but now I have another problem.
> >
> > When I try to use it with the java demo it gives me the following error:
> >
> > "Not a JPEG file: starts with 0x00 0x00"
>
> It would be of tremendous help if you could reproduce it with a one
> liner. Typically :
>
> > openslide-write-png DICOMDIR 0 0 0 512 512 dicom.png
>
> where syntax is:
>
> openslide-write-png slide-file x y level width height output-file
>
> Thanks much,
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20150914/3a355d84/attachment.html
More information about the openslide-users
mailing list