Re: JPEG Lossless decompression
- From: Mathieu Malaterre <mathieu.malaterre@xxxxxxxxx>
- Date: Mon, 27 Oct 2008 09:22:53 -0700 (PDT)
On Oct 25, 5:17 pm, CT2...@xxxxxxxxx wrote:
On Oct 24, 4:44 pm, Mathieu Malaterre <mathieu.malate...@xxxxxxxxx>
wrote:
On Oct 24, 8:22 pm, CT2...@xxxxxxxxx wrote:
I'm currently working on my capstone project at school which is a
DICOM Viewer. I have the viewer to the point were I support all common
formats except compressed images, which is my next area of work. I'm
want to support DICOM images with transfer syntax
1.2.840.1008.1.2.4.70, JPEG lossless non-hierarchical first-order
prediction.
However, I have just hit a wall with this. I have not been able to
find very many resources online as to how I need to decompress the
pixel data, whether it be the algorithm or a library of some kind.
I should point out that while my capstone project is for school on
requirement is that an outside source (usually a business) requests
it. As such this viewer is going to be used internally at a local
business, which I'm not sure, but may cause some problems with
licensing on libraries. Any help you can provide me will be greatly
appreciated.
Also, I don't know if it makes a difference or not not but I am
creating this in C#.
Hi
I agree with Chuck. And to help you avoid hitting a brick wall:
avoid at all cost:
* stanford pvrg codec: buggy in lossless 16bits
* cornell: buggy in almost all lossless mode
ijg as such is not enough and you need the famous jpeg lossless patch.
Which is already integrated in offis.
See the sf.net project that I maintain:
http://sourceforge.net/projects/jpeg
Trust me I tried a *lot* of implementation before settling to IJG.
As a side note, GDCM is a C++ library that is wrapped in C#, and it
does support almost all kind of JPEG compressed images:
http://gdcm.sourceforge.net/
Supporting compressed transfer syntax is actually trivial,
supporting broken compressed transfer syntax from private vendor is
the hard part. See:
http://apps.sourceforge.net/mediawiki/gdcm/index.php?title=gdcm:Suppo...
BTW, if you are developing a viewer, have a look at my minimal GDCM
Conformance Tests here:
http://apps.sourceforge.net/mediawiki/gdcm/index.php?title=General_qu...
2cts
-Mathieu- Hide quoted text -
- Show quoted text -
Thanks for all the responses so far. I know am very uninformed in the
area of compression/decompression and this has really helped. I
figured if I use a library I would have would be in C or C++ and I
would have to go through the process of making a DLL and interface for
C#.
Maybe I get can some input if I describe my problem set a bit more.
The decompression is not the only thing I need to do, in fact after I
release it to my sponsor company it will probably be switched out with
another one. The main goal of my side is to create a proper design so
that the decompression system can be easily expanded later for more
types of decompression and vendor specific compression types.
So right now I'm am just looking for support .70 transfer syntax (as
much of it as I can) as more of a proof of concept for the project. As
if the project takes of later the company will probably enter into
some kind of deal with a private company such as Pegasus or create
their own codecs. If this is as trivial as you claimed it is,
Mathieu, this would fall under how I originally though it would be - a
month of research, 2-3 days of work.
That said I'm leaning towards these two libraries:http://sourceforge.net/projects/jpeg
andhttp://apps.sourceforge.net/mediawiki/gdcm/index.php?title=Main_Page
cool :)
Mathieu you suggested using ijg, but I haven't seen any documentation
from their site saying they support JPEG lossless, in fact everything
Yup, tom Lane always refused to see the lossless patch integrated into
the main dev branch. I must still have the original email somewhere.
thing I've read has said lossless is basically obsolete and no one
uses it.
That is so not true ! DICOM is using it. But be warned that J2K or
JPEG-LS gives much better compression ratio in lossless mode (check D.
Clunie paper on that).
2cts
.
- References:
- JPEG Lossless decompression
- From: CT2049
- Re: JPEG Lossless decompression
- From: Mathieu Malaterre
- Re: JPEG Lossless decompression
- From: CT2049
- JPEG Lossless decompression
- Prev by Date: Re: JPEG Lossless decompression
- Next by Date: Re: JPEG Lossless decompression
- Previous by thread: Re: JPEG Lossless decompression
- Next by thread: Free or Open Source DICOM Viewer and PACS Client
- Index(es):
Relevant Pages
|