dcm4che

How can I add metadata to a dicom file?

风流意气都作罢 提交于 2019-12-25 18:17:32
问题 This is in continuation with other question. I am trying to obtained a dicom file from a jpg image and some metadata I writte myself in the java program. I have this code for adding metadata but it seems to be incomplete, so I don´t know what else I need to include. I tried a simple code adding some attributes but I get some errors, so I found that there are some mandatory tags. Attributes attribs = new Attributes(); attribs.setString(Tag.StudyDate, VR.DA, "20110404"); attribs.setString(Tag

DICOM image to BufferedImage on Windows 64

末鹿安然 提交于 2019-12-24 11:29:56
问题 I need a way to convert a DICOM file into a BufferedImage (or if the dicom file is mult-frame then a set of BufferedImages) on Windows 64. I am currently using dcm4che to do this, but am running into a problem because dcm4che uses JAI which thunks down to a native dll clib_jiio.dll which is not complied, and will not be compiled for Windows 64 (see here). Does anyone know of an open source library that can do this for me? Thanks 回答1: Several DICOM plugins are available for ImageJ. Addendum:

Connecting to dcm4chee using dcm4che from a JAVA program

僤鯓⒐⒋嵵緔 提交于 2019-12-12 11:08:11
问题 Update I dug deeper in dcm4che's source code and found that an IncompatibleConnectionException is thrown if either a connection is "not installed" or the types of protocols are not set or don't match. I don't know what it means that a connection is "installed" but this flag can be set manually, so I set it for both the local and remote connections to true (even checked them with getInstalled() whether they are "installed" - and yes they are now - previously this property was null ). And as to

how to add metadata to an image (with java code) and then convert it to dicom

家住魔仙堡 提交于 2019-12-12 06:52:07
问题 I found a java code that converts a jpg and a Dicom(it takes the metadata fri¡om that one) files to a final Dicom one. What I want to do is convert the jpg image into a Dicom one, generating the metadata with java code. BufferedImage jpg = ImageIO.read(new File("myjpg.jpg")); // Convert the image to a byte array DataBuffer buff = jpg.getData().getDataBuffer(); DataBufferUShort buffer = new DataBufferUShort(buff.getSize()); for (int i = 0; i < buffer.getSize(); ++i) buffer.setElem(i, buff

unable to build dcm4chee-arc-cdi

筅森魡賤 提交于 2019-12-11 09:58:01
问题 I'm trying to build dcm4chee-arc-cdi with code cloned from github: https://github.com/dcm4che/dcm4chee-arc-cdi However when issuing the build command as described at the README.md mvn install -D db=psql I get the following error: [ERROR] Failed to execute goal on project dcm4chee-arc-conf: Could not resolve dependencies for project org.dcm4che.dcm4chee-arc:dcm4chee-arc-conf:jar:4.5.0-SNAPSHOT: The following artifacts could not be resolved: org.dcm4che:dcm4che-conf-api:jar:3.3.8-SNAPSHOT, org

How can I do a Query/Retrieve in JAVA?

爱⌒轻易说出口 提交于 2019-12-08 05:57:41
问题 I need to acces to the DicomObjects that are stored in a DCM4CHEE PACS using JAVA (NetBeans) . So far, I think that I have to use the class DCMqr from DCM4CHE library, but I can't find any example and I don't know how to use it. 回答1: The dcm4che toolkit usage doc for dcmqr is available here The toolkit has a dcmqr class which provides all of the functionality to do a C-FIND or C-MOVE from a DCM4CHEE PACS (or any other DICOM compliant PACS). Simply pass the AE Title, host and port and possibly

How can I do a Query/Retrieve in JAVA?

僤鯓⒐⒋嵵緔 提交于 2019-12-07 16:53:26
I need to acces to the DicomObjects that are stored in a DCM4CHEE PACS using JAVA (NetBeans) . So far, I think that I have to use the class DCMqr from DCM4CHE library, but I can't find any example and I don't know how to use it. Danny D'Amours The dcm4che toolkit usage doc for dcmqr is available here The toolkit has a dcmqr class which provides all of the functionality to do a C-FIND or C-MOVE from a DCM4CHEE PACS (or any other DICOM compliant PACS). Simply pass the AE Title, host and port and possibly other options to the DcmQR main method. GGK You have to include the dcm4che jar-files in

How to import dcm4che library to java project?

别来无恙 提交于 2019-12-06 19:42:17
问题 I am trying to import dcm4che library to my java project, because I want to implement a really simple application which will be able to use this library. (https://github.com/dcm4che/dcm4che) I tried to import this library using Eclipse, IntelliJ and NetBeans. I did some magic with maven (mvn install). And I don't know how to use it. How to begin. Yes, I did use google a lot. I am a beginner in software development so maybe there is a quick and simple solution which I don't know about. 回答1:

How to import dcm4che library to java project?

ε祈祈猫儿з 提交于 2019-12-05 00:53:30
I am trying to import dcm4che library to my java project, because I want to implement a really simple application which will be able to use this library. ( https://github.com/dcm4che/dcm4che ) I tried to import this library using Eclipse, IntelliJ and NetBeans. I did some magic with maven (mvn install). And I don't know how to use it. How to begin. Yes, I did use google a lot. I am a beginner in software development so maybe there is a quick and simple solution which I don't know about. Using Apache Maven is of course the best and easiest option. You will need to add the dcm4che repository as

Migration from dcm4che2 to dcm4che3

丶灬走出姿态 提交于 2019-12-05 00:28:56
问题 I have used below mentioned API of dcm4che2 from this repository http://www.dcm4che.org/maven2/dcm4che/ in my java project. dcm4che-core-2.0.29.jar org.dcm4che2.data.DicomObject org.dcm4che2.io.StopTagInputHandler org.dcm4che2.data.BasicDicomObject org.dcm4che2.data.UIDDictionary org.dcm4che2.data.DicomElement org.dcm4che2.data.SimpleDcmElement org.dcm4che2.net.service.StorageCommitmentService org.dcm4che2.util.CloseUtils dcm4che-net-2.0.29.jar org.dcm4che2.net.CommandUtils org.dcm4che2.net