Automatic segmentation of agricultural objects in dynamic outdoor environments

02/24/2017 ∙ by Amy Tabb, et al. ∙ USDA Marquette University 0

Segmentation in dynamic outdoor environments can be difficult when the illumination levels and other aspects of the scene cannot be controlled. Specifically in agricultural contexts, a background material is often used to shield a camera's field of view from other rows of crops. In this paper, we describe a method that uses superpixels to determine low texture regions of the image that correspond to the background material, and then show how this information can be integrated with the color distribution of the image to compute optimal segmentation parameters to segment objects of interest. Quantitative and qualitative experiments demonstrate the suitability of this approach for dynamic outdoor environments, specifically for tree reconstruction and apple flower detection applications.



There are no comments yet.


page 3

page 4

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

Segmentation is a key step in many object detection contexts, and when the result is accurate, can reduce the amount of information presented to subsequent steps of an autonomous computer vision system. This paper describes a method for segmentation of a mobile background unit from tree regions in an orchard setting as part of an automated pipeline to reconstruct and measure the shape of leafless trees for robotic pruning and phenotyping

[22, 23, 24]. Since the images are acquired outdoors, illumination conditions are not stable and may change rapidly and widely. Furthermore, the entire tree reconstruction and measurement process is automated, and hundreds of images must be acquired per tree. Hence, the segmentation method must be robust and not require manual parameter tuning. Since our goal is to use the segmentation step as part of a real-time automation application, the method must also be fast.

The ability to robustly extract the silhouettes of objects of interest is generally an important step in the generation of three-dimensional models of complex objects such as trees [22] and may form a preprocessing step for other tasks, such as flower detection [10]. Existing silhouette extraction techniques based solely on thresholding and morphological characteristics of the object of interest, however, tend to generate unsatisfactory results, particularly with respect to segmentation. This problem, as with most computer vision tasks, is further aggravated in dynamic environments, which include situations such as drastically varying illumination conditions. Hence, we propose a novel method to segment an object (in this case a tree) from a low-texture background, which is robust to significant illumination changes.

The segmentation method proposed in this paper assumes an item of interest in a image is positioned in front of a background material of homogeneous color. It locates the low texture regions of the image using superpixels and models them using a Gaussian Mixture Model (GMM). Pixels in the image are classified according to the GMM and a mask of the background material region is created. The method is fully autonomous and does not require user input or training, other than initial setting of thresholds. The main contribution of this work is an unsupervised method to segment foreground objects in images that is sufficiently robust to operate with various models of cameras under natural outdoor illumination conditions and is fast enough to be used in automation contexts. The method is verified through quantitative and qualitative experiments as well as comparisons to alternative approaches based on Otsu’s method

[17] and adaptive thresholding mechanisms.

The remainder of this paper is organized as follows. Section 2 presents a brief overview of methods for the segmentation of foreground objects with a particular focus on agricultural applications. Section 3 describes our proposed approach. A comprehensive evaluation comparing the performance of our methods to alternative approaches to foreground object segmentation is given in Section 4. Finally, Section 5 concludes the paper and discusses possible future research directions.

2 Related work

There is a significant amount of related work on segmentation in dynamic environments for the purposes of foreground detection as recently reviewed by Bouwmans [6]. Traditionally, in foreground detection, the assumption is that the background can be modeled because the cameras observing a scene are not moving. The background image hence remains relatively static and objects that move with respect to the camera are considered part of the foreground. A popular approach for foreground, or motion, detection is that of Stauffer and Grimson [21], in which each image pixel is modeled as a mixture of Gaussians. Various extensions of [21], from a hierarchical approach for real-time execution [19]

to models that consider non-Gaussian distributions

[8], have been explored as well for the context of relatively static backgrounds. In the scenarios under consideration in this work, however, the background may change considerably, so motion detection approaches are not applicable.

