Help with regionprops function
3 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone,
For my image processing matlab code i need to use "regionprops" function and i can't understand it's help.
Can someone explaine me the syntex ofthis function? (in praticular the syntex for 'BoundingBox','Centroid','Orientation')
Thanks.
0 件のコメント
回答 (1 件)
Niharika Arora
2021 年 1 月 28 日
編集済み: Niharika Arora
2021 年 1 月 28 日
Hello Hadar,
The following commands will help you understand the usage of "regionprops" function with the properties Centroid, BoundingBox and Orientation :
% Read a binary image into workspace.
BW = imread('text.png');
% Calculate centroids, BoundingBox and Orientation for connected components in the image using regionprops.
% The regionprops function returns the values of these properties in the form of a table.
s = regionprops(BW,'centroid','BoundingBox','Orientation');
Please refer to the documentation link of regionprops, to better understand the usage of the function and the parameters it takes.
Thanks,
Niharika.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!