I have a gray scale image with multiple local areas. The pixel value of local areas may be different. How to find the local minimum areas in the image?
我有一个带有多个局部区域的灰度图像。局部区域的像素值可以不同。如何找到图像中的局部最小区域?
In the attached file (Gray image), I have 4 local areas with different pixel values.
在附件(灰色图像)中,我有4个具有不同像素值的局部区域。
Thank you!
1 个解决方案
#1
0
You can perform a connected component labeling, and then you keep the component with the lowest gray level.
您可以执行连接的组件标签,然后保持组件具有最低的灰度级。
If necessary (noisy images), you can start with a median filter, followed by a small opening and closing in order to clean you image.
如有必要(嘈杂的图像),您可以从中值滤镜开始,然后小幅打开和关闭以清洁图像。
#1
0
You can perform a connected component labeling, and then you keep the component with the lowest gray level.
您可以执行连接的组件标签,然后保持组件具有最低的灰度级。
If necessary (noisy images), you can start with a median filter, followed by a small opening and closing in order to clean you image.
如有必要(嘈杂的图像),您可以从中值滤镜开始,然后小幅打开和关闭以清洁图像。