In the agricultural context, many applications require the segmentation of plants from soil with a moving camera; this problem has been recently surveyed by Hamuda et al. [13]. Concerning applications of tree segmentation, Byrne and Singh [7] use co-occurrence statistics to oversegment images into tree versus non-target tree regions for use in autonomous diameter measurement for a automated forestry application. In a similar application, Ali [2]

uses a combination of color and texture features fed into an artificial neural network and k-nearest neighbor classifiers to perform classification of pixels into tree and non-tree classes. Similar to our work, Botterill

et al. in [5] also use a blue background for their design of a robotic grapevine pruner. However, their unit is an over-the-row unit and does not have to navigate the illumination challenges as we do with a one- or two-sided unit. In [5]

, training data is hand-labeled into three classes: background, wire, foreground, and color features and used to train a support vector machine (SVM), which is later used for classification. Zheng

et al. [27] address segmenting root material from gels by using a harmonic background subtraction method with hysteresis thresholding.

Mobile background units, such as the ones used in our work, have been used for various purposes, from apple harvest [11, 9, 20], to grape pruning [5]

, and tree shape estimation

[22, 23, 24]. The advantage of using such a background, especially with trees planted in rows, is that the influence of neighboring rows of trees is eliminated. Some units, such as those shown in [5, 11, 9, 20], are over-the-row units to shield the imaging area from variations in illumination from the environment. Another option has been to acquire images at night with artificial illumination to create a static background and mitigate illumination variation, such as in [3] to detect cherry, in [16] to detect tree branches using RGB-D cameras, and in [26, 15] to detect apple fruit. Nighttime-only operation, however, significantly restricts the practical applicability of any agricultural robotic system.

3 Method description

We assume a low-texture background object is present in each image, and we model the hue component of this background object according to a Gaussian mixture model with components: , where and

are the mean and variance of the

-th mixture component and

is its corresponding weight. In the following steps, we show how we estimate this distribution and then use it to assign probabilities for each pixel in the image. We also assume that the object of interest is positioned between the background object and the camera (see Figure

1a). Regions that extend beyond the background object are truncated. Algorithm 1 shows an overview of the proposed approach. Each step of the algorithm is explained in detail in the following subsections. While the first two steps of the algorithm are independent and can be performed in parallel, the remaining steps depend upon one another and hence need to be performed in order. The sequence of steps is illustrated in Figure 1.

1:Image in hue-saturation-value (HSV) color space
2:Segmented image
3:Compute the set of superpixels using the SEEDS method [25] and find the subset of low-texture superpixels.
4:Generate a binary image , by thresholding the hue channel using Otsu’s algorithm.
5:Determine GMM , which represents the background, based on and .
6:Generate label image by assigning labels to individual output pixels according to the GMM.
7:Create a mask to eliminate regions outside of the background object.
Algorithm 1 Proposed segmentation approach

3.1 Step 1: Computation of low-texture superpixels

The first step of our approach consists of converting the image to the HSV color space and partitioning it into superpixels. We have chosen to compute the superpixels using the superpixels extracted via energy-driven sampling (SEEDS) method proposed in [25] and implemented in OpenCV [1]. In this superpixel approach, the image is divided into a grid pattern, which serves as initial superpixel assignment. The superpixel assignments are refined by iteratively modifying their boundaries.

Starting from an initial superpixel division of a grid, in SEEDS, pixels change label as a result of a maximizing a cost function based on a color likelihood term and optional shape prior. We set the parameters of the SEEDS algorithm such that low texture regions have superpixels whose shape is unchanged from the initial grid assignment. That is, let be the set of superpixels generated by SEEDS. Then there is a set of superpixels , which are rectangular in shape. These are the superpixels which are unchanged from the initial assignment and correspond to low-texture regions. Figures (a)a and (b)b show the original RGB image and the hue channel of its corresponding HSV representation. Figure (c)c then shows the superpixels generated according to our proposed procedure. As the image shows, most superpixels on the background object are rectangular in shape.

3.2 Step 2: Generation of thresholded hue image using Otsu’s algorithm

