Files
opencv/modules/imgproc
Trishanth Mellimi b41cda2b93 imgproc: accept CV_Bool masks in distanceTransform
cv::Mat_<bool>::depth() returns CV_Bool in 5.0 where it returned CV_8U in
4.x, so distanceTransform started rejecting boolean masks. CV_Bool is a
1-byte type whose values are only zero-tested here, so accept it wherever
a CV_8UC1 mask was previously accepted, matching the 4.x behaviour and the
4->5 migration guide.

Relaxes the type checks on all four reachable paths: the public wrapper,
distanceTransform_L1_8U, trueDistTrans (DIST_MASK_PRECISE) and
distanceATS_L1_8u (CV_8U output).

Closes #29596
2026-07-24 23:48:00 +05:30
..
2025-03-19 21:38:08 +05:30
2024-10-13 03:25:24 +03:00
2026-07-14 09:19:26 +03:00
2026-07-09 12:17:24 +03:00