Discussion:
From mpeg to multiframe dicom image
(too old to reply)
mbravo
2010-08-12 10:53:53 UTC
Permalink
Hi,

I think someone a long time ago asked for something similar, but still
couldn't find any good and clear information on how to manage my
problem.

I'm trying to solve the following situation:

1. Our app receives a video examination (typically mpeg file) from a
frame grabber card
2. Converts video from mpeg to a set of jpg's by using ffmpeg library
3. These jpg's should be put together into a multiframe dicom image

Step 3 is obviously the more complex and the one i didn't figure out
yet. I want to make use of a java library for this purpose but I don't
know of any existing one that implements this, or if it's possible to
modify jpg2dcm from dcm4che in order to accomplish it.

Any ideas/solutions? Maybe someone at some point did something
similar.

Thanks, cheers
Mathieu Malaterre
2010-08-13 09:24:20 UTC
Permalink
Post by mbravo
Hi,
I think someone a long time ago asked for something similar, but still
couldn't find any good and clear information on how to manage my
problem.
1. Our app receives a video examination (typically mpeg file) from a
frame grabber card
2. Converts video from mpeg to a set of jpg's by using ffmpeg library
3. These jpg's should be put together into a multiframe dicom image
Step 3 is obviously the more complex and the one i didn't figure out
yet. I want to make use of a java library for this purpose but I don't
know of any existing one that implements this, or if it's possible to
modify jpg2dcm from dcm4che in order to accomplish it.
Any ideas/solutions? Maybe someone at some point did something
similar.
I would use gdcmimg:

$ gdcmimg 1.jpg 2.jpg 3.jpg 4.jpg ... output.dcm

GDCM is wrapped to Java, so you should be able to reproduce the
behavior of gdcmimg in Java.

HTH
-Mathieu
Ref:
http://gdcm.sourceforge.net/html/gdcmimg.html
mbravo
2010-08-17 07:11:36 UTC
Permalink
Post by Mathieu Malaterre
Post by mbravo
Hi,
I think someone a long time ago asked for something similar, but still
couldn't find any good and clear information on how to manage my
problem.
1. Our app receives a video examination (typically mpeg file) from a
frame grabber card
2. Converts video from mpeg to a set of jpg's by using ffmpeg library
3. These jpg's should be put together into a multiframe dicom image
Step 3 is obviously the more complex and the one i didn't figure out
yet. I want to make use of a java library for this purpose but I don't
know of any existing one that implements this, or if it's possible to
modify jpg2dcm from dcm4che in order to accomplish it.
Any ideas/solutions? Maybe someone at some point did something
similar.
$ gdcmimg 1.jpg 2.jpg 3.jpg 4.jpg ... output.dcm
GDCM is wrapped to Java, so you should be able to reproduce the
behavior of gdcmimg in Java.
HTH
-Mathieu
Ref:http://gdcm.sourceforge.net/html/gdcmimg.html
Thanks for your reply Mathieu, I'll take a look :)
mbravo
2010-08-19 11:08:06 UTC
Permalink
Post by mbravo
Post by Mathieu Malaterre
Post by mbravo
Hi,
I think someone a long time ago asked for something similar, but still
couldn't find any good and clear information on how to manage my
problem.
1. Our app receives a video examination (typically mpeg file) from a
frame grabber card
2. Converts video from mpeg to a set of jpg's by using ffmpeg library
3. These jpg's should be put together into a multiframe dicom image
Step 3 is obviously the more complex and the one i didn't figure out
yet. I want to make use of a java library for this purpose but I don't
know of any existing one that implements this, or if it's possible to
modify jpg2dcm from dcm4che in order to accomplish it.
Any ideas/solutions? Maybe someone at some point did something
similar.
$ gdcmimg 1.jpg 2.jpg 3.jpg 4.jpg ... output.dcm
GDCM is wrapped to Java, so you should be able to reproduce the
behavior of gdcmimg in Java.
HTH
-Mathieu
Ref:http://gdcm.sourceforge.net/html/gdcmimg.html
Thanks for your reply Mathieu, I'll take a look :)
Hi again,

Before I try to use GDCM with Java (I have no idea about how SWIG and
wrapping code works) I wanted to test it, so I build the exe
applications using cygwin/ccmake as it's explained on INSTALL.txt
file.

Then I used the gdcmimg app you suggested me, and got a .dcm
multiframe image file output. Everything OK until I tried to see the
image on a couple of DICOM viewers we work with, without being able to
see anything in the frames.

Did I miss something?

Thanks,

Manuel
mbravo
2010-08-20 11:20:19 UTC
Permalink
Post by mbravo
Post by mbravo
Post by Mathieu Malaterre
Post by mbravo
Hi,
I think someone a long time ago asked for something similar, but still
couldn't find any good and clear information on how to manage my
problem.
1. Our app receives a video examination (typically mpeg file) from a
frame grabber card
2. Converts video from mpeg to a set of jpg's by using ffmpeg library
3. These jpg's should be put together into a multiframe dicom image
Step 3 is obviously the more complex and the one i didn't figure out
yet. I want to make use of a java library for this purpose but I don't
know of any existing one that implements this, or if it's possible to
modify jpg2dcm from dcm4che in order to accomplish it.
Any ideas/solutions? Maybe someone at some point did something
similar.
$ gdcmimg 1.jpg 2.jpg 3.jpg 4.jpg ... output.dcm
GDCM is wrapped to Java, so you should be able to reproduce the
behavior of gdcmimg in Java.
HTH
-Mathieu
Ref:http://gdcm.sourceforge.net/html/gdcmimg.html
Thanks for your reply Mathieu, I'll take a look :)
Hi again,
Before I try to use GDCM with Java (I have no idea about how SWIG and
wrapping code works) I wanted to test it, so I build the exe
applications using cygwin/ccmake as it's explained on INSTALL.txt
file.
Then I used the gdcmimg app you suggested me, and got a .dcm
multiframe image file output. Everything OK until I tried to see the
image on a couple of DICOM viewers we work with, without being able to
see anything in the frames.
Did I miss something?
Thanks,
Manuel
Since I have it running with cygwin, I followed the steps shown in
http://gdcm.sourceforge.net/wiki/index.php/Configuring_and_Building_With_VS_.NET_2003
in order to build gdcm.dll. Everything seemed to perform ok, no
problems, until I tested the application again:

D:\gdcm\bin>gdcmimg.exe imagenes1.jpg imagenes2.jpg imagenes3.jpg
imagenes4.jpg imagenes5.jpg imagenes6.jpg imagenes7.jpg imagenes8.jpg
imagenes9.jpg imagenes10.jpg imagenes11.jpg imagenes12.jpg
imagenes13.jpg imagenes14.jpgimagenes15.jpg imagenes16.jpg
imagenes17.jpg imagenes18.jpg imagenes19.jpg imagenes20.jpg
imagenes21.jpg imagenes22.jpg imagenes23.jpg imagenes24.jpg
imagenes25.jpg imagenes26.jpg imagenes27.jpg imagenes28.jpg
imagenes29.jpg imagenes30.jpgimagenes31.jpg imagenes32.jpg
imagenes33.jpg imagenes34.jpg imagenes35.jpg imagenes36.jpg
imagenes37.jpg imagenes38.jpg imagenes39.jpg imagenes40.jpg test3.dcm -
V
Problem during DICOM steps

I tried several times, even with one single jpg image.. but still
having the same problem, no more information shown.

I'm a bit lost at this point

Loading...