如何在opencv中制作颜色梯度加权距离图像(python)

How to make Color gradient-weigthed distance image in opencv (python)

如何在 OpenCV 中为 Python 制作颜色梯度加权距离?对于我正在进行的所有研究,我发现只是没有颜色信息的梯度距离,请问有人知道它的路径吗?非常感谢

Image source.

*objective不是单独做距离变换,而是结合颜色信息(灰度)

我根据这些论文找到了解决方案:

https://www.researchgate.net/publication/257690553_Automatic_image_segmentation_of_nuclear_stained_breast_tissue_sections_using_color_active_contour_model_and_an_improved_watershed_method https://www.researchgate.net/publication/260755668_A_color_and_shape_based_algorithm_for_segmentation_of_white_blood_cells_in_peripheral_blood_and_bone_marrow_images

只是两种技术的结合,谢谢大家。