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);