Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6986063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:45:40+00:00 2026-05-27T18:45:40+00:00

I am making a camera-based application for Android. My problem, is to find the

  • 0

I am making a camera-based application for Android. My problem, is to find the real angle subtended by an object in an image, on the camera, when I have :

1.The length of that object in the image, in pixels,

2.The vertical angle-of-view of the camera,

3.The length of the image,in pixels.

Being new to image processing, I have this (probably basic) doubt. Is there a linear relationship between the angle that an object subtends on the camera, and the number of pixels in the image of the object taken by the camera? Angle subtended: Join the topmost point of the object to camera, then join bottom most point of object to camera. The angle formed at the camera, is the angle subtended. For example: Consider an image that is vertically, 200 pixels in height. The vertical angle of view of the camera, is suppose 20 degrees. So, I can say, that this 20 degrees covers 200 pixels of the image. Now, there is a portion of the image (an object) which is 10 pixels in height. I want to find the angle subtended by this object on the camera, in physical world. Would I be right in telling that, since 200 pixels are covered by 20 degrees, 10 pixels would be covered by 1 degree? That is, this object subtends an angle of 1 degree on the camera?.

enter image description here

As shown in this diagram, I know the values of L (of image), P (of object in image), x (Vertical angle of view of camera), and I want to find y , the angle subtended by object on camera. My assumption is (y/P)=(x/L), that is directly proportional. Would this assumption be correct?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:45:41+00:00Added an answer on May 27, 2026 at 6:45 pm

    Draw horizontal line. It’s length D is distance to object.

    D * tg(X/2) = L/2

    and

    D * tg(Y/2) = P/2

    so

    Y = 2 * Arctg(tg(X/2) * P / L)

    (When angles are small, they are (rough) direct proportional)

    Addition: case of non-centered object.

    enter image description here

    P0, P1 – pixel coordinates of object ends relative to center point D

    distance Dx = |OD| = L * ctg (X/2)

    coordinate D=(Dx,0)

    Y = Angle(OP1, OP0) = ArcCos((OP1 x OP0)/(|OP1| * |OP0|)) , where x means scalar product

    Y = ArcCos((Dx*Dx+P1*P0)/Sqrt((Dx*Dx+P1*P1)(DxDx+P0*P0)))

    Example:
    L=L1-L0=768 pixels

    X = 42 degrees

    Dx = 1000 (rough)

    P1 position = 100 pixels

    P0 position = -50 pixels

    Y = ArcCos((1000*1000-100*50)/(Sqrt((1000*1000 +100*100)*(1000*1000+50*50)))) = 7 degrees (rough)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making an app that does some real time image processing using the camera.
I'm making an application that draws shapes and I use a camera to draw
I am making an object tracking application. I have used Emgucv 2.1.0.0 to load
I am making an application which takes image from the camera and then email
I'm making an android 1.6 app that uses phone's camera. In order to do
I am looking at making an app that uses a camera to measure the
i am making a app which takes photo on button click i have camera.java
I'm making a Android application to scan 2D barcodes. I'm using the Zxing source
I have an application which makes use of the default camera to take pictures
I am making the qr-code reader app,on button click i have opened the camera

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.