We then generate the binary image by thresholding the hue channel of the HSV image using Otsu’s algorithm [18]. In the binary image, pixels with value below the threshold value are black and the remaining pixels are white. As explained in the next section, the image is used to generate hypotheses of low-texture regions in the image, since the color of the low-texture background object is relatively constant. In our application, the blue background object has a higher hue value than other common colors in the images such as brown, gray, or green, which facilitates the application of the proposed approach. We are not limited to a single background color though. As long as the hue value of the majority of the pixels in the background differ from those of the foreground object, can be generated using multi-level thresholding algorithms [14].

3.3 Step 3: Estimation of the distribution of the background

The first two steps consisted of coarse detectors for the blue background. The superpixel approach in step one finds low texture regions, while found in step two indicates regions likely to be the background judging by relative hue as compared to the rest of the image. We now combine the information from these two steps to generate a more robust background detector.

We determine regions where overlaps superpixels in using the procedure summarized in Algorithm 2. Briefly, the algorithm iterates through the superpixels in . If the percentage of white pixels in the corresponding area of the thresholded image exceeds a value , then the superpixel is added to a set . The set hence consists of all the superpixels which belong to a low-texture region as determined by the SEEDS algorithm and by its constant color.

All of the pixel locations in the set of superpixels

are then used to estimate the probability distribution of the background pixels. Let

be the value of the th pixel in the hue image. We assume the pixel intensities of the background material regions over the whole image can be represented by a mixture of normal distributions. That is, the probability density is



is the Gaussian probability density function


The parameters of the distribution, , , and

, may be obtained using the expectation-maximization (E-M) algorithm from the pixels in

. Initial values of the distribution are estimated using k-means clustering. However, E-M can take a long time to converge with a large number of samples, as is the case when the number of pixels in

is large. We use a faster approach than E-M to create a GMM with satisfactory results as follows. Essentially, the information from the superpixels is grouped into clusters, and then the components of the GMM are computed from the clusters using all of the pixels in the superpixels that compose those clusters. First, the sample means of the individual superpixels in are clustered into groups using the kmeans++ algorithm [4]. Then, from these clusters, the means and variances of the clusters are determined from all of the pixels contained in all the superpixels within that cluster. Finally, the weights are computed, such that if the number of superpixels in cluster is , then .

1:Set of low-texture superpixels and thresholded hue image
2:Set of background superpixels
4:for each superpixel  do
5:      number of white pixels in for the region of .
6:     if  then
Algorithm 2 Determination of background pixels

3.4 Step 4: Pixel label assignment based on the background distribution

The hue image is compared to the GMM to generate an image of pixel labels as follows. Let be the likelihood of as predicted by the Gaussian Mixture Model, and let be a corresponding threshold value. Then, the pixel labels are created according to


Since the pixels in the set were used to generate the background model, their labels can be automatically assigned to during model computation (Step 3) and do not need to be revisited in this step. This has the dual benefit of reducing computation time as well as avoiding spurious noisy pixels in that would make the overall method more sensitive to the value of the threshold .

3.5 Step 5: Create mask to eliminate regions outside the background object

The final step creates a mask image , in which regions including the object of interest, in this case the tree, and the background object, are labeled white and all other regions are labeled black. This mask is generated over the course of three steps. First, is set to the inverse of and small connected components with area smaller than a threshold of are removed from . These components typically represent false background detections in the sky or the surrounding natural environment. It remains to connect the white sections of . The contours for each connected component are found, and then for each point on the contour, the closest point on a different contour is found and a line is drawn between the contours. To conclude, all of the holes are filled in .

The mask is applied to the pixel label image so that if the th pixel of is , then this pixel is outside the region of interest and the corresponding pixel in is labeled accordingly. In this application, we label those pixels and the pixels inside the region of interest are labeled . Alternatively, our method allows pixels that do not belong to the region of interest to be labeled using a special marker value so that downstream processing steps could recognize them and treat them accordingly.

