- Take a photo of a completely uniform white sheet to get a background that you can use for lens shading correction. That's why when you thresholded you had stuff from the corners and edges.
- Turn that image into an image where each pixel is the percentage of light that hits that pixel.
- Snap an image of perfect concrete and divide that image by the percentage image to create an image like you would have had, had you had an imaging system with no shading at all.
- Use stdfilt() to see what the normal variation is in that kind of image.
- Snap and background correct an image with a crack in it.
- Use stdfilt() on it then threshold it at a value higher than normal, because cracks and edges will have a higher standard deviation than uniform, perfect concrete.
- Use regionprops() on the thresholded image to make whatever measurements you want.
area of many cracks in image
1 次查看(过去 30 天)
显示 更早的评论
hello
i am ask about how can find the objects in image
type of image: street image that contine crack
i need to find the crack and compute the area of each crack in image and then get Priority to the crack have big area
0 个评论
采纳的回答
Image Analyst
2019-7-14
What I'd do is:
Attach your perfect image, your white background sheet image, and your image with a crack in it if you need help. I'm attaching a background correction demo to help you.
See my Image Segmentation Tutorial if you need help with masking, filtering, measuring, regionprops, etc.: in my File Exchange
0 个评论
更多回答(2 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computer Vision with Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!