public class Testjpg2Dcm {
public static void main(String[] args) throws IOException, ImageReadException, ImageWriteException, Exception {
JFileChooser choix = new JFileChooser();
choix.setFileSelectionMode(JFileChooser.FILES_ONLY);//sélectionne que le répertoire
int retour = choix.showOpenDialog(null);
if(retour == JFileChooser.APPROVE_OPTION){
File fileInput = choix.getSelectedFile();
JFileChooser saveDicom = new JFileChooser();
saveDicom.setFileSelectionMode(JFileChooser.FILES_ONLY);
saveDicom.setMultiSelectionEnabled(false);
saveDicom.showSaveDialog(null);
File fileOutput =saveDicom.getSelectedFile();
jpgdcm jpg = new jpgdcm(fileInput,fileOutput);
}
}
Here solving xml to dcm
--
You received this message because you are subscribed to a topic in the Google Groups "dcm4che" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dcm4che/QGwPttnOYBc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at http://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/groups/opt_out.
ROWS * COLUMNS * NUMBER_OF_FRAMES * SAMPLES_PER_PIXEL * (BITS_ALLOCATED/8)
This pixel Data can 32bits in integer (int).