-1

在给出上述值后,我们如何单独对该部分进行修改。该部分可以用于图像增强或水印吗?

value of x= some coordinate
value of y= some coordinate
radius of circle=r
4

1 回答 1

1

一个真正基于类似图像处理的工具的简单可能性是对中心点周围的距离变换进行阈值处理。

原则上,这种方法可以让您一次考虑多个中心。

例如对于

 R = 20;
 Cx = 150;
 Cy = 150;

在此处输入图像描述

在此处输入图像描述

 %%% // parameters
 R = 20;
 Cx = 150;
 Cy = 150;

 %%% // Demo pict
 clear X map;
 figure   
 load('flujet','X','map');
 imagesc(X);
 colormap(map);

 %%% // mask of the centers
 mask = false(size(X));   
 mask(Cy,Cx)=true;

 %%% // distance transform
 D = bwdist(mask);

 %%% // thresholding with radius R
 X = X.*(D<R);
 figure
 imagesc(X);
 colormap(map);
于 2013-11-08T10:21:57.047 回答