From 67cec06a3442a29686808b9763cc969120d65822 Mon Sep 17 00:00:00 2001 From: Denes Tarjan Date: Wed, 14 Feb 2024 15:14:37 +0100 Subject: [PATCH] Enable BORDER_TYPE_REPLICATE in dilate/erode in the HAL --- adapters/opencv/intrinsiccv_hal.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adapters/opencv/intrinsiccv_hal.cpp b/adapters/opencv/intrinsiccv_hal.cpp index 93b20055c..e5aa27d7a 100644 --- a/adapters/opencv/intrinsiccv_hal.cpp +++ b/adapters/opencv/intrinsiccv_hal.cpp @@ -321,7 +321,9 @@ int morphology_init(cvhalFilter2D **cvcontext, int operation, int src_type, } if (border_type != - intrinsiccv_border_type_t::INTRINSICCV_BORDER_TYPE_CONSTANT) { + intrinsiccv_border_type_t::INTRINSICCV_BORDER_TYPE_CONSTANT && + border_type != + intrinsiccv_border_type_t::INTRINSICCV_BORDER_TYPE_REPLICATE) { return CV_HAL_ERROR_NOT_IMPLEMENTED; } -- GitLab