wbt_raster_perimeter function

Raster perimeter