• I wanted to use jpeg 2000 images with dgate. I've been building dgate on two different apple systems, little endian 64bit and big endian 32bit. I have also been rewriting the jpeg-6b library to accept any bit width. So once I did that, I added the jpeg library to dgate. After that, I added the jasper library and that gave me my jpeg 2000. It still will requires more testing than I done, so it is an alpha right now. The changed files and the libraries can be found at http://www.bitsltd.net/Softwar…ware-Repository/index.php, the original Jasper library can also be found at http://www.ece.uvic.ca/~mdadams/jasper/#download. You must use my version of the jpeg (libjpeg-6c) library because it accepts 8 or 12 bit lossy and 2-16 bit lossless without recompiling. You will have to build dgate and the libraries on your system unless there is someone else building this on an Apple, in which case, I can send you the built programs to try or the Xcode project. I also finished the changes required to run on big endian systems, as most of the code was written on my Powerbook Power PC, I just can give it up, it's a 17" and I like it. Try it and let me know what you think! :D
    Bruce

  • Put a newer version up. Had an Endian problem with J2K, fixed. I would like to make a lot of small corrections for GCC4.2 compiler warnings. Most involve "const char" in place of "char". Should I make the changes to the sources on the web site or is there a beta I can use?

  • Hi Bruce,


    Thanks for your work. I am merging your changes to the dgate code base (they look great to me!) and I have a few questions:


    1) In NKIQRSOP.CXX you have blocked out return DecompressImage(pDDO, &dum) for jpeg compression J0. Why is this?


    2) In CCTYPES.H, when HAVE_LIBJPEG is defined you perform "typedef signed long INT32". This change will likely break the 64 bits version! Why is this change?


    3) Can you explain the change to ParseRawVRIntoDCM in TRNSYN.CXX?


    I have just updated dgatepatch1415c.zip with the merged code sofar (I have yet to start on the actual jpeg2000 stuff).


    Thanks,


    Marcel

  • Hi,


    Bruce made a jasper-based jpeg2000 implementation for dgate.exe. This may be out as a beta soon. I prefer to implement this change which is free. The change for using the offis jpeg2000 tools is fairly extensive.


    Marcel

  • I use dgate with OsiriX on my Macs. OsiriX switched to the OpenJPEG library for JPEG 2000 because it is faster. I think the reason for this is the OpenJPEG library works with int* instead of shorts*. Well if you want to try it, I have post the files that you need to change at the usual place:
    http://www.bitsltd.net/Softwar…ware-Repository/index.php
    They are for the 1.4.16alpha 3 version and OpenJPEG 1.3.
    The OpenJpeg files can be found here: http://code.google.com/p/openjpeg/
    So far, I like it better, but have left the choice for either library to work by changing compiler switches. I also add switches to uncompress the evil NovaPacs and Fuji CR non-standard .dcm files

  • I didn't like the OpenJPEG, it turned out to be slower, however there was one NovaRad image that it could decode and Jasper could not. I've been storing my images in JPEG2000 and it's been working well until I received an Image with frames in it. Hence, a rewrite. I have put up new code to allow frames and a bunch of warning fixes to the 1.4.16alpha 3 version. For now stick with Jasper builds. See the 1.4.16alpha thread for more info.


    Bruce

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!