Skip to contents

Create vector/polygon representation of valley without holes from raster mask

Usage

get_valley_polygon(valley_mask)

Arguments

valley_mask

raster mask of valley pixels

Value

(multi)polygon representation of valley area as a simple feature geometry without holes