Figure 1: [Best viewed in color] LABEL:sub@sf:original Original RGB image showing the object of interest (tree) in front of the background object. LABEL:sub@sf:hue Hue channel. LABEL:sub@sf:superpixels Close-up of portion of the original image (top portion of branch) with superpixels overlaid in red. LABEL:sub@sf:T Threshold result from step 2 (). LABEL:sub@sf:Rect The set of superpixels is shown in white, indicating low texture regions. LABEL:sub@sf:B Set of superpixels , where white pixels indicate locations where the GMM is estimated in the hue image. LABEL:sub@sf:Ptree Label image after label assignment step. LABEL:sub@sf:final after application of the mask in step 5.

4 Experiments

We evaluated our proposed approach on six datasets containing a total of 1001 images. As shown in Table 1, five of these datasets were acquired outdoors with different camera models and resolutions, and one of them was acquired indoors. Most datasets consisted of images collected by multiple cameras, and for Dataset 3 each camera has a different aperture setting. These datasets reflect a range of illumination conditions. All of the datasets consist of images of leafless fruit trees, although Dataset 5 is composed of images of flowering apple trees.

We found that the following parameters showed satisfactory performance for all of the datasets: threshold parameter , mask generation parameter and threshold . The number of distributions in the GMM was set to . The SEEDS superpixel was configured for number iterations = 10, number histogram bins = 2, number of superpixels = 16,000, number of levels = 1, prior = 0, and double step = false. Also, basic morphological operations could have been applied to our results to eliminate noisy detections, but in order to present the method in a general sense, we did not apply any further processing steps past step 5. Parameter selection should take into account the size of the background unit in the images, as well as the thickness of the object to be detected.

Dataset Camera model No. cameras Image size Environment Date and time
1 Pt. Grey 2 indoor 11/9/2016 10:20 am
2 Pt. Grey 2 outdoor 3/23/2017 10:19 am
3 Pt. Grey 3 outdoor 4/4/2016 1:36pm
4 Pt. Grey 2 outdoor 4/3/2017 5:13 pm
5 GoPro HERO Black 3 outdoor 4/13/2017 1:16pm
6 JAI BB-500 GE 1 outdoor 2/4/2015 11:20 am
Table 1: Description of the six datasets used in this paper. The Pt. Grey camera model is BFLY-PGE-23S6C-C.

4.1 Background composition and construction

While the choice of whether to have a one-sided, or over-the-row background strongly depends on the application, we chose to use a range of one-sided background designs, as opposed to over-the-row units used in [5, 11, 9, 20] for a few reasons, most of which revolve around flexibility with data acquisition. The first reason is that we consider acquiring data in a variety of systems, some in orchards we manage, and some in orchards we have never visited. Over-the-row units need to be built for a specific block spacing and tree height, whereas our mobile backgrounds have a small footprint, and in the worst case will be too short and not capture the tops of trees in images, versus damaging the tops of trees with an over-the-row unit. In addition, some orchard blocks have supports that meet at the top. Over-the-row units would have trouble navigating these physical obstacles. Finally, another advantage of our one-sided background is that we do not require supplementary illumination to acquire data.

In our experiments, we used a range of designs for the background as illustrated in Figure 2. In general, the only constraint was that the tree regions all be covered by the background, when viewed by the camera. We have used a range of materials as well, but over time have most frequently used marine heavyweight upholstery material (Sunbrella, Ocean Blue), because these materials are mold and fade resistant. In Figure (a)a, a very simple background is created with hooks on the walls and blue material. Figure (b)b shows another one of our background designs, which we constructed for data acquisition at a site at a significant distance from the laboratory for a phenotyping application. The characteristics of that site include windy conditions, narrow trees, and a set of trees that droop on the ground. For these reasons, a v-shaped frame is bolted to an all-terrain vehicle, the material is riveted to the frame, and a ground section was constructed of the same fabric and frame material.

