Abstract:
In order to improve the adaptability and working efficiency of apple harvesting robot used to promptly pick the ripe apples, the harvesting robot has to work continuously at night.But the night vision image of apple has many dark spaces and shadows besides the low resolution.These negative factors bring difficulties for the harvesting robot to work at night.So this paper proposes an edge preserving Retinex algorithm based on guided filtering to enhance apple night vision image.The illumination component is estimated by using the guided filtering which can be used as an edge preserving smoothing operator, and then it is removed from the original image to obtain the reflection component with its own characteristics.After Gamma correction, the 2 parts of the image are synthesized into a new image.Finally the night vision image of apple is enhanced.The specific implementation process is stated as follows: firstly, an apple night vision image of the RGB (red, green, blue) is converted into HSI(hue, saturation, intensity) color space.Then the intensity of the image is processed by the guided filtering which has a function of edge preserving.This algorithm is able to accurately estimate the illumination of the image in the edge area with high contrast.After that, a single scale Retinex algorithm is used for logarithmic transform to get the reflection image.Then, the Gamma corrections are used for reflection component and illumination component.The 2 parts of the image are synthesized into a new image and the resulting image is converted into RGB color space.Finally, the output of the apple image is the target enhancement image.This paper selects 30 apple night vision images collected under fluorescent lighting to make simulation experiment compared with histogram equalization algorithm, homomorphic filtering algorithm and Retinex algorithm based on bilateral filtering.From the visual effects, the 4 methods have a certain degree of enhancement.By using the histogram equalization algorithm, not only the brightness has improved greatly, but also the reflective part of the apple is magnified.And the apple in the dark area is not fully displayed.After using the homomorphic filtering algorithm, the night vision image is enhanced and the enhancement effect of the highlight reflective area is poorer.After using the bilateral filtering algorithm, the edge is also maintained as this proposed algorithm, but there is a circle of white halo at the area of the apple gradient mutation.However, after using the proposed algorithm to enhance the images, the apple fruit is more prominent.Its details are clearly visible in the dark areas and there is no phenomenon of over enhancement.There are more obvious visual effect and clearer outline of the target fruit, and the halo part has been well suppressed.According to the objective performance indices of experiment results, it shows that the mean grey value of the 30 images after processed by the proposed method, compared with the original image, histogram equalization algorithms, homomorphic filtering algorithm and Retinex algorithm based on bilateral filtering, increases averagely by 230.34%, 251.16%, 14.56% and 7.75%, respectively, the standard deviation on average increases by 36.90%, -23.95%, 53.37% and 28.00%, respectively, the information entropy increases averagely by 65.88%, 99.68%, 66.85% and 17.53%, respectively, and the gradient on average increases by 161.70%, 64.71%, 139.89% and 17.70%, respectively.The enhancement effect of proposed algorithm is superior to other 3 algorithms.In addition, compared with the Retinex algorithm based on bilateral filtering, the proposed algorithm has an average reduction of 74.56% in processing time, which reflects the timeliness and efficiency.In conclusion, this algorithm has an unique advantage for night vision image enhancement.So it can satisfy the actual demands and realize the continuous operation of apple harvesting robot at night.