separating two different objects in an image

2 ビュー (過去 30 日間)
Karan Ratnaparkhi
Karan Ratnaparkhi 2011 年 3 月 31 日
Hey guys I have an image having completely black background and white foreground. I have done motion detection in which I have got a man and a car as moving objects and after applying thresholding and doing some processing on image i have got black background and man and car outlines as white. Now I want to separate man and car by drawing two separate rectangles around them. I am nt getting hw to do that plz help me.

採用された回答

Sean de Wolski
Sean de Wolski 2011 年 3 月 31 日
Use bwconncomp and regionprops to find the bounding box of each object and then set its edges to the color of your choice.
  1 件のコメント
Karan Ratnaparkhi
Karan Ratnaparkhi 2011 年 3 月 31 日
plz tell me how to draw edges and set the edgecolor.

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

その他の回答 (1 件)

Mohsin Khan
Mohsin Khan 2011 年 4 月 9 日
i have also this problem sir, but i want to extract it as a seperate image each face rectangle, please help me as soon as possible.

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by