필터 지우기
필터 지우기

How to Sampling Uniformly in an image?

조회 수: 1 (최근 30일)
Berbia
Berbia 2012년 9월 26일
hi I'm working in Action Recognition Project. Here the motion boundary is detected by sobel operator. Now I have the result of sobel operator, a binary image. I have to take 25% of pixels in motion boundary by uniformly sampling.
Thanks in advance

채택된 답변

Image Analyst
Image Analyst 2012년 9월 26일
  댓글 수: 2
Berbia
Berbia 2012년 9월 27일
Thanks for ur reply...The concept of interparc is just what I needed. But how can I use it for a binary image(white color indicates the motion boundary, not a proper curve)? I have to plot points on white pixels.How to specify values for px,py..?
Image Analyst
Image Analyst 2012년 9월 27일
You can use bwboundaries() to get the coordinates of the outer perimeter of the white objects in your binary image. Then pass those coordinates into interparc().

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by