creating a weight map from a binary image
9 次查看(过去 30 天)
显示 更早的评论
Hi, I would like to create a weight map from a binary image in way to have more intensity values in the border pixels between the close object. To make it more clear I need to calculate w(x) from an input image in the below image following the formula mentioned below. Where w0 and sigma are two constant value, x denotes pixels in the image, d1 denotes the distance to the border of the nearest object and d2 is distance to the border of the second nearest cell.

I need this weight map to implement the loss function in the U-net architecture for image segmentation.
4 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!