Workflow – Geospatial Modeling & Visualization / A Method Store for Advanced Survey and Modeling Technologies Thu, 22 Mar 2018 11:41:56 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 Pre-processing Digital Images for Close-Range Photogrammetry (CRP) /photogrammetry/software-photogrammetry/photomodeler/workflow-photomodeler/pre-processing-digital-images-for-close-range-photogrammetry-crp/ Tue, 05 Feb 2013 20:19:06 +0000 /?p=12226 Continue reading ]]> This page will show you how pre-process digital images for use in Close-Range Photogrammetry (CRP).
Hint: You can click on any image to see a larger version.

[wptabs style=”wpui-alma” mode=”vertical”] [wptabtitle] A BASIC INTRODUCTION [/wptabtitle]

[wptabcontent]

Why is pre-processing necessary?

For most close-range photogrammetry projects digital images will need to be captured in a RAW format, preserving the maximum pixel information which is important for archival purposes. Therefore it will likely be necessary to do some pre-processing in order to convert RAW images into a file format accepted by the photogrammetry software being used for the project.

If a color chart or gray card was using during image capture, it may also be useful to perform a white balance on the image set. There are a number of tools/software packages available for this purpose, but below we will describe a potential workflow using Adobe products for batch processing.

Overall steps of this workflow:

–  Batch convert RAW to DNG (Adobe DNG Converter)
–  Batch white balance (Camera Raw)
–  Batch image adjustments (Camera Raw)
–  Batch save to JPEG (or TIFF) format (Camera Raw)

[/wptabcontent]

[wptabtitle] BATCH CONVERT RAW DATA [/wptabtitle] [wptabcontent]

Batch RAW to DNG with Adobe Digital Negative (DNG) Converter Software

As an open extension of the TIFF/EP standard with support for EXIF, IPTC and XMP metadata, the Adobe DNG format is rapidly becoming accepted as a standards for storing raw image data (primarily from digital photography).

For more information about file formats for archival, see the Archaeological Data Service (ADS) Guides to Good Practice.

Steps to Batch Convert:

1. Download and install Adobe DNG Converter. As of the date this workflow was published, version 7.2 of Adobe DNG Converter is a free tool available for download on the Adobe website.

Adobe DNG Converter

Adobe DNG Converter is a free tool available for download on the Adobe website.

2. This tool converts an entire folder (aka batch) of images at one time. Use the tool interface to select the appropriate input folder containing the RAW images.

3. If needed, use the interface to design a naming scheme to be used for the new file names.

4. Set preferences for compatibility (e.g. Camera Raw 5.4 and later) and JPEG Preview (e.g. medium size). As an option, you can embed the original RAW file inside the new DNG files. This will, or course, increase the file size of the new DNG file.

5. Click “Convert” to start the process. Wait for this to finish.

[/wptabcontent]

[wptabtitle] BATCH WHITE BALANCE – 1 [/wptabtitle] [wptabcontent]

Batch white balance, image processing, and exporting with Adobe – Part 1: Adobe Bridge

It is considered best practice to (correctly) use a quality color chart or gray card when capturing digital images for any CRP project.  Performing a white balance for each image set (or each lighting condition) can dramatically enhance the appearance of a final product (i.e. ortho-mosaic). This particular workflow uses Adobe Bridge and the Adobe Camera Raw tool, but a similar process can be done in other (free) software as well.

Adobe Bridge - Open in Camera Raw

Adobe Bridge – Open in Camera Raw

1. Open Adobe Bridge and navigate to the folder containing the digital images (DNG files).

2. Select the appropriate images (including images with color chart/gray card).

3. Use the “File” menu to select “Open in Camera Raw”

[/wptabcontent]

[wptabtitle] BATCH WHITE BALANCE – 2 [/wptabtitle] [wptabcontent]

Batch white balance, image processing, and exporting with Adobe – Part 2 : Camera Raw tool

4. Camera Raw will open and all of the selected images will appear on the left side of the window. Select the image with the color chart/gray card you would like to use for white balancing and other adjustments. Do all adjustments to this one image. We will apply the same changes to all images in the following slide ‘Batch Image Adjustment’.

Adobe Camera Raw - Image Processing Settings

Adobe Camera Raw – Image Processing Settings

5. By default, Camera Raw may attempt to apply a number of image processing settings that you should remove. This can be done using the interface on the right hand side of the screen. Check that all settings (with the exception of Temperature and Tint, which are set by the white balance tool in the next step) are set to zero. Be sure to check under each of the tabs.

6. Select the “Color Sampler Tool”  found in tool bar at the top of the window and:

