com.github.charleslzq.dicom.reader.DicomInputParser.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dicom-tools Show documentation
Show all versions of dicom-tools Show documentation
some tool to handle dicom file
package com.github.charleslzq.dicom.reader
import org.dcm4che3.io.DicomInputHandler
import org.dcm4che3.io.DicomInputStream
import java.util.function.Supplier
interface DicomInputParser : DicomInputHandler, Supplier {
fun parse(input: DicomInputStream): T {
input.setDicomInputHandler(this)
input.readDataset(-1, -1)
return get()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy