how can i find the center of hot objects in thermal images?

1 次查看(过去 30 天)
I have a set of thermal images showing objects that are different from the background of the image. I need to find the coordinates (x,y) of the center of mass of the most inner circle of each object.
The output of the program should be: 1. The coordinates (x,y) of the center of each object. 2. Marking the center of each object on the original image.
As you can see, in the example picture, there is sometimes an object connected to another object (in this case the output should have 2 coordinates).
Can anyone help me?

采纳的回答

Image Analyst
Image Analyst 2018-12-9
If you have the gray scale image you need to use that, not the pseudocolored image, which is useless.
If there is one hump you can use regionprops and ask for 'WeightedCentroid'.
If there are two humps, you can use detectMSERFeatures() if you have the Computer Vision System Toolbox. Or else set a threshold some amount down from the max and threshold and use bwareafilt() and see if you have two blobs that are big enough.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by