Figure (c)c shows an early version of our background trailer constructed for the pruning application; a frame was built on the trailer and painted blue, and two wings, a lower piece, and top piece were constructed of similar materials as (b)b. The background trailer from (c)c was used in Figure (d)d, this time for phenotyping, by the addition of a ground section to deal with trees that droop on the ground. In addition, blue material was glued to the frame so that the color was uniform. The background units that have ground panels are only used for phenotyping; while placing the ground panels does require some time it is small. Since the information returned from the robot vision system is much richer than that of manual measurement, the setup time is not seen as a barrier to using the system within the phenotyping context.

(a) Background from Dataset 1: laboratory setup
(b) Background from Dataset 4
(c) Background from Dataset 6
(d) Background from Dataset 2
Figure 2: [Best viewed in color] Different background unit designs used in this paper. They ranged from hanging blue fabric on laboratory walls and floors (a)a, mounting a frame on a all-terrain vehicle (b)b, to a frame mounted on a small trailer (c)c and (d)d .

4.2 Quantitative analysis

Precision Recall F-score
Image AGT AMT Otsu Ours AGT AMT Otsu Ours AGT AMT Otsu Ours
1 0.022 0.025 0.204 0.361 0.505 0.591 0.799 0.739 0.042 0.048 0.325 0.485
2 0.586 0.513 0.760 0.543 0.614 0.705 0.776 0.959 0.600 0.594 0.768 0.693
3 0.085 0.086 0.687 0.593 0.519 0.596 0.678 0.846 0.146 0.151 0.683 0.697
4 0.615 0.582 0.683 0.665 0.623 0.753 0.886 0.932 0.619 0.656 0.771 0.776
5 0.468 0.461 0.693 0.385 0.419 0.451 0.362 0.903 0.442 0.456 0.476 0.540
6 0.674 0.661 0.728 0.481 0.671 0.739 0.803 0.985 0.673 0.698 0.764 0.646
7 0.894 0.856 0.977 0.960 0.258 0.333 0.684 0.861 0.400 0.480 0.805 0.907
8 0.931 0.889 1.000 0.969 0.262 0.342 0.750 0.902 0.409 0.495 0.857 0.934
9 0.805 0.761 0.934 0.876 0.320 0.405 0.681 0.896 0.458 0.529 0.787 0.886
10 0.913 0.860 0.996 0.971 0.261 0.339 0.695 0.842 0.406 0.487 0.819 0.902
11 0.818 0.775 0.981 0.884 0.305 0.398 0.745 0.906 0.445 0.526 0.847 0.895
12 0.838 0.793 0.963 0.904 0.303 0.392 0.706 0.877 0.445 0.524 0.815 0.890
Mean 0.638 0.605 0.800 0.716 0.422 0.504 0.714 0.887 0.424 0.470 0.726 0.771
Median 0.739 0.711 0.847 0.771 0.370 0.428 0.725 0.899 0.443 0.510 0.779 0.831
Table 2: Quantitative results comparing Adaptive Gaussian Threshold (AGT), Adaptive Mean Threshold (AMT), Otsu’s method on the hue image, and our proposed approach in precision, recall, and the F-score. Best results are shown in boldface.

In order to quantify the performance of our approach, we compare it with three existing methods: Adaptive Gaussian Thresholding (AGT), Adaptive Mean Thresholding (AMT) [12], and Otsu’s method [17] evaluated on the hue image. For the AGT and AMT methods, the block size was set to 11 and the constant subtraction parameter C was set to 2. Since these comparison methods do not take into account the region outside the background material, which would heavily influence the number of false positives, we also apply our masking operation, Step 5 from Algorithm 1 to the resulting images. It is important to emphasize that while Step 5 substantially simplifies the thresholding task for the alternative approaches, it is the greatest contributor to incorrectly segmented pixels in our proposed approach. Finally, it should be noted that no knowledge of the target bounding box is used in the evaluation.

