find Centre of ball/3D model of picture

i want to find the centre of ball (almost solved thanks every one for helping)
Now i want to create the 3D model of this picture which includes (Pitch ,wickets,and grass) how I can do this kindly help
THANKS

댓글 수: 3

Walter Roberson
Walter Roberson 2012년 2월 9일
http://dictionary.reference.com/browse/urgent
"urgent
adjective
1. compelling or requiring immediate action or attention; imperative; pressing: an urgent matter."
So basically you are saying that this is sufficiently important that I should cancel my appointment that I have been waiting a month for, and pay the $150 cancellation penalty, because it requires IMMEDIATE action? Is there an international crisis in automated ball detection in cricket that YOU personally were chosen to solve on a day's notice? Will there be riots in some countries if you are unable to solve it in time?
awais rehman
awais rehman 2012년 2월 9일
LOL if u have some thing important then just dont answer here and stop wasting ur time as well as mine thanks
Walter Roberson
Walter Roberson 2012년 2월 9일
A matter is either urgent or it isn't.
I have removed the "urgent" indicator from the title.

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

답변 (5개)

awais rehman
awais rehman 2012년 2월 9일

0 개 추천

automatically.......when i convert this to binary there are many other white regions i dun know how to get only ball .....as am new to this

댓글 수: 4

Anton Semechko
Anton Semechko 2012년 2월 9일
what kind of a priori information are you willing to provide? just that you are looking for a small round object? or maybe in addition you are you willing to specify the regions where the object is most likely to be found and its colour?
awais rehman
awais rehman 2012년 2월 9일
i just want to calculate the center of ball and plot it ....if u can help with some new stuff it will b really good
Thanks
Anton Semechko
Anton Semechko 2012년 2월 9일
So do you still insist that you want to detect the ball automatically? Or are you willing to click on the image a couple of times to help locate the ball?
awais rehman
awais rehman 2012년 2월 9일
automaticallly

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

Image Analyst
Image Analyst 2012년 2월 9일

0 개 추천

Look for dark regions, not white. I'd take one of the color channels and then threshold for dark stuff. Then do some size filtering and shape filtering. See my BlobsDemo for an example of how to do segmentation. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
Pramod Bhat
Pramod Bhat 2012년 2월 9일

0 개 추천

k. first crop out the unwanted portion of the image - that is background. Now only the ball remains in the image. now consider the middle row and middle column of the matrix. find the indices of the first and last non-zero element of both the mentioned column and row. find the length of them. the intersecting point is the center of the ball.

댓글 수: 5

awais rehman
awais rehman 2012년 2월 9일
i am new to this ....previously i easily find the ball with black/white background but now i am stuck at this one as i am not able to find the center/exact location of the ball. can u explain in simple words?
Image Analyst
Image Analyst 2012년 2월 9일
Of course finding the wanted and unwanted portions of the image is the whole crux of the problem. Then, you don't want to crop as that just messes up your location of the ball - you'd have to add the cropping location to the centroid location of the ball after cropping to get the coordinates in the original image. All of that is unnecessary. I really think you should have looked at my demo which gives you the concepts you'll need. You just need to threshold for dark things instead of bright things like I did.
awais rehman
awais rehman 2012년 2월 9일
Image analyst I download your Demo programs really helpful and with the help of that i manage to detect ball but along with 3 other centroids:S
Matt Tearle
Matt Tearle 2012년 2월 9일
Are you doing this on a sequence (ie tracking frames of a video), or do you know anything else about the setup that could help you (like the camera position & zoom is fixed)? For example, in a video sequence, you expect the ball to appear at the bottom center of the frame as it leaves the bowler's hand. For most of it's flight, you expect it to be against a background of the pitch. And, in a video sequence, you expect the position to change in small increments from frame to frame. This could help you eliminate the false findings.
Also, you might be able to use the fact that the ball color is probably unique.
Image Analyst
Image Analyst 2012년 2월 9일
Yes, there are other dark regions there so you will have to do something to determine which is the ball, like compare video frames before and after and look for the regions that didn't change position much, or check for the shape (perimeter^2/(4*pi*area)), or something like that.

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

awais rehman
awais rehman 2012년 2월 9일

0 개 추천

output of my code which shows three marker on picture one at ball second on bowler arm third on batsman leg but i need only one on balll....plz help
awais rehman
awais rehman 2012년 2월 13일

0 개 추천

cmon no 1 can do this?

댓글 수: 4

Image Analyst
Image Analyst 2012년 2월 13일
I probably can. At least for certain frames.
awais rehman
awais rehman 2012년 2월 13일
how?
awais rehman
awais rehman 2012년 2월 13일
can u do it 4 me?m stucked
Image Analyst
Image Analyst 2012년 2월 13일
Sorry I'm too busy with my real job to take on unpaid consulting jobs. To make a robust system is going to take more than a couple of minutes. Most of the code I paste here in Answers is just pulled from and adapted from existing demos I have done, so I don't really spend that much time on them even though it may look like a lot of code.

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

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2012년 2월 8일

편집:

2013년 10월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by