有人可以帮我了解如何使用jdeli将多帧dicom文件(jpeg 2000压缩)转换为jpeg。 我能够提取一帧但我想知道如何提取所有帧?
答案 0 :(得分:0)
File inputFile = new File("Your file location");
DicomDecoder dec = new DicomDecoder();
for (int i = 1; i <= dec.getFrameCount(inp); i++) {
//note frame count startfrom 1
BufferedImage image = dec.read(i,inputFile);
//now you have the bufferedimage and do whatever you wanted
}