简体   繁体   中英

Best way to measure area using OpenCV

enter image description here

I'm trying to measure the orange-colored area in the image above using OpenCV. The orange area I mean here is the high temperature area. The scale on the right is the color scale of the temperature for this thermal camera imaging and my target area is from 250 degree Celcius and above.

I haven't actually coded yet, but from what I think the best way to measure this is using histogram computation for a certain range, thus getting the area.

Is there any better way to do this?

Any kind of help is very much appreciated.

Convert to grayscale 1 channel image, then blur and threshold. Also you may try growing region algorithm or watershed algorithm instead thresholding. Anyway, segmentation will give you mask of region, then use cv.countNonZero(), to get number of white pixels.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM