{"id":131,"date":"2018-06-11T17:46:53","date_gmt":"2018-06-11T21:46:53","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/renegade\/?post_type=chapter&#038;p=131"},"modified":"2018-06-13T15:04:14","modified_gmt":"2018-06-13T19:04:14","slug":"chapter-2-3-dsm-orthomosaic","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/renegade\/chapter\/chapter-2-3-dsm-orthomosaic\/","title":{"raw":"Chapter 2.3 - DEM &amp; Orthomosaic","rendered":"Chapter 2.3 &#8211; DEM &amp; Orthomosaic"},"content":{"raw":"<h1>Overview<\/h1>\r\nOnce the textured 3-D mesh is generated, the next step is to create an accurate <strong>digital elevation model (DEM)<\/strong>, digital surface model (DSM) or digital terrain model (DTM) along with an orthophoto mosaic or simply <strong>orthomosaic<\/strong>.\r\n\r\nBefore proceeding, save the project by accessing the\u00a0<strong>File<\/strong> menu, selecting\u00a0<strong>Save As...<\/strong>, navigating to the\u00a0<strong>BCIT_Field<\/strong> folder and naming the project\u00a0<strong>BCIT_Field<\/strong>.<strong>psx<\/strong>.\r\n<h2>Building a DEM<\/h2>\r\nA digital elevation model is a raster image (pixels, arranged in rows and columns) with each pixel representing the elevation. If the model represents elevations of the ground along with heights of structures such as buildings and trees, it can be referred to as a <strong>digital surface model (DSM)<\/strong>. If the elevations only represent the ground or the bare earth, the model is referred to as a <strong>digital terrain model (DTM)<\/strong>. The general term describing any type of raster elevation surface is <strong>digital elevation model (DEM)<\/strong>.\r\n\r\nFrom the\u00a0<strong>Workflow<\/strong> menu, select\u00a0<strong>Build DEM...<\/strong>. The dialogue box settings are described below.\r\n\r\n<strong>Projection Type<\/strong> can be set according to other data sets that you'd like this DEM to geographically coincide with.\r\n\r\n<strong>Source data<\/strong> allows a choice between using the\u00a0<strong>Sparse Cloud<\/strong>,\u00a0<strong>Dense Cloud<\/strong>, or\u00a0<strong>Mesh<\/strong> as the source of elevation data. The\u00a0<strong>Sparse Cloud<\/strong> should never be used as it is the least accurate representation of elevation. The main difference between using\u00a0<strong>Dense Cloud<\/strong> or\u00a0<strong>Mesh<\/strong> is that the former is the truest representation of the surface but may have holes or gaps where elevation data may be missing due to sparse alignment between photos. The latter represents a more continuous surface (assuming that interpolation or extrapolation was enabled when building the mesh), keeping in mind that the interpolated elevations are algorithmic guesses based on surrounding known elevations.\r\n\r\n<strong>Interpolation<\/strong> can be <strong>Enabled (default)\u00a0<\/strong>to fill holes or gaps in elevations,\u00a0<strong>Disabled<\/strong> or an\u00a0<strong>Extrapolation<\/strong> can be applied instead.\r\n\r\n<strong>Point classes<\/strong> can be selected (if they have been previously created through classification) or\u00a0<strong>All (default)<\/strong> classes will be used.\r\n\r\n<strong>Region<\/strong> settings can be adjusted if necessary, affecting the output\u00a0<strong>Resolution<\/strong> and\u00a0<strong>Total size<\/strong> of the DEM.\r\n\r\nBelow are the suggested DEM settings for this project and don't worry if the <strong>Region<\/strong> values are slightly different.\r\n\r\n[caption id=\"attachment_135\" align=\"aligncenter\" width=\"389\"]<img src=\"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_Settings.png\" alt=\"Screenshot showing the build dem dialogue box settings with the projection system set to the default NAD83, source data set to dense cloud, interpolation set to enabled all point classes selected and region parameters set to the default\" width=\"389\" height=\"575\" class=\"size-full wp-image-135\" \/> Build DEM dialogue with settings[\/caption]\r\n\r\nTo view the DEM, double-click it in the\u00a0<strong>Workspace\u00a0<\/strong>pane which brings up a new\u00a0<strong>Ortho<\/strong> tab in the main view.\r\n\r\n[caption id=\"attachment_183\" align=\"aligncenter\" width=\"1024\"]<img src=\"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_2-e1528830336232-1024x535.png\" alt=\"Screenshot showing a colorized digital elevation model of the bcit playing field with elevations ranging from 0.008m dark blue to 4.51m red.\" width=\"1024\" height=\"535\" class=\"wp-image-183 size-large\" \/> DSM of the BCIT playing field[\/caption]\r\n\r\nNote that the pixel resolution of the DEM is approximately 9mm. Also notice the lines formed in the grass from the previous position of the goalie net (just to the left of where the goalie net is presently positioned).\r\n\r\nNow that an accurate raster representation of the surface is generated, it can be used to create an orthophoto mosaic as described below.\r\n<h2>Orthophoto Mosaic<\/h2>\r\nAn orthophoto mosaic, or simply an orthomosaic, is in some ways similar to the texture applied onto the 3-D mesh surface. However, instead of the photos being distorted and warped to fit the surface, in orthomosaic generation, the photos are corrected for radial and elevation distortions and then stitched together along seam lines.\r\n\r\nFrom the\u00a0<strong>Workflow<\/strong> menu, select\u00a0<strong>Build Orthomosaic...<\/strong>. The dialogue box settings are described below.\r\n\r\n<strong>Projection Type<\/strong> can be set according to other data sets that you'd like this DEM to geographically coincide with.\r\n\r\n<strong>Surface<\/strong> can either be the\u00a0<strong>DEM<\/strong> or\u00a0<strong>Mesh<\/strong>. Both contain accurate elevation information but since the input photos and output orthomosaic are both in raster format, it is suggested that\u00a0<strong>DEM<\/strong> is used as the input surface.\r\n\r\n<strong>Blending mode<\/strong> can be set to\u00a0<strong>Mosaic (default)<\/strong>,\u00a0<strong>Average<\/strong> or\u00a0<strong>Disabled<\/strong>. The default Mosaic mode is recommended.\r\n\r\n<strong>Enable<\/strong>\u00a0<strong>back-face culling<\/strong> is enabled only when the surface type is set to Mesh. This allows the \"inside\" faces to also show the mosaic colors.\r\n\r\n<strong>Pixel size (m)<\/strong> allows the user to specify the output pixel size of the orthomosaic. It is never recommended to set this value lower than the default, though higher values can be used to reduce file size at the expense of detail. This is also useful for matching the resolution of the orthomosaic to external data sets.\r\n\r\n<strong>Setup boundaries<\/strong> allows the user to adjust the output boundaries of the orthomosaic with the corresponding\u00a0<strong>Total size in pixels<\/strong>.\r\n\r\nThe following orthomosaic generation settings are suggested for this project.\r\n\r\n[caption id=\"attachment_139\" align=\"aligncenter\" width=\"389\"]<img src=\"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho_settings.png\" alt=\"Screenshot of the build orthomosaic dialogue box showing the projection type which is left as the default NAD83, surface is set to digital elevation model, blending mode is set to the default mosaic, pixel size is set to 0.005 meters, the region\/setup boundaries settings are left as the default\" width=\"389\" height=\"658\" class=\"size-full wp-image-139\" \/> Orthomosaic dialogue and suggested settings[\/caption]\r\n\r\nOnce the orthomosaic is generated, double-clicking on it in the\u00a0<strong>Workspace<\/strong> pane opens it in the\u00a0<strong>Ortho<\/strong> tab as shown below.\r\n\r\n[caption id=\"attachment_140\" align=\"aligncenter\" width=\"1024\"]<img src=\"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho-e1528757335333-1024x552.png\" alt=\"Screenshot showing an orthomosaic of the BCIT playing field\" width=\"1024\" height=\"552\" class=\"size-large wp-image-140\" \/> Orthomosaic of the BCIT playing field[\/caption]\r\n\r\nThe next Part describes how to export the textured 3-D model, DEM and orthomosaic from Photoscan to other popular data formats including Google Earth and ESRI ArcMap.","rendered":"<h1>Overview<\/h1>\n<p>Once the textured 3-D mesh is generated, the next step is to create an accurate <strong>digital elevation model (DEM)<\/strong>, digital surface model (DSM) or digital terrain model (DTM) along with an orthophoto mosaic or simply <strong>orthomosaic<\/strong>.<\/p>\n<p>Before proceeding, save the project by accessing the\u00a0<strong>File<\/strong> menu, selecting\u00a0<strong>Save As&#8230;<\/strong>, navigating to the\u00a0<strong>BCIT_Field<\/strong> folder and naming the project\u00a0<strong>BCIT_Field<\/strong>.<strong>psx<\/strong>.<\/p>\n<h2>Building a DEM<\/h2>\n<p>A digital elevation model is a raster image (pixels, arranged in rows and columns) with each pixel representing the elevation. If the model represents elevations of the ground along with heights of structures such as buildings and trees, it can be referred to as a <strong>digital surface model (DSM)<\/strong>. If the elevations only represent the ground or the bare earth, the model is referred to as a <strong>digital terrain model (DTM)<\/strong>. The general term describing any type of raster elevation surface is <strong>digital elevation model (DEM)<\/strong>.<\/p>\n<p>From the\u00a0<strong>Workflow<\/strong> menu, select\u00a0<strong>Build DEM&#8230;<\/strong>. The dialogue box settings are described below.<\/p>\n<p><strong>Projection Type<\/strong> can be set according to other data sets that you&#8217;d like this DEM to geographically coincide with.<\/p>\n<p><strong>Source data<\/strong> allows a choice between using the\u00a0<strong>Sparse Cloud<\/strong>,\u00a0<strong>Dense Cloud<\/strong>, or\u00a0<strong>Mesh<\/strong> as the source of elevation data. The\u00a0<strong>Sparse Cloud<\/strong> should never be used as it is the least accurate representation of elevation. The main difference between using\u00a0<strong>Dense Cloud<\/strong> or\u00a0<strong>Mesh<\/strong> is that the former is the truest representation of the surface but may have holes or gaps where elevation data may be missing due to sparse alignment between photos. The latter represents a more continuous surface (assuming that interpolation or extrapolation was enabled when building the mesh), keeping in mind that the interpolated elevations are algorithmic guesses based on surrounding known elevations.<\/p>\n<p><strong>Interpolation<\/strong> can be <strong>Enabled (default)\u00a0<\/strong>to fill holes or gaps in elevations,\u00a0<strong>Disabled<\/strong> or an\u00a0<strong>Extrapolation<\/strong> can be applied instead.<\/p>\n<p><strong>Point classes<\/strong> can be selected (if they have been previously created through classification) or\u00a0<strong>All (default)<\/strong> classes will be used.<\/p>\n<p><strong>Region<\/strong> settings can be adjusted if necessary, affecting the output\u00a0<strong>Resolution<\/strong> and\u00a0<strong>Total size<\/strong> of the DEM.<\/p>\n<p>Below are the suggested DEM settings for this project and don&#8217;t worry if the <strong>Region<\/strong> values are slightly different.<\/p>\n<figure id=\"attachment_135\" aria-describedby=\"caption-attachment-135\" style=\"width: 389px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_Settings.png\" alt=\"Screenshot showing the build dem dialogue box settings with the projection system set to the default NAD83, source data set to dense cloud, interpolation set to enabled all point classes selected and region parameters set to the default\" width=\"389\" height=\"575\" class=\"size-full wp-image-135\" srcset=\"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_Settings.png 389w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_Settings-203x300.png 203w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_Settings-65x96.png 65w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_Settings-225x333.png 225w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_Settings-350x517.png 350w\" sizes=\"auto, (max-width: 389px) 100vw, 389px\" \/><figcaption id=\"caption-attachment-135\" class=\"wp-caption-text\">Build DEM dialogue with settings<\/figcaption><\/figure>\n<p>To view the DEM, double-click it in the\u00a0<strong>Workspace\u00a0<\/strong>pane which brings up a new\u00a0<strong>Ortho<\/strong> tab in the main view.<\/p>\n<figure id=\"attachment_183\" aria-describedby=\"caption-attachment-183\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_2-e1528830336232-1024x535.png\" alt=\"Screenshot showing a colorized digital elevation model of the bcit playing field with elevations ranging from 0.008m dark blue to 4.51m red.\" width=\"1024\" height=\"535\" class=\"wp-image-183 size-large\" srcset=\"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_2-e1528830336232-1024x535.png 1024w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_2-e1528830336232-300x157.png 300w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_2-e1528830336232-768x402.png 768w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_2-e1528830336232-65x34.png 65w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_2-e1528830336232-225x118.png 225w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_2-e1528830336232-350x183.png 350w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/DSM_2-e1528830336232.png 1440w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-183\" class=\"wp-caption-text\">DSM of the BCIT playing field<\/figcaption><\/figure>\n<p>Note that the pixel resolution of the DEM is approximately 9mm. Also notice the lines formed in the grass from the previous position of the goalie net (just to the left of where the goalie net is presently positioned).<\/p>\n<p>Now that an accurate raster representation of the surface is generated, it can be used to create an orthophoto mosaic as described below.<\/p>\n<h2>Orthophoto Mosaic<\/h2>\n<p>An orthophoto mosaic, or simply an orthomosaic, is in some ways similar to the texture applied onto the 3-D mesh surface. However, instead of the photos being distorted and warped to fit the surface, in orthomosaic generation, the photos are corrected for radial and elevation distortions and then stitched together along seam lines.<\/p>\n<p>From the\u00a0<strong>Workflow<\/strong> menu, select\u00a0<strong>Build Orthomosaic&#8230;<\/strong>. The dialogue box settings are described below.<\/p>\n<p><strong>Projection Type<\/strong> can be set according to other data sets that you&#8217;d like this DEM to geographically coincide with.<\/p>\n<p><strong>Surface<\/strong> can either be the\u00a0<strong>DEM<\/strong> or\u00a0<strong>Mesh<\/strong>. Both contain accurate elevation information but since the input photos and output orthomosaic are both in raster format, it is suggested that\u00a0<strong>DEM<\/strong> is used as the input surface.<\/p>\n<p><strong>Blending mode<\/strong> can be set to\u00a0<strong>Mosaic (default)<\/strong>,\u00a0<strong>Average<\/strong> or\u00a0<strong>Disabled<\/strong>. The default Mosaic mode is recommended.<\/p>\n<p><strong>Enable<\/strong>\u00a0<strong>back-face culling<\/strong> is enabled only when the surface type is set to Mesh. This allows the &#8220;inside&#8221; faces to also show the mosaic colors.<\/p>\n<p><strong>Pixel size (m)<\/strong> allows the user to specify the output pixel size of the orthomosaic. It is never recommended to set this value lower than the default, though higher values can be used to reduce file size at the expense of detail. This is also useful for matching the resolution of the orthomosaic to external data sets.<\/p>\n<p><strong>Setup boundaries<\/strong> allows the user to adjust the output boundaries of the orthomosaic with the corresponding\u00a0<strong>Total size in pixels<\/strong>.<\/p>\n<p>The following orthomosaic generation settings are suggested for this project.<\/p>\n<figure id=\"attachment_139\" aria-describedby=\"caption-attachment-139\" style=\"width: 389px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho_settings.png\" alt=\"Screenshot of the build orthomosaic dialogue box showing the projection type which is left as the default NAD83, surface is set to digital elevation model, blending mode is set to the default mosaic, pixel size is set to 0.005 meters, the region\/setup boundaries settings are left as the default\" width=\"389\" height=\"658\" class=\"size-full wp-image-139\" srcset=\"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho_settings.png 389w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho_settings-177x300.png 177w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho_settings-65x110.png 65w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho_settings-225x381.png 225w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho_settings-350x592.png 350w\" sizes=\"auto, (max-width: 389px) 100vw, 389px\" \/><figcaption id=\"caption-attachment-139\" class=\"wp-caption-text\">Orthomosaic dialogue and suggested settings<\/figcaption><\/figure>\n<p>Once the orthomosaic is generated, double-clicking on it in the\u00a0<strong>Workspace<\/strong> pane opens it in the\u00a0<strong>Ortho<\/strong> tab as shown below.<\/p>\n<figure id=\"attachment_140\" aria-describedby=\"caption-attachment-140\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho-e1528757335333-1024x552.png\" alt=\"Screenshot showing an orthomosaic of the BCIT playing field\" width=\"1024\" height=\"552\" class=\"size-large wp-image-140\" srcset=\"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho-e1528757335333-1024x552.png 1024w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho-e1528757335333-300x162.png 300w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho-e1528757335333-768x414.png 768w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho-e1528757335333-65x35.png 65w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho-e1528757335333-225x121.png 225w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho-e1528757335333-350x189.png 350w, https:\/\/pressbooks.bccampus.ca\/renegade\/wp-content\/uploads\/sites\/473\/2018\/06\/Ortho-e1528757335333.png 1916w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-140\" class=\"wp-caption-text\">Orthomosaic of the BCIT playing field<\/figcaption><\/figure>\n<p>The next Part describes how to export the textured 3-D model, DEM and orthomosaic from Photoscan to other popular data formats including Google Earth and ESRI ArcMap.<\/p>\n","protected":false},"author":365,"menu_order":3,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-131","chapter","type-chapter","status-publish","hentry"],"part":19,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-json\/pressbooks\/v2\/chapters\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-json\/wp\/v2\/users\/365"}],"version-history":[{"count":8,"href":"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-json\/pressbooks\/v2\/chapters\/131\/revisions"}],"predecessor-version":[{"id":215,"href":"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-json\/pressbooks\/v2\/chapters\/131\/revisions\/215"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-json\/pressbooks\/v2\/parts\/19"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-json\/pressbooks\/v2\/chapters\/131\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-json\/pressbooks\/v2\/chapter-type?post=131"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-json\/wp\/v2\/contributor?post=131"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/renegade\/wp-json\/wp\/v2\/license?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}