フィルターのクリア

how to detect the region of scales

2 ビュー (過去 30 日間)
YoungTae Kwak
YoungTae Kwak 2016 年 6 月 25 日
コメント済み: Image Analyst 2016 年 6 月 27 日
I am detecting the position of a needle and scale markers in an analog gauge like the below. First, I transformed the gauge image into the rectangular image by polar coordinates. In the rectangular image, how can I detect the scale region marked by yellow color? Thank you.
(Analog gauge)
(Rectangular image)
(Target image)

回答 (1 件)

Image Analyst
Image Analyst 2016 年 6 月 26 日
編集済み: Image Analyst 2016 年 6 月 26 日
I don't see how you got the middle image. Somehow you transformed a circular hygrometer gauge with a scale of 0-100 into a rectangular thermometer gauge with range -30 to +50. I don't know how to do that. But anyway, once you've done that, you can just get the tick marks by looking at the scale, which should be in a fixed location. So
scaleImage = rectangleImage(row1:row2, col1:col2);
Once you've done one transform, you'll know what row1, row2, col1, and col2 are, of course.
  2 件のコメント
YoungTae Kwak
YoungTae Kwak 2016 年 6 月 27 日
Thank you for your answering. Our gauge images can vary for the input, so the position of tick markers can be different on the input gauge images. We just want to know the range of repeated tick markers. Good
Image Analyst
Image Analyst 2016 年 6 月 27 日
Then just find the center of the gauge and crop the image. Then scale it to a known size, like 1024x1024. Then do the spatial transform and the scale will be in the same place, guaranteed.

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by