A. If using a color chart, add a color sample inside the black and white squares. After adding these you should see the RGB pixel values for each sample.

B. If using a gray card, add a color sample inside the gray portion of the card.

7. Select the “White Balance Tool” from the tool bar at the top of the window and click on the gray portion of the chart (or card) to apply a white balance. At the same time, notice how the RGB values of the color sample(s) change. The RGB values should not differ by more than five or six (e.g. the white sample could be R: 50, G: 50, B: 51). If they differ by too much there could be a problem with the white balance. Try clicking a slightly different spot in the gray portion of the chart.

8. If other adjustments need to be made (i.e. exposure, brightness, contrast) make them now.

[/wptabcontent]

[wptabtitle] BATCH IMAGE ADJUSTMENTS [/wptabtitle] [wptabcontent]

Applying adjustments to all

Once the white balance and adjustments have been made to this one image, we can apply the same to all the other images open in Camera Raw.

To do this, click “Select All” in the top left corner of the window – then click “Synchronize.” Wait for this to finish.

[/wptabcontent]

[wptabtitle] BATCH SAVE TO JPEG OR TIFF [/wptabtitle] [wptabcontent]

Saving

Once the Synchronization is complete, click the “Save Images” in the bottom left corner of the window (make sure all images are still selected). The “Save Options” dialog allows you to choose a folder for the images to be saved to, a naming scheme, a file extension and format, and a quality/compression. Choose the settings you prefer and click “Save.”

[/wptabcontent]

[/wptabcontent]

[wptabtitle] CONTINUE TO… [/wptabtitle] [wptabcontent]

Continue to PhotoScan – Basic Processing for Photogrammetry

[/wptabs]

]]>
Masking Photos in Photoscan /photogrammetry/software-photogrammetry/studio-clouds-software-photogrammetry/workflow-studio-clouds-software-photogrammetry/photoscan-pro/ Thu, 07 Jun 2012 18:18:59 +0000 /?p=10103 Continue reading ]]> This series will show you how to create 3d models from photographs using Agisoft Photoscan.
Hint: You can click on any image to see a larger version.

Photoscan will guide you through a series of steps to create a 3D model from a collection of photographs. Sometimes your photos are not perfect; objects are present that you do not want to have in the final model, or there is a lot of empty foreground in some of the images. In these cases masking unwanted areas of the photos is an important part of the project. This post shows you how to mask images for use in a Photoscan project.

[wptabs mode=”vertical”] [wptabtitle] Important Buttons and Menus in Photoscan[/wptabtitle] [wptabcontent]Photoscan gives you access to a number of menus. On the left hand side of the screen is the project tree, which lists photos included in the project. At the bottom of the screen you will find the console, which shows information on the commands being executed. Here you will also find buttons to save the console output to a log file. On the right hand side of the screen you will find thumbnails of the photos which belong to the project. Access to the main menu and shortcut buttons are along the top of the screen. The central window shows the model itself.


[/wptabcontent]
[wptabtitle] Start a Photoscan Project[/wptabtitle] [wptabcontent]You will always start a new photoscan project by adding photographs. If you are working with a relatively small number of photos you can add them all at once. Go to ‘Workflow’ and then ‘Add Photos’ in the main menu. [/wptabcontent]
[wptabtitle]The Masking Toolbar[/wptabtitle]
[wptabcontent]Double click on the thumbnail of a photo in the right-hand menu. When the photo opens you will have access to a new set of tools in the top menu. The tools all allow you to interactively select parts of the photo and add them to or subtract them from the mask.
[/wptabcontent]
[wptabtitle]Create a Mask[/wptabtitle]
[wptabcontent]Simply select the undesired parts of each photo and add them to the mask. Masks will save automatically within the project. It is also possible to create masks in Adobe Photoshop, in the alpha channel of the image, and to import them into Photscan by selecting ‘Tools’ and ‘Import Mask’. In this case, a surveying rod has been left in the area, and we would like to exclude it from the model, so we mask it out.


[/wptabcontent]
[wptabtitle]Align Images[/wptabtitle]
[wptabcontent]From the main menu, select ‘Workflow’ and ‘Align Images’. You will now see that the option to ‘constrain by match’ is checked.

[/wptabcontent]
[wptabtitle]Build Geometry[/wptabtitle]
[wptabcontent]Once the alignment has been calculated, select ‘Workflow’ and ‘Build Geometry’ from the main menu. Objects hidden by the mask should not appear in the final model. In this example the surveying rod is seamlessly removed from the final model.

Final model produced from masked images

Masked photo used to produce the final model. Note the position of the surveying rod.


[/wptabcontent]
[/wptabs]

]]>