Ground truth data was generated by hand-labeling tree versus non-tree pixels in 12 images with an image editor. The images of the quantitative results are from Datasets 3 and 5, which reflect two different imaging environments. In Dataset 3, the trees are leafless and small and the background material is taller than the trees while also covering a portion of the ground. In addition, there is a significant range of gray-level variation between the images (displayed in Figure 4). Dataset 5 shows a much bigger background unit, and the trees have leaves as well as flowers. There is no portion of the background that is on the ground (see Figure 5 for examples). Since the method was intended to segment regions that are between the camera and the blue background material, regions outside of the background unit are marked as non-tree, even if a tree is present. The exception is the top of the background, as the sky is often marked as part of the background, and recovering the entire height of the tree is desirable.

Table 2 summarizes the performance of the comparison approaches as well as our approach in terms of the precision, recall, and the score. As the table shows, performance of the adaptive thresholding methods was not satisfactory. The performance of Otsu’s method in conjunction with our Step 5 mask, is generally higher in terms of precision but lower in terms of recall. The recall values for Otsu’s methods are lower than that of our method for 11 out of the 12 images. Although its precision is higher for 11 out of the 12 images, for Images 7-12, which correspond to Dataset 5, the precision is on average only 0.048 higher than that of our proposed approach. Nonetheless, the score is higher on average using our method, particularly for Dataset 5, which included leaves and flowers. In addition, if the mask from Step 5 is not used in the Otsu method, its mean precision is reduced to , with a corresponding scores , since its recall remains essentially unchanged at .

In order to demonstrate that the performance of the method is relatively stable with respect to the threshold , Figure (a)a shows a plot of the mean precision, recall, and score for a range of values. As the figure indicates, the score of the method varies at most for this range of . The choice of the number of distributions of the Gaussian mixture model, , was also analyzed using the quantitative dataset and the results are shown in Figure (b)b. The plot shows that for the quantitative comparison dataset, if comparable results are obtained.

(a) Sensitivity of
(b) Sensitivity of
Figure 3: [Best viewed in color] Sensitivity analysis of the proposed method to different values of threshold and , the number of distributions in the Gaussian Mixture Model. Values for average precision, recall, and score are displayed for the set of images used for the quantitative experiments.
Figure 4: [Best viewed in color] Images of trees in front of a low-texture blue background with varying illumination levels (first column), hand-labeled ground truth (second column), the corresponding segmentations obtained using the proposed approach (third column), and the segmentation result used to mask the original image (fourth column), for the first half of the quantitative dataset (images 1-6).
Figure 5: [Best viewed in color] Images of trees in front of a low-texture blue background with varying illumination levels (first column), hand-labeled ground truth (second column), the corresponding segmentations obtained using the proposed approach (third column), and the segmentation result used to mask the original image (fourth column), for the second half of the quantitative dataset (images 7-12).

4.3 Qualitative analysis

The proposed method was also evaluated on images acquired from a range of conditions, including four different background unit designs in three different locations, from 2015-2017. The datasets are described in Table 1 and images and results are displayed in Figures 6-9. Examples of Dataset 3 are shown in Figure 4, while Dataset 5 examples are shown in Figure 5.

The images in these datasets have differences in the distributions of hue components. Figure 10 shows hue histograms from the six datasets, and demonstrates that while all have peaks corresponding to the background unit, some datasets have multiple peaks, such as Dataset 2 and 4. Multiple peaks may be present for a few reasons, such as different colors used in the background unit (Dataset 6), illumination differences across the background, or the presence of other large constant color objects such as the sky. Overall, despite the presence of these multiple histogram peaks, as the figures show, the proposed method segments the objects of interest in the various different scenarios accurately. As highlighted in Section 3.2, however, if there are scenarios in which simple histogram thresholding is not viable, multi-level methods could be employed.

