Over-segmentation in the marker controlled watershed in Matlab

前端 未结 2 1350
孤街浪徒
孤街浪徒 2021-02-15 17:41

I have a problem while implementing the marker controlled watershed in Matlab.

The input image is a binary mask which have two clustered object. An other image is an oth

2条回答
  •  孤城傲影
    2021-02-15 17:49

    This is how I would do this in Mathematica. Hope you can translate.

    i1 = Binarize@Import["http://i.stack.imgur.com/qrYCL.jpg"];
    marker = Binarize@Import[  "http://i.stack.imgur.com/CMI6Z.jpg"]; 
    
    ImageMultiply[i1, WatershedComponents[i1, marker] // Colorize]
    

    enter image description here

提交回复
热议问题