Package com.marimon.image.framework

Examples of com.marimon.image.framework.PeakFinder


     */
    public BigDecimalMatrixSignal multiplyToFitBounds(MatrixSignal signal,
            BigDecimal low, BigDecimal high) {
        Sample2D[][] result = new Sample2D[signal.getSizeX()][signal.getSizeY()];

        PeakFinder peakFinder = new PeakFinder(signal);
        // equlas to lowest value of signal
        BigDecimal offset = peakFinder.getDeepestValley().bigDecimalValue();
        BigDecimal signalWidth = peakFinder.getHighestPeak().bigDecimalValue()
                .subtract(offset);
        BigDecimal boundWidth = high.subtract(low);

        for (int j = 0; j < signal.getSizeY(); j++) {
            for (int i = 0; i < signal.getSizeX(); i++) {
View Full Code Here


        System.gc();

        BigDecimalMatrixSignal corr = MatrixSignalFactory.getInstance()
                .multiplyToFitBounds(correlation.getCrossCorrelation(),
                        new BigDecimal(0), new BigDecimal(255));
        PeakFinder peakFinder = new PeakFinder(corr);
        System.out.println(peakFinder);
        Point2D position = peakFinder.getPeaks()[0].getPoint();
        System.out.println("Peak found at " + position.getX() + ","
                + position.getY());

        JPEGImageWriter writer = new JPEGImageWriter(MatrixSignalFactory
                .getInstance().getShortFromBigDec(corr));
View Full Code Here

TOP

Related Classes of com.marimon.image.framework.PeakFinder

Copyright © 2018 www.massapicom. 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.