Thursday, 29 August 2013

we have to modify the $DCM4CHEE_HOME/server/default/lib/dcm4che.jar file (expand it), in particular the

org/dcm4cheri/image/ImageReaderFactory.properties

file, changing the lines with "com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReader" with"com.sun.imageio.plugins.jpeg.JPEGImageReader".Same thing with the ImageWriterFactory.properties with "com.sun.imageio.plugins.jpeg.JPEGImageWriter"

After that, we have to create the new dcm4che.jar file using this command (run it in the folder containing the dcm4che.jar files previously extracted):

jar cvf dcm4che.jar *

Sobstitute the old jar file with the new one.Start the server and wado service works with the web interface!

Monday, 26 August 2013

Some readers have asked me questions regarding how to access DICOM header information by DICOM Tag parameters. On this post I present you a quick tutorial on how to list all header information, including the Tag value, VR (value representation), Tag description, and the values of each field using the great dcm4che 2 toolkit.

The next step is to code the method responsible for extracting the header info. Note that this method is recursive. This is done because some DICOM files bring encoded Items that may hold other DICOM objects denoted by de value representation SQ. So, we are handling also sequence information with this code. The method is written as follows:

Looking at the code, first we get an iterator to go through our DICOM dataset. Then we code a while loop to get each DICOM element present in the header. At each iteration a new DicomElement is kept so we can access its values. The tag variable holds the current Tag value. From then on there are some useful functions that may help us a lot. We can use the nameOf method fromDicomObject class to get the Tag description as a String. I also suggest you to have a look at the TagUtils class for other great functions. The vrOf function will return the value representation to the current element.

Then comes the recursive part. We test the VR to see if it's a sequence (SQ), if so then we check if this element has any Items. Then if the answer is true we get the new object and call thelistHeader function again, starting the recursive loop. Each iteration then prints out the desired information.

Finally, to test this program we must a main method for this class. The method may be written as follows:

A number of people have asked me recently can I create this look or that look using CSS in JavaFX. Or they have said that you could never do that! So I thought I would do a little experiment and try recreating a bunch of common button styles purely using CSS. So without further ado, here is the result:

Friday, 16 August 2013

ARGO is a unique and creative Wordpress Theme with clean and modern design. It is perfect choice for your corporate agency, creative studio or for portfolio. It can be customized easily to suit your wishes.

Start is a new responsive admin template based on latest Windows 8 interface. This one, called Metro UI, has its roots in the design principles of classic Swiss graphic design – minimal, bold, high contrast and flat colors are some of its great features.

//Bind IN parameter first, then bind OUT parameterint empID =102; stmt.setInt(1, empID);// This would set ID as 102// Because second parameter is OUT so register it stmt.registerOutParameter(2, java.sql.Types.VARCHAR);