https://github.com/dermatologist/dicoderma
DICOM for Dermatology
https://github.com/dermatologist/dicoderma
dermatology dicom dicom-images
Last synced: about 2 months ago
JSON representation
DICOM for Dermatology
- Host: GitHub
- URL: https://github.com/dermatologist/dicoderma
- Owner: dermatologist
- Created: 2020-05-27T16:51:55.000Z (over 5 years ago)
- Default Branch: feature/java-8
- Last Pushed: 2022-11-16T01:42:14.000Z (almost 3 years ago)
- Last Synced: 2025-02-08T10:45:24.044Z (8 months ago)
- Topics: dermatology, dicom, dicom-images
- Language: Java
- Homepage: https://dermatologist.co.in
- Size: 109 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dicoderma - A JAVA library that marries dermatology to DICOM
## Why dicoderma
Dermatology never really embraced DICOM for image management. Dicoderma is an attempt to narrow the rift by freeing dermatologists from the overhead of DICOM compliant infrastructure but gives some of the advantages like storing patient metadata with images. Dicoderma facilitates this by mapping DICOM tags to EXIF USER_CONTENT. You can also convert JPEG to DCM.
* uses Java8 and maven
* Install locally by ``` mvn clean install ```## Usage
### Write metadata to a file
```
dicomSCModel = new DicomSCModel();
dicoderma = new Dicoderma();
dicomSCModel.PatientName = "Mickey Mouse";
File filein = new File("src/test/resources/test.jpg");
File fileout = new File("src/test/resources/test-out.jpg");
fileout.delete();
dicoderma.putDicomModelToFile(filein, fileout, dicomSCModel);```
### Read metadata from file
```
dicomSCModel = new DicomSCModel();
dicoderma = new Dicoderma();
dicomSCModel = dicoderma.getDicodermaMetadataFromFile(file);
```### Write dcm file
```
File filein = new File("src/test/resources/test-out.jpg");
File fileout = new File("src/test/resources/test.dcm");
String[] metadata = dicoderma.getModelAsStringArray(dicomSCModel);
fileout.delete();
dicodermaJpg2Dcm.convertJpgToDcm(filein, fileout, metadata);```
### See [dit4ij - the dermatology image tagger for ImageJ/Fiji](https://github.com/dermatologist/dit4ij)
## Author
* [Bell Eapen](https://nuchange.ca)