Figure 6: [Best viewed in color] Results from Dataset 1, acquired indoors. Original images (first column), the corresponding segmentations obtained using the proposed approach (second column), and original image masked with the segmentation result (third column).
Figure 7: [Best viewed in color] Results from Dataset 2, acquired outdoors with significant shadow, sun, and sideways camera orientation. Original images (first column), the corresponding segmentations obtained using the proposed approach (second column), and original image masked with the segmentation result (third column).
Figure 8: [Best viewed in color] Results from Dataset 4, acquired outdoors with significant shadows and upside down camera orientation. Original images (first column), the corresponding segmentations obtained using the proposed approach (second column), and original image masked with the segmentation result (third column).
Figure 9: [Best viewed in color] Results from Dataset 6, acquired outdoors with a background unit with two different blue colors (fabric versus rigid painted areas). Original images (first column), the corresponding segmentations obtained using the proposed approach (second column), and original image masked with the segmentation result (third column).
Figure 10: Examples of hue histograms from images from each of the six datasets. Although all of the histograms show a clear peak corresponding to the background unit, some datasets have multiple peaks (such as Datasets 2 and 4).

4.4 Suitability in real-time automation contexts

All of the results shown in this paper were generated on a workstation with one 12-core processor and 192 GB of RAM. To the extent possible, implementation is parallelized with OpenMP. Run times for the entire dataset and on the per-image basis are shown in Table 3. These times include loading each image and writing two result images for each image in the dataset, the binary result and the original image multiplied by the binary image for visualization purposes, such as shown in the third and fourth columns in Figures 4-5. From Table 3, datasets containing larger images, such as Dataset 5, take approximately twice as long to run than smaller images. This relationship is not surprising considering that the area of the images in Dataset 5 is approximately the area of the images in the other datasets. In all the scenarios under consideration the low run times enable this method to be used in a real-time automation context.

Dataset Number of images Total run time (s) average time per image (ms)
1 126 15.01 119.10
2 228 27.63 121.20
3 171 21.67 126.70
4 228 29.14 127.79
5 154 36.42 236.52
6 94 12.29 130.74
Table 3: Run times of the proposed method for the six datasets, for the whole dataset as well as on an average, per-image basis.

5 Conclusion

