Examples of Sample2D


Examples of com.marimon.image.framework.datamodel.Sample2D

    public ShortMatrixSignal getShortFromBigDec(BigDecimalMatrixSignal signal) {
        ShortSample2D[][] samples = new ShortSample2D[signal.getSizeX()][signal
                .getSizeY()];
        for (int i = 0; i < signal.getSizeX(); i++) {
            for (int j = 0; j < signal.getSizeY(); j++) {
                Sample2D samp = signal.getPixel(i, j);
                Point2D point = samp.getPoint();
                samples[i][j] = new ShortSample2D(point, new ShortSampleValue(
                        samp.getValue().shortValue()));
            }
        }
        return new ShortMatrixSignal(samples);
    }
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.