Package edu.wpi.first.wpilibj.image

Examples of edu.wpi.first.wpilibj.image.ParticleAnalysisReport


            BinaryImage filteredImage = convexHullImage.particleFilter(cc);           // find filled in rectangles

            ParticleAnalysisReport[] reports = filteredImage.getOrderedParticleAnalysisReports()// get list of results

            if(reports[1] != null) {
                    ParticleAnalysisReport r = reports[1];
                    System.out.println("x: " + r.center_mass_x_normalized + " y: "  + r.center_mass_y_normalized);
                    System.out.println(r.boundingRectHeight + " " + r.boundingRectWidth);

                    distance = (9/tan23) * 240/r.boundingRectHeight;
                    System.out.println("Distance: " + distance);
View Full Code Here

TOP

Related Classes of edu.wpi.first.wpilibj.image.ParticleAnalysisReport

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.