{"id":1947,"date":"2014-02-05T17:32:48","date_gmt":"2014-02-05T17:32:48","guid":{"rendered":"https:\/\/www.anagram.at\/en\/diplomarbeit\/camera-model-with-lens\/"},"modified":"2014-02-05T17:32:48","modified_gmt":"2014-02-05T17:32:48","slug":"camera-model-with-lens","status":"publish","type":"page","link":"https:\/\/www.anagram.at\/en\/diplomarbeit\/camera-model-with-lens\/","title":{"rendered":"Camera Model with Lens"},"content":{"rendered":"<p><body><br \/>\n<!--Navigation Panel--><br \/>\n<b> Next:<\/b> <a name=\"tex2html276\" href=\"https:\/\/www.anagram.at\/diplomarbeit\/camera-calibration\/\">Camera Calibration<\/a><br \/>\n<b> Up:<\/b> <a name=\"tex2html272\" href=\"https:\/\/www.anagram.at\/diplomarbeit\/perspective-projection\/\">Perspective Projection<\/a><br \/>\n<b> Previous:<\/b> <a name=\"tex2html268\" href=\"https:\/\/www.anagram.at\/diplomarbeit\/the-pinhole-camera\/\">The Pinhole Camera<\/a><br \/>\n<!--End of Navigation Panel--><\/p>\n<h2><a name=\"SECTION00312000000000000000\"><br \/>\nCamera Model with Lens<\/a><br \/>\n<\/h2>\n<p>\nThe pinhole camera has the problem that the pinhole should be almost infinitely small, but the smaller the pinhole, the fewer light enters the camera and the longer exposure time is needed. In a dynamic environment this is not possible because the objects in the scene are moving. As a result the pinhole camera is not used in real photography. In reality lenses are used to project the light onto the sensor chip. Figure <a href=\"#lensgeometry\">2.3<\/a> shows how the light-rays reflected by an object are projected through a lens. <img loading=\"lazy\" width=\"19\" height=\"16\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img62.png\" alt=\"$ G$\"\/> is an object in the real world, <!-- MATH\n $d_{object}$\n --><br \/>\n<img loading=\"lazy\" width=\"51\" height=\"35\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img63.png\" alt=\"$ d_{object}$\"\/> is the distance between <img loading=\"lazy\" width=\"19\" height=\"16\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img62.png\" alt=\"$ G$\"\/> and the lens. <img loading=\"lazy\" width=\"16\" height=\"35\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img14.png\" alt=\"$ f$\"\/> is the focal distance of the lens, <img loading=\"lazy\" width=\"22\" height=\"35\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img64.png\" alt=\"$ f_k$\"\/> is the effective focal length (distance between the lens and the projected object <img loading=\"lazy\" width=\"20\" height=\"16\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img65.png\" alt=\"$ B$\"\/>) and <img loading=\"lazy\" width=\"20\" height=\"16\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img65.png\" alt=\"$ B$\"\/> is the projected object. Light is reflected at the object <img loading=\"lazy\" width=\"19\" height=\"16\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img62.png\" alt=\"$ G$\"\/> and some of the light-rays enter the lens where they are refracted towards the sensor plane and form the object <img loading=\"lazy\" width=\"20\" height=\"16\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img65.png\" alt=\"$ B$\"\/>. The relation between these parameters can be written in a mathematical form.\n<\/p>\n<p\/>\n<div align=\"CENTER\"><a name=\"thin_lens_law\"\/><!-- MATH\n begin{equation}\nfrac{1}{d_{object}} + frac{1}{f_k} = frac{1}{f}\nend{equation}\n --><\/p>\n<table cellpadding=\"0\" width=\"100%\" align=\"CENTER\">\n<tr valign=\"MIDDLE\">\n<td nowrap=\"nowrap\" align=\"CENTER\"><img loading=\"lazy\" width=\"139\" height=\"59\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img66.png\" alt=\"$displaystyle frac{1}{d_{object}} + frac{1}{f_k} = frac{1}{f}$\"\/><\/td>\n<td nowrap=\"nowrap\" width=\"10\" align=\"RIGHT\">\n(2.10)<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><br clear=\"ALL\"\/><\/p>\n<p\/>\n<div align=\"CENTER\"><a name=\"lensgeometry\"\/><a name=\"355\"\/><\/p>\n<table>\n<caption align=\"BOTTOM\"><strong>Figure 2.3:<\/strong><br \/>\nLens Geometry<\/caption>\n<tr>\n<td>\n<div align=\"CENTER\">\n <\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>As a result of Equation <a href=\"#thin_lens_law\">2.10<\/a>, the <i>focal length<\/i> of the lens and the <i>effective focal length<\/i> are only the same if an object infinitely far away is focused. For reconstruction, <!-- MATH\n $d_{object}$\n --><br \/>\n<img loading=\"lazy\" width=\"51\" height=\"35\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img63.png\" alt=\"$ d_{object}$\"\/> has to be approximated, thus the <i>effective focal length<\/i> has to be computed. As one can see in Equation <a href=\"#thin_lens_law\">2.10<\/a>, <img loading=\"lazy\" width=\"22\" height=\"35\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img64.png\" alt=\"$ f_k$\"\/> strongly depends on the focused objects and should be chosen so that the objects of interest are focused. Objects that are closer or further away will not be mapped as points but as circles. This happens because the correct image point lies behind or in front of the image plane. Areas which are not focused thus look blurred. There are some general laws which can help choosing the correct lens for a given problem.<\/p>\n<ul>\n<li>the bigger the aperture, the bigger are the circles\n<\/li>\n<li>the smaller the aperture, the sharper is the whole scene\n<\/li>\n<li>the bigger the depth sharpness, the lesser light arrives at the sensor chip\n<\/li>\n<li>the bigger the aperture, the smaller is the area where objects are mapped sharp\n<\/li>\n<\/ul>\n<div align=\"CENTER\"><a name=\"lensmodel\"\/><a name=\"368\"\/><\/p>\n<table>\n<caption align=\"BOTTOM\"><strong>Figure 2.4:<\/strong><br \/>\nRelation between image-, camera- and world-coordinate system.<\/caption>\n<tr>\n<td>\n<div align=\"CENTER\">\n <img loading=\"lazy\" width=\"600\" height=\"384\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/cammodel.jpg\" alt=\"Image cammodel\"\/><\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Camera parameters can be used to describe the camera geometry. It can be distinguished between two groups of parameters, namely the interior and exterior camera parameters. The interior parameters describe the camera geometry, independently from where the camera is situated. The exterior camera parameters depend only on the position where the camera is placed in relation to a given world coordinate system. Camera calibration is needed to compute both, the interior and the exterior camera parameters. <\/p>\n<p>The <b>intrinsic parameters<\/b> are <\/p>\n<ul>\n<li><img loading=\"lazy\" width=\"22\" height=\"35\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img64.png\" alt=\"$ f_k$\"\/>: effective focal length\n<\/li>\n<li><!-- MATH\n $kappa_1,kappa_2$\n --><br \/>\n<img loading=\"lazy\" width=\"50\" height=\"33\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img68.png\" alt=\"$ kappa_1,kappa_2$\"\/>: lens distortion coefficients\n<\/li>\n<li><img loading=\"lazy\" width=\"45\" height=\"33\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img51.png\" alt=\"$ c_x,c_y$\"\/>: intersection of the optical axis with the image plane\n<\/li>\n<\/ul>\n<p>and they determine the geometrical behavior of the projection<br \/>\ncaused by the lens used. The <b>extrinsic parameters <\/b> are<\/p>\n<ul>\n<li><!-- MATH\n $R_x,R_y,R_z$\n --><br \/>\n<img loading=\"lazy\" width=\"88\" height=\"35\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img69.png\" alt=\"$ R_x,R_y,R_z$\"\/>: rotation parameters\n<\/li>\n<li><!-- MATH\n $T_x,T_y,T_z$\n --><br \/>\n<img loading=\"lazy\" width=\"78\" height=\"35\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img70.png\" alt=\"$ T_x,T_y,T_z$\"\/>: transformation parameters\n<\/li>\n<\/ul>\n<p>When a lens is used, it comes to geometric lens distortion which has no influence on the quality of the image, but it has a significant influence on the image geometry. There are two kinds of geometric distortion, <i>radial<\/i> and <i>tangential<\/i>,  but radial distortion is the most general. Figure <a href=\"#distortion\">2.5<\/a> shows the effects of radial distortion to the image geometry. It can be described as a radial outwards or inwards displacement of a point in reference to the midpoint (principle point) of the lens. Some radial distortion is inherent in most optical systems, but can be reduced by proper design. Figure <a href=\"#distortion\">2.5<\/a>a shows the effect of inwards displacement(barrel distortion). Figure <a href=\"#distortion\">2.5<\/a>b shows the effect of outwards displacement (pincushion distortion).<\/p>\n<div align=\"CENTER\"><a name=\"distortion\"\/><a name=\"389\"\/><\/p>\n<table>\n<caption align=\"BOTTOM\"><strong>Figure 2.5:<\/strong><br \/>\nEffect of radial distortion to the geometry of an image a)barrel distortion  b) pincushion distortion<\/caption>\n<tr>\n<td>\n<div align=\"CENTER\">\n <img loading=\"lazy\" width=\"487\" height=\"180\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/lensdistortion.jpg\" alt=\"Image lensdistortion\"\/><\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>The distortion coefficients <!-- MATH\n $kappa_1,kappa_2$\n --><br \/>\n<img loading=\"lazy\" width=\"50\" height=\"33\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img68.png\" alt=\"$ kappa_1,kappa_2$\"\/> describe the radial distortion and can be found using one of the calibration techniques presented in Section <a href=\"https:\/\/www.anagram.at\/diplomarbeit\/camera-calibration\/#camcal\">2.2<\/a>. Some implementations also deal with tangential distortion, even if it is often disregarded due to its negligible influence. <\/p>\n<hr\/>\n<p><!--Navigation Panel--><b> Next:<\/b> <a name=\"tex2html276\" href=\"https:\/\/www.anagram.at\/diplomarbeit\/camera-calibration\/\">Camera Calibration<\/a><br \/>\n<b> Up:<\/b> <a name=\"tex2html272\" href=\"https:\/\/www.anagram.at\/diplomarbeit\/perspective-projection\/\">Perspective Projection<\/a><br \/>\n<!--End of Navigation Panel--><\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Camera Model with Lens<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1946,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":""},"categories":[],"featured_image_src":null,"featured_image_src_square":null,"_links":{"self":[{"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/pages\/1947"}],"collection":[{"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/comments?post=1947"}],"version-history":[{"count":0,"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/pages\/1947\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/pages\/1946"}],"wp:attachment":[{"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/media?parent=1947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/categories?post=1947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}