Skip to content

Commit 3803eee

Browse files
authored
Merge pull request opencv#26069 from hanliutong:fix-medianBlur
Enable `CV_SIMD_SCALABLE` for median blur.
2 parents f4c2e4f + 2d5b0ca commit 3803eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/imgproc/src/median_blur.simd.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ void medianBlur(const Mat& src0, /*const*/ Mat& dst, int ksize)
845845
CV_INSTRUMENT_REGION();
846846

847847
bool useSortNet = ksize == 3 || (ksize == 5
848-
#if !(CV_SIMD)
848+
#if !((CV_SIMD || CV_SIMD_SCALABLE))
849849
&& ( src0.depth() > CV_8U || src0.channels() == 2 || src0.channels() > 4 )
850850
#endif
851851
);
@@ -881,7 +881,7 @@ void medianBlur(const Mat& src0, /*const*/ Mat& dst, int ksize)
881881

882882
double img_size_mp = (double)(src0.total())/(1 << 20);
883883
if( ksize <= 3 + (img_size_mp < 1 ? 12 : img_size_mp < 4 ? 6 : 2)*
884-
(CV_SIMD ? 1 : 3))
884+
((CV_SIMD || CV_SIMD_SCALABLE) ? 1 : 3))
885885
medianBlur_8u_Om( src, dst, ksize );
886886
else
887887
medianBlur_8u_O1( src, dst, ksize );

0 commit comments

Comments
 (0)