フィルターのクリア

How can I automate Matlab to measure specific regions in an image?

2 ビュー (過去 30 日間)
Muhamed Sewidan
Muhamed Sewidan 2019 年 12 月 24 日
コメント済み: Muhamed Sewidan 2019 年 12 月 27 日
I want to make Matlab to measure these distances (red lines) automatically for every image I insert it. These measured distances will be introduced in an equation to measure some parameter. Is this possible? fringes.jpg

採用された回答

Image Analyst
Image Analyst 2019 年 12 月 24 日
I would go down each line of your binary image getting the centroids.
[rows, columns] = size(binaryImage);
xCentroids = zeros(rows, 8); % for the 8 blobs.
for row = 1 : rows
props = regionprops(binaryImage(row, :), 'Centroid')
xy = vertcat(props.Centroid);
xCentroids(row, :) = xy(1:8:, 1)
end
To find the bumps, you might call bwmorph(binaryImage, 'skel', inf) and then call regionprops again with the row number where the bumps are known to appear, assuming they're in the same place (row) each time.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFeature Detection and Extraction についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by