Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How can I find theta on Matlab?

How can I find theta on Matlab?

How can I find theta on Matlab?


I'm working on a Tennis Ball Machine Project. The project aims to change the idea of tennis ball being shot at random on the tennis court, but to have the capability to intellectually interact with the player giving a tougher training exercise.
By utilizing image processing (Visual Servoing) , the project once completed will have a fully automated "Tennis robot" that detects where the player is on the court and intelligently interacts with him/her.

Anyway, the part I'm working on right now is to detect the player in the tennis court.
For now the camera only detect the player and give its coordinates on the screen in pixels.
However, I want to find the player location in real time (in the real court), this can be done by finding the the theta in Matlab between the norm and the player.

My question is how can I find theta?

Check the attachment for better clarification.

Thanks ..

RE: How can I find theta on Matlab?

I would agree that trigonometry is how you can find theta.

RE: How can I find theta on Matlab?

It is a bit unclear as to whether you have coordinates from your camera, Abrar. But in either case it's certainly unnecessary to be pretentious *cough cough IRSTUFF*. Assuming you do have the necessary information you can find theta with the formula provided in your picture I modified (attached).

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close