PIL消除draw.ellipse绘制的绘制点周围的噪声

时间:2023-01-04 00:25:10

I plotted some dots on a white image by using draw.ellipse in PIL

我在PIL中使用draw.ellipse在白色图像上绘制了一些点

 draw.ellipse((x[i][j] - 2, y[i][j] - 2, [i][j] + 2, [i][j] + 2), fill='black', outline='black')

((x,y) is a coordinate of the plot)

((x,y)是图的坐标)

Then I found some noise around the plots like this:

然后我在这些地块周围发现了一些噪音:

PIL消除draw.ellipse绘制的绘制点周围的噪声

How can I get rid of them?

我怎么能摆脱他们?

Add The size of the original white image is 315*207, the size of the plot is 4*4

添加原始白色图像的大小为315 * 207,绘图的大小为4 * 4

1 个解决方案

#1


3  

Did you save the image as a JPG file?

您是否将图像保存为JPG文件?

JPG compression creates noise surrounding features (including your dot).

JPG压缩会在周围的特征(包括您的点)中产生噪音。

#1


3  

Did you save the image as a JPG file?

您是否将图像保存为JPG文件?

JPG compression creates noise surrounding features (including your dot).

JPG压缩会在周围的特征(包括您的点)中产生噪音。