Shoreline detection method by combining HSV spatial water image feature
Mingyang Peng,Jianhua Wang,Xiangxin Wen,Xiaoyi Cong
DOI: https://doi.org/10.11834/jig.170498
2018-01-01
Journal of Image and Graphics
Abstract:Objective The application of unmanned surface vehicles in inland rivers has broad prospects,such as water quality monitoring and hydrographic surveying and mapping.However,the existing visual research on unmanned surface vehicles is mostly based on sea environment.When unmanned surface vehicles navigate autonomously,the shoreline of an inland river is equivalent to the skyline detected in the sea environment,which has great significance for visual navigation of unmanned surface vehicles.Shoreline can be used for image partition,finding a water surface area,obstacle avoidance navigation,and estimating the motion state of unmanned surface vehicles.Shoreline is an important reference for the autonomous navigation of unmanned surface vehicles.Although a shoreline is similar to a skyline,the background of a shoreline is more complex than that of a skyline due to the influence of water waves,reflected light,and inverted image.The existing skyline detection method is unsuitable for shoreline detection.Inspired by the color perception mechanism of the human visual system,we propose to detect shoreline based on hue,saturation,and value (HSV).Method We collect water surface images by using the camera of an unmanned surface vehicle and analyze the image features in the HSV color space.The saturation of a land area is higher than that of sky and water areas.When the light situation is dark,the hue information cannot be used.The land area in an image is darker than other areas,but the image can still be used for shoreline detection.On the basis of this analysis result,we propose a shoreline detection method by combining HSV spatial water image features.First,we transform an RGB image into an HSV color space after Gaussian filtering.The Gaussian model can effectively overcome the interference caused by a change in illumination and the disturbance of a water image.Components in the HSV color space are selected by the weight of the land area features,and the selected components are enhanced nonlinearly to improve their contrast.Second,we segment the enhanced image and define each region as a bottom image.Third,we analyze the features of rows and columns in the original saturation image and extract land areas with high saturation as template images.We cover each bottom image with the template image and select the bottom image by the overlap area ratio.After overlapping the selected bottom image,we obtain the final land area image.Finally,we obtain the absolute shoreline by using an edge detection operator and removing the overlapping line of the sky and land in the topside.Result Water surface images with different light intensities in different seasons are collected.When we select images during middays of spring and autumn,the detected shorelines are clear and complete.When we select images during afternoon,the backgrounds of the surface images are complex due to poor lighting,but we still can accurately detect shorelines.When we select reflection images of water surfaces to perform a comparative experiment,the proposed method can effectively remove the reflection interference of the water surfaces.When we select images of water surfaces during sunset,during which the light tends to be red,the proposed method is unaffected by the red light.When we select images of water surfaces with sun reflection,the proposed method can remove the sun reflection in the images.Therefore,we can conclude that the proposed method has strong anti-interference.The experimental results reveal that the method can accurately detect shorelines in different light environments and ensure that the contours of the shorelines are clear and complete.The real-time result of the method can reach 1 frame/s.Conclusion The proposed method can effectively detect shorelines in different light environments and ensure that their contours are clear and complete.The method can be applied for visual navigation of unmanned surface vehicles.