# The Pinhole Camera Model

To build Machine Vision applications, one must first understand how cameras work, since those are the eyes of our Machine Vision app.

![Example of a the pinhole Camera ](https://3768672318-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LA0hKIwdUDH-_SetCq8%2F-LAiKFxdC3Fj3uaQxXye%2F-LAiKe9PV9zbfT2k-u3t%2Fimage.png?alt=media\&token=bb4d31fc-eca7-409b-88ad-dc4f5e88d6e9)

The top part of the image, goes though the hole and travels to the bottom of the Image plane(left). Since the bottom part of the images goes trough the hole and then travels to the top,  the image is on it's head &#x20;

![](https://3768672318-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LA0hKIwdUDH-_SetCq8%2F-LAiLD7uRIT_aL6ttR3F%2F-LAiLDqm1YWcdCz6kJT6%2Fimage.png?alt=media\&token=ea0bacc2-8479-4cbd-b3f1-f7068a5d225e)

* **Optical center :**  Wie wand, gegen dass das Image auf dem Kopf projiziert wird
* **Optical axis :**&#x20;
* **Focal length :**  Wie weit ist das Pinloch von der Wand gegen welche das Bild stößt, entfernt
* **Image Plane :**&#x20;
* **Pricipal Point :**
* **W :** Die Position des Objektes in der echten Welt, da diese 3 - Dimensional ist,  hat W 3 Dimensionen
* **X:**  Die Position, an die der Lichtstrahl des Objektes das Image Plane Schneidet, da das Plane 2 Dimensional ist hat es auch nur 2 Werte,  x,y

![](https://3768672318-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LA0hKIwdUDH-_SetCq8%2F-LAiLD7uRIT_aL6ttR3F%2F-LAiNfmBYCg6fYfjWXir%2Fimage.png?alt=media\&token=eccb98f5-3a34-4ba8-8b16-54f9ff64c93a)

![](https://3768672318-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LA0hKIwdUDH-_SetCq8%2F-LAiLD7uRIT_aL6ttR3F%2F-LAiNmt448fQCSdgdk2E%2Fimage.png?alt=media\&token=44e20f44-97d7-42bc-8679-3d65c94cd796)

* **C** ist der Bildursprung und Paralell zum Plane F, auf welches C projiziert
* **R** ist die Fläche, auf die dass Bild abgebildet wird, und ist **C,** entfernt, was man auch **principal Distance** nennt
* Der **principle point** beschreibt den Punkt auf der Fläche **R** , auf die das bild projiziert wird. Er gibt sich aus dem pinhole Loch, dem Blink Winkel bzw dem sogenannten **principle ray Zc**

![](https://3768672318-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LA0hKIwdUDH-_SetCq8%2F-LAiLD7uRIT_aL6ttR3F%2F-LAiNs3zaKk338UfqpRZ%2Fimage.png?alt=media\&token=877af5d1-aebc-4a78-9db4-45d3f779b7f7)

**Remember:** The objects Position is defined as w = \[u,v,w] = \[x,y,z]

![](https://3768672318-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LA0hKIwdUDH-_SetCq8%2F-LAiLD7uRIT_aL6ttR3F%2F-LAiO2KiPuOoOH5UjVW1%2Fimage.png?alt=media\&token=4cf97c83-b187-4311-a942-00c5e77d53f4)

Je länger das Focal Length ist, desto mehr ist das Image gezoomt/destro größer / desto kleiner ist das Frame das eingefangen wird(aber hochauflösender?)

* **a)**
* **b)** Die Entfernung zwischen Image Plane und dem Pinhole ist am kürzesten, deswegen ist das Image größer
* &#x20;**c)**
* **d)**

![](https://3768672318-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LA0hKIwdUDH-_SetCq8%2F-LAiLD7uRIT_aL6ttR3F%2F-LAiODUlUWDR_f7oXQYO%2Fimage.png?alt=media\&token=cf610fde-c987-4096-ac12-fe84b0faa8fd)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ckl-ai.gitbook.io/cs-notes-byckl/applied-machine-vision/the-pinhole-camera-model.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