This paper proposed a method to perform automatic segmentation of objects of interest in dynamic outdoor conditions. We are interested in automation scenarios in which an object of interest must be segmented from a low-texture background such as in tree reconstruction. Our method estimates a Gaussian mixture model of the low-texture background, which may include the sky, by fusing information from its color distribution and from superpixels extracted from the background. As a result, the proposed method is particularly robust to substantial variations in illumination conditions. We illustrated the performance of the proposed segmentation method in quantitative and qualitative experiments, and showed how its low run times enabled its use in real-time automation contexts.


  • [1] Opencv. version 3.0.
  • [2] W. Ali. Tree detection using color, and texture cues for autonomous navigation in forest environment. Master’s thesis, Umeå University, 2006.
  • [3] S. Amatya, M. Karkee, A. Gongal, Q. Zhang, and M. D. Whiting. Detection of cherry tree branches with full foliage in planar architecture for automated sweet-cherry harvesting. Biosystems Engineering, 146:3–15, 2016.
  • [4] D. Arthur and S. Vassilvitskii. k-means++: The advantages of careful seeding. In Proceedings of the eighteenth annual ACM-SIAM symposium on Discrete algorithms, pages 1027–1035. Society for Industrial and Applied Mathematics, 2007.
  • [5] T. Botterill, S. Paulin, R. Green, S. Williams, J. Lin, V. Saxton, S. Mills, X. Chen, and S. Corbett-Davies. A robot system for pruning grape vines. Journal of Field Robotics, pages n/a–n/a, 2016.
  • [6] T. Bouwmans. Traditional and recent approaches in background modeling for foreground detection: An overview. Computer Science Review, 11–12:31 – 66, 2014.
  • [7] J. Byrne and S. Singh. Precise image segmentation for forest inventory. Carnegie Mellon University, The Robotics Institute, 1998.
  • [8] A. B. Chan, V. Mahadevan, and N. Vasconcelos. Generalized stauffer–grimson background subtraction for dynamic scenes. Machine Vision and Applications, 22(5):751–766, 2011.
  • [9] J. R. Davidson, A. Silwal, C. J. Hohimer, M. Karkee, C. Mo, and Q. Zhang. Proof-of-concept of a robotic apple harvester. In Intelligent Robots and Systems (IROS), 2016 IEEE/RSJ International Conference on, pages 634–639. IEEE, 2016.
  • [10] P. Dias, A. Tabb, and H. Medeiros. Apple flower detection using deep convolutional networks. Computers in Industry, n/a(n/a):n/a, 2018.
  • [11] A. Gongal, A. Silwal, S. Amatya, M. Karkee, Q. Zhang, and K. Lewis. Apple crop-load estimation with over-the-row machine vision system. Computers and Electronics in Agriculture, 120:26–35, 2016.
  • [12] R. Gonzales and R. Woods. Digital Image Processing. Addison-Wesley Publishing Company, 1992.
  • [13] E. Hamuda, M. Glavin, and E. Jones. A survey of image processing techniques for plant extraction and segmentation in the field. Computers and Electronics in Agriculture, 125:184 – 199, 2016.
  • [14] D.-Y. Huang and C.-H. Wang. Optimal multi-level thresholding using a two-stage otsu optimization approach. Pattern Recognition Letters, 30(3):275 – 284, 2009.
  • [15] R. Linker. A procedure for estimating the number of green mature apples in night-time orchard images using light distribution and its application to yield estimation. Precision Agriculture, 18(1):59–75, 2017.
  • [16] W. Liu, G. Kantor, F. De la Torre, and N. Zheng. Image-based tree pruning. In Robotics and Biomimetics (ROBIO), 2012 IEEE International Conference on, pages 2072–2077. IEEE, 2012.
  • [17] N. Otsu. A threshold selection method from gray-level histograms. IEEE Transactions on Systems, Man, and Cybernetics, 9(1):62–66, Jan 1979.
  • [18] N. Otsu. A threshold selection method from gray-level histograms. IEEE Transactions on Systems, Man, and Cybernetics, 9(1):62–66, Jan 1979.
  • [19] J. Park, A. Tabb, and A. C. Kak. Hierarchical data structure for real-time background subtraction. In 2006 International Conference on Image Processing, pages 1849–1852, Oct 2006.
  • [20] A. Silwal, A. Gongal, and M. Karkee. Apple identification in field environment with over the row machine vision system. Agricultural Engineering International: CIGR Journal, 16(4):66–75, 2014.
  • [21] C. Stauffer and W. E. L. Grimson. Adaptive background mixture models for real-time tracking. In Computer Vision and Pattern Recognition, 1999. IEEE Computer Society Conference on., volume 2. IEEE, 1999.
  • [22] A. Tabb. Shape from silhouette probability maps: Reconstruction of thin objects in the presence of silhouette extraction and calibration error. In 2013 IEEE Conference on Computer Vision and Pattern Recognition, pages 161–168, June 2013.
  • [23] A. Tabb. Shape from inconsistent silhouette: Reconstruction of objects in the presence of segmentation and camera calibration error. PhD thesis, Purdue University, 2014.
  • [24] A. Tabb and H. Medeiros. A robotic vision system to measure tree traits. In 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 6005–6012, Sept 2017.
  • [25] M. Van den Bergh, X. Boix, G. Roig, and L. Van Gool. Seeds: Superpixels extracted via energy-driven sampling. International Journal of Computer Vision, 111(3):298–314, 2015.
  • [26] Q. Wang, S. Nuske, M. Bergerman, and S. Singh. Automated crop yield estimation for apple orchards. In International Symposium on Experimental Robotics, Quebec City, Canada, 2012.
  • [27] Y. Zheng, S. Gu, H. Edelsbrunner, C. Tomasi, and P. Benfey. Detailed reconstruction of 3d plant root shape. In 2011 International Conference on Computer Vision, pages 2026–2033, Nov 2011.