jpambrun / dcmj2k-streaming-viewer

Standard compliant dcm-j2k streaming viewer
BSD 2-Clause "Simplified" License
18 stars 8 forks source link

Error loading DICOM #2

Closed mariabizev closed 8 years ago

mariabizev commented 8 years ago

Hi there,

I believe I installed your library and all the dependencies correctly. However, when I view the index.html, the DICOM does not load and is instead empty. I've attached an image.

Any help would be greatly appreciated! dicom viewer issue

jpambrun commented 8 years ago

It is more of a tech demo. The dicom file URLs are hard coded, but not include in the repo.

You will need to adapt the code for your needs.

You can see an somewhat earlier version in action here:

jpx.jfpb.net

On Tue, Apr 12, 2016, 17:09 mariabizev notifications@github.com wrote:

Hi there,

I believe I installed your library and all the dependencies correctly. However, when I view the index.html, the DICOM does not load and is instead empty. I've attached an image.

Any help would be greatly appreciated! [image: dicom viewer issue] https://cloud.githubusercontent.com/assets/16541998/14475688/3cd4aff8-00d1-11e6-8348-bd7390b19efb.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/jpambrun/dcmj2k-streaming-viewer/issues/2

jpambrun commented 8 years ago

You could change index.html:L221 [1] from ../data to http://jpambrun.github.io/data/ and it should work with the images hosted there.

In the end, you will need to modify a J2K encoder to produce truncable streams embedded in DICOM files with the required DICOM tags.

[1] https://github.com/jpambrun/dcmj2k-streaming-viewer/blob/master/src/index.html#L221

On Tue, Apr 12, 2016 at 5:29 PM JF Pambrun jf.pambrun@gmail.com wrote:

It is more of a tech demo. The dicom file URLs are hard coded, but not include in the repo.

You will need to adapt the code for your needs.

You can see an somewhat earlier version in action here:

jpx.jfpb.net

On Tue, Apr 12, 2016, 17:09 mariabizev notifications@github.com wrote:

Hi there,

I believe I installed your library and all the dependencies correctly. However, when I view the index.html, the DICOM does not load and is instead empty. I've attached an image.

Any help would be greatly appreciated! [image: dicom viewer issue] https://cloud.githubusercontent.com/assets/16541998/14475688/3cd4aff8-00d1-11e6-8348-bd7390b19efb.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/jpambrun/dcmj2k-streaming-viewer/issues/2

jpambrun commented 8 years ago

github.io does not allow CORS for byte range request. It is now configured to stream files from my VPS.

mariabizev commented 8 years ago

Hi,

I apologize for my lack of understanding, but I am new to DICOM and
J2K encoding. What I have is a multi-frame DICOM image (one file) and
I also have the same set of images available in a .tif file. Can you
give me steps regarding what to do with these files to format them
correctly to be used with the DICOM-J2K viewer? Any resources or
services you could send me would be incredibly helpful.

Thanks very much!

Quoting Jean Francois Pambrun notifications@github.com:

You could change index.html:L221 [1] from ../data to http://jpambrun.github.io/data/ and it should work with the images hosted there.

In the end, you will need to modify a J2K encoder to produce truncable streams embedded in DICOM files with the required DICOM tags.

[1] https://github.com/jpambrun/dcmj2k-streaming-viewer/blob/master/src/index.html#L221

On Tue, Apr 12, 2016 at 5:29 PM JF Pambrun jf.pambrun@gmail.com wrote:

It is more of a tech demo. The dicom file URLs are hard coded, but not include in the repo.

You will need to adapt the code for your needs.

You can see an somewhat earlier version in action here:

jpx.jfpb.net

On Tue, Apr 12, 2016, 17:09 mariabizev notifications@github.com wrote:

Hi there,

I believe I installed your library and all the dependencies correctly. However, when I view the index.html, the DICOM does not load and is instead empty. I've attached an image.

Any help would be greatly appreciated! [image: dicom viewer issue] https://cloud.githubusercontent.com/assets/16541998/14475688/3cd4aff8-00d1-11e6-8348-bd7390b19efb.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/jpambrun/dcmj2k-streaming-viewer/issues/2


You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/jpambrun/dcmj2k-streaming-viewer/issues/2#issuecomment-209122636

jpambrun commented 8 years ago

The viewing component leverage the cornerstone framework [1]. I have added support for JPEG 2000 in the upstream project. If you just want to build a viewer with JPEG~2000 support, you should use that.

This project was built to test new streaming techniques where the image is progressively downloaded in order to improve performance and reduce bandwidth usage. However, in order to enable this, the JPEG2000 stream needs to be reorganized and special markers must be added as private DICOM tags. Unfortunately, the compression tools I have used are part of a ongoing research project and I can't publish them at this time.

[1] https://github.com/chafey/cornerstone

On Mon, Apr 25, 2016 at 5:06 PM mariabizev notifications@github.com wrote:

Hi,

I apologize for my lack of understanding, but I am new to DICOM and J2K encoding. What I have is a multi-frame DICOM image (one file) and I also have the same set of images available in a .tif file. Can you give me steps regarding what to do with these files to format them correctly to be used with the DICOM-J2K viewer? Any resources or services you could send me would be incredibly helpful.

Thanks very much!

Quoting Jean Francois Pambrun notifications@github.com:

You could change index.html:L221 [1] from ../data to http://jpambrun.github.io/data/ and it should work with the images hosted there.

In the end, you will need to modify a J2K encoder to produce truncable streams embedded in DICOM files with the required DICOM tags.

[1]

https://github.com/jpambrun/dcmj2k-streaming-viewer/blob/master/src/index.html#L221

On Tue, Apr 12, 2016 at 5:29 PM JF Pambrun jf.pambrun@gmail.com wrote:

It is more of a tech demo. The dicom file URLs are hard coded, but not include in the repo.

You will need to adapt the code for your needs.

You can see an somewhat earlier version in action here:

jpx.jfpb.net

On Tue, Apr 12, 2016, 17:09 mariabizev notifications@github.com wrote:

Hi there,

I believe I installed your library and all the dependencies correctly. However, when I view the index.html, the DICOM does not load and is instead empty. I've attached an image.

Any help would be greatly appreciated! [image: dicom viewer issue] < https://cloud.githubusercontent.com/assets/16541998/14475688/3cd4aff8-00d1-11e6-8348-bd7390b19efb.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/jpambrun/dcmj2k-streaming-viewer/issues/2


You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub:

https://github.com/jpambrun/dcmj2k-streaming-viewer/issues/2#issuecomment-209122636

— You are receiving this because you modified the open/close state.

Reply to this email directly or view it on GitHub https://github.com/jpambrun/dcmj2k-streaming-viewer/issues/2#issuecomment-214452160