Adding box_width and box_height attributes to the GrainsAnalyzer class would enable the exclusion of detected grains which have centroids outside of this box. This would improve the accuracy by limiting skew due to partial grains being interpreted as full grains.
Adding
box_widthandbox_heightattributes to theGrainsAnalyzerclass would enable the exclusion of detected grains which have centroids outside of this box. This would improve the accuracy by limiting skew due to partial grains being interpreted as full grains.