human activity recognition in image

2 ビュー (過去 30 日間)
Mammo Image
Mammo Image 2016 年 3 月 5 日
コメント済み: Mammo Image 2016 年 3 月 8 日
I am trying to implement a paper of human activity recognition, I am just started after specified the steps of the system. I found two points that I did not understand
1- calculate the normalized bounding box coordinate?!
2- If I going to use background subtraction to get silhouette, how can I get silhouette features, I found that there are many types of local features (blob, corner, region of interest) what the difference among these
Thanks a lot

採用された回答

Walter Roberson
Walter Roberson 2016 年 3 月 6 日
regionprops() to get the bounding box. Each region will have a bounding box that is a row vector of 4 items. Divide the first and third members by the number of columns (not rows!) in the image, and divide the second and fourth members by the number of rows in the image.
[rows, cols, panes] = size(YourImage);
props = regionprops(BWimage, 'BoundingBox');
bbox = vertcat(props.BoundingBox); %put all blob's boxes together
nbbox = [bbox(:,1)./cols, bbox(:,2)./rows, bbox(:,3)./cols, bbox(:,4)./rows];
Now nbbox will be normalized bounding box in the form [left_edge, bottom_edge, width, height] which can easily be converted to right edge and top edge instead of width and height.
  4 件のコメント
Walter Roberson
Walter Roberson 2016 年 3 月 7 日
If you had two different images of a scene taken at different resolutions, then the portion of the scene occupied by a particular object would be the same, but the number of pixels would be different. Working in portions allows you to avoid worrying about resolution.
Mammo Image
Mammo Image 2016 年 3 月 8 日
thanks very much Walter

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by