Examples of SegmentedInputImageStream


Examples of org.dcm4che3.imageio.stream.SegmentedInputImageStream

    }

    @SuppressWarnings("resource")
    private ImageInputStreamImpl iisOfFrame(int frameIndex)
            throws IOException {
        SegmentedInputImageStream siis = new SegmentedInputImageStream(
                iis, pixeldataFragments, frameIndex);
        return patchJpegLS != null
                ? new PatchJPEGLSImageInputStream(siis, patchJpegLS)
                : siis;
    }
View Full Code Here

Examples of org.dcm4che3.imageio.stream.SegmentedInputImageStream

    }

    @SuppressWarnings("resource")
    protected BufferedImage decompressFrame(ImageInputStream iis, int index)
            throws IOException {
        SegmentedInputImageStream siis =
                new SegmentedInputImageStream(iis, pixeldataFragments, index);
        decompressor.setInput(patchJpegLS != null
                ? new PatchJPEGLSImageInputStream(siis, patchJpegLS)
                : siis);
        readParam.setDestination(bi);
        long start = System.currentTimeMillis();
        bi = decompressor.read(0, readParam);
        long end = System.currentTimeMillis();
        if (LOG.isDebugEnabled())
            LOG.debug("Decompressed frame #{} 1:{} in {} ms",
                    new Object[] {index + 1,
                    (float) sizeOf(bi) / siis.getStreamPosition(),
                    end - start });
        return bi;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.