<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>http://micmac.ensg.eu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Luc+Girod</id>
		<title>MicMac - Contributions de l’utilisateur [fr]</title>
		<link rel="self" type="application/atom+xml" href="http://micmac.ensg.eu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Luc+Girod"/>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php/Sp%C3%A9cial:Contributions/Luc_Girod"/>
		<updated>2026-04-15T07:14:25Z</updated>
		<subtitle>Contributions de l’utilisateur</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Historical_Orthoimage&amp;diff=3172</id>
		<title>Historical Orthoimage</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Historical_Orthoimage&amp;diff=3172"/>
				<updated>2022-09-14T12:41:23Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Relative orientation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px|link=Tutorials]] [[Tutorials|Tutorials index]]&lt;br /&gt;
=Description=&lt;br /&gt;
This tutorial will present the method to process historical aerial images into DEM and Orthoimages. With this kind of products, you can monitor changes in an arean (urbanization, landscape changes, etc...). &lt;br /&gt;
&lt;br /&gt;
The USGS NAPP program offers a large amount of free scanned images over the continental US (mostly), often with calibration data, though the [https://earthexplorer.usgs.gov/ Earth Explorer].&lt;br /&gt;
&lt;br /&gt;
If you are looking for a special area in France, you can use the Geoportail ([[IGN]]) to download your own images and process it.&lt;br /&gt;
&lt;br /&gt;
This tutorial is mostly designed and maintained by [[Luc Girod]], if you have questions about it, please get in touch with him.&lt;br /&gt;
&lt;br /&gt;
=Download=&lt;br /&gt;
&lt;br /&gt;
=Presentation=&lt;br /&gt;
&lt;br /&gt;
=Tutorial=&lt;br /&gt;
&lt;br /&gt;
==Internal Orientation==&lt;br /&gt;
MicMac use EXIF metadat in order to determine image format and focal length. However, historical images often don't have such metadata, so we have first to create a xml file called &amp;lt;i&amp;gt;MicMac-LocalChantierDescripteur.xml&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;MicMac-LocalChantierDescripteur.xml&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;Change the values according to your camera.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Global&amp;gt;&lt;br /&gt;
  &amp;lt;ChantierDescripteur &amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Define a camera model (name and sensor/film size) --&amp;gt;&lt;br /&gt;
    &amp;lt;LocCamDataBase&amp;gt;&lt;br /&gt;
        &amp;lt;CameraEntry&amp;gt;&lt;br /&gt;
              &amp;lt;Name&amp;gt; ZeissRMKATOP15  &amp;lt;/Name&amp;gt;&lt;br /&gt;
              &amp;lt;SzCaptMm&amp;gt;  226.004 226.008  &amp;lt;/SzCaptMm&amp;gt; &amp;lt;!-- MidSideFiducials or &amp;quot;MaxFidX-MinFidX MaxFidY-MinFidY&amp;quot;--&amp;gt;&lt;br /&gt;
              &amp;lt;ShortName&amp;gt; Zeiss RMK A Top15* and Zeiss Pleogon A3/4 &amp;lt;/ShortName&amp;gt;&lt;br /&gt;
         &amp;lt;/CameraEntry&amp;gt;&lt;br /&gt;
    &amp;lt;/LocCamDataBase&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Associate images to a camera model --&amp;gt;&lt;br /&gt;
    &amp;lt;KeyedNamesAssociations&amp;gt;&lt;br /&gt;
            &amp;lt;Calcs&amp;gt;&lt;br /&gt;
                 &amp;lt;Arrite&amp;gt;  1 1 &amp;lt;/Arrite&amp;gt;&lt;br /&gt;
                 &amp;lt;Direct&amp;gt;&lt;br /&gt;
                       &amp;lt;PatternTransform&amp;gt; .*  &amp;lt;/PatternTransform&amp;gt; &amp;lt;!-- Regular expressions of the group of images with the following camera model --&amp;gt;&lt;br /&gt;
                       &amp;lt;CalcName&amp;gt; ZeissRMKATOP15 &amp;lt;/CalcName&amp;gt; &amp;lt;!-- Name of the camera for these images --&amp;gt;&lt;br /&gt;
                 &amp;lt;/Direct&amp;gt;&lt;br /&gt;
             &amp;lt;/Calcs&amp;gt;&lt;br /&gt;
             &amp;lt;Key&amp;gt;   NKS-Assoc-STD-CAM &amp;lt;/Key&amp;gt;&lt;br /&gt;
    &amp;lt;/KeyedNamesAssociations&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
    &amp;lt;!-- Associate images to a focal length --&amp;gt;&lt;br /&gt;
    &amp;lt;KeyedNamesAssociations&amp;gt;&lt;br /&gt;
            &amp;lt;Calcs&amp;gt;&lt;br /&gt;
                 &amp;lt;Arrite&amp;gt;  1 1 &amp;lt;/Arrite&amp;gt;&lt;br /&gt;
                 &amp;lt;Direct&amp;gt;&lt;br /&gt;
                       &amp;lt;PatternTransform&amp;gt; .*  &amp;lt;/PatternTransform&amp;gt; &amp;lt;!-- Regular expressions of the group of images with the following focal length --&amp;gt;&lt;br /&gt;
                       &amp;lt;CalcName&amp;gt; 153.664 &amp;lt;/CalcName&amp;gt;	&amp;lt;!-- See calibration report --&amp;gt;&lt;br /&gt;
                 &amp;lt;/Direct&amp;gt;&lt;br /&gt;
             &amp;lt;/Calcs&amp;gt;&lt;br /&gt;
             &amp;lt;Key&amp;gt;   NKS-Assoc-STD-FOC  &amp;lt;/Key&amp;gt;&lt;br /&gt;
    &amp;lt;/KeyedNamesAssociations&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
  &amp;lt;/ChantierDescripteur&amp;gt;&lt;br /&gt;
&amp;lt;/Global&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scanned images also need to be normalized so the calibration is the same for all images. In order to achieve that, the fiducial marks coordinates need to be know both in film space (these values should be in the calibration report) and in image space.&lt;br /&gt;
[[Image:FiducialCoord.png|thumb|250px||alt=FiducialCoord|Fiducial Coordinates from USGS Report No. OSL/2782]]&lt;br /&gt;
&lt;br /&gt;
To report the film space coordinates to MicMac , you need to create an xml file called &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; in a sub folder called &amp;lt;i&amp;gt;Ori-InterneScan&amp;lt;/i&amp;gt;. MicMac requires the origin of the system to be the top left corner, so  the coordinates from the calibration files (that usually are centered in the center of the image, with the Y axis going upwards) need to be manipulated : Y axis inverted (Yinv=-Y) and then the coordinates translated (X'=X-Xmin and Y'=Yinv-Yinv_min). Be careful with calibration files that might use different names for the fiducial marks than the ones printed on the images, and also the orientation of the images that may be wrong.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; corresponding to USGS Report No. OSL/2782 --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;Change the values according to your camera.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;MesureAppuiFlottant1Im&amp;gt;&lt;br /&gt;
     &amp;lt;NameIm&amp;gt;Glob&amp;lt;/NameIm&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P1&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;1.0040  226.9950&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P2&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9920    0.9960&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P3&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;0.9960    1.0070&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P4&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9930  226.9950&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P5&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;0.9940  114.0040&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P6&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9980  113.9940&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P7&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;114.0000    1.0060&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P8&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;113.9950  227.0140&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
&amp;lt;/MesureAppuiFlottant1Im&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to input the image coordinate of the fiducial marks, you should use the SaisieAppuisInit command on each image like this (&amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt; is a text file with a point name on each line, see example bellow. BE CAREFULL TO NAME THE POINTS THE SAME WAY IN THE &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; and the &amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt;).&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
P1&lt;br /&gt;
P2&lt;br /&gt;
P3&lt;br /&gt;
P4&lt;br /&gt;
P5&lt;br /&gt;
P6&lt;br /&gt;
P7&lt;br /&gt;
P8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisInit &amp;quot;AN_IMAGE_NAME.tif&amp;quot; NONE id_fiducial.txt MeasuresIm-AN_IMAGE_NAME.tif.xml &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The resulting &amp;lt;i&amp;gt;MeasuresIm-AN_IMAGE_NAME.tif-S2D.xml&amp;lt;/i&amp;gt; file (created in the image folder) should be moved in the &amp;lt;i&amp;gt;Ori-InterneScan&amp;lt;/i&amp;gt; directory and renamed &amp;lt;i&amp;gt;MeasuresIm-AN_IMAGE_NAME.tif.xml&amp;lt;/i&amp;gt; (note the removal of &amp;quot;-S2D&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
If you have images where the fiducial marks are easily recognizable (they look like targets, not just a dot), and if the images are already close to be aligned (close to the value of SearchIncertitude, in pixels), you can use Kugelhupf to compute the position of the points starting with the second image (appearance and position of the points are dictated by the first image that you processed manually).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Kugelhupf .*tif Ori-InterneScan/MeasuresIm-AN_IMAGE_NAME.tif.xml SearchIncertitude= ??&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then all the images can be re-sampled to fit in the same geometry and can therefore be processed like digital images. The user need to input the scan resolution (in the example line, 0.025 -&amp;gt; 0.025mm=25microns). This process is slow (ca. a minute per image), but is parallelized. Note the use of the '''BoxCh''' option, which is critical to ensure that the final image is indeed the size described in the ''&amp;lt;SzCaptMm&amp;gt;'' tag of &amp;lt;i&amp;gt;MicMac-LocalChantierDescripteur.xml&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d ReSampFid &amp;quot;.*.tif&amp;quot; 0.025 BoxCh=[0,0,226.004,226.008]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The user should then move the original images to a sub-folder, or state OIS.*.tif as the regular expression in futur steps.&lt;br /&gt;
&lt;br /&gt;
== Relative orientation ==&lt;br /&gt;
First, you need to find tie points between your images:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapioca MulScale &amp;quot;OIS.*tif&amp;quot; 1000 2500&amp;lt;/pre&amp;gt;&lt;br /&gt;
Be aware that you shouldn't use a very high resolution for finding tie points in scanned because of both the usually very large image files and the noise often present in scanned data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;If camera postions are (approximately) known&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
If you have the position of the camera for each image (set in a txt file similar to a GCP file), you can create a file with the reference of images potentially in contact (sometimes, the info is printed on the images). In that case, run this instead of the aforementioned Tapioca command:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d OriConvert OriTxtInFile GPS_sommets.txt Sommets NameCple=Couples.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapioca File Couples.xml 2000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To be able to ignore the fiducial marks and other inscriptions on the images that would yield nonsensical tie points, a mask need to be created.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieMasq &amp;quot;OIS-AN_IMAGE_NAME.tif&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once created, the mask should be renamed &amp;lt;i&amp;gt;filtre.tif&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d HomolFilterMasq &amp;quot;OIS.*tif&amp;quot; GlobalMasq=filtre.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because historical images were typically taken with long focal lenses, only at a nadir point of view and with limited overlap, the calibration is not very stable. A good way to constrain it is by fixing the focal length at the value stated in the calibration report, hence the &amp;lt;i&amp;gt;LibFoc=0&amp;lt;/i&amp;gt; option in Tapas.&lt;br /&gt;
&lt;br /&gt;
In a case where a lot of images are processed, it can be better to setup the calibration on a limited set of images (block of 4-6 images where plenty of tie points are identified (no water of soft snow for instance).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS-image(1|2|3|4).tif&amp;quot; Out=CalibInit SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then run the whole set with the calibration as input:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS.*tif&amp;quot; InCal=CalibInit Out=Relative SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;If you only have a limited amount of image (&amp;lt;10?) &amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
For less images, one can simply run :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS.*tif&amp;quot; Out=Relative SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To visualize the relative orientation, creating the [[AperiCloud]] is the key. You may be able to identify problems this way that the residuals of the orientation were not necessarily showing (mostly the division in two or more weakly linked groups instead of a singly one).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;OIS.*tif&amp;quot; Relative SH=HomolMasqFiltered&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;meshlab AperiCloud_Relative.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Absolute orientation ==&lt;br /&gt;
&lt;br /&gt;
The first step here is to create a file with your GCPs for MicMac. MicMac expect a specific xml format, but a command also exists to convert simple texte files into the appropriate xml. You have to create a file in the following fashion :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;GCPs.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#F= N X Y Z&lt;br /&gt;
#Here the coordinates are in UTM 33N X=Easting Y=Northing Z=Altitude&lt;br /&gt;
GCP1 423950 8768700 1.413939&lt;br /&gt;
GCP2 421730 8768400 3.502413&lt;br /&gt;
GCP3 423030 8766680 26.171211&lt;br /&gt;
GCP4 422150 8765210 10.431505&lt;br /&gt;
GCP5 423610 8764120 34.835030&lt;br /&gt;
GCP6 423770 8763350 26.425682&lt;br /&gt;
GCP7 425080 8763420 524.369446&lt;br /&gt;
GCP8 425670 8761310 392.590851&lt;br /&gt;
GCP9 427900 8760000 621.036926&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The points can be given in any type of coordinates and be transposed, but MicMac requires a somehow Euclidean system to work with (not Lat Long, but Easting Northing).&lt;br /&gt;
To convert the points in MicMac xml format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert AppInFile GCPs.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Using MicMac to convert to your system of choice --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you give your GCPs in Lat Long format, you have to:&lt;br /&gt;
*In GCPs.txt, put #F=N Y X Z (because Latitude is the Y axis)&lt;br /&gt;
*Create a file describing the output coordinate system (see MySystem.xml bellow)&lt;br /&gt;
*Run a slightly different GCPConvert command (see bellow)&lt;br /&gt;
&lt;br /&gt;
This example of MySystem.xml is for UTM 32N.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;SystemeCoord&amp;gt;&lt;br /&gt;
         &amp;lt;BSC&amp;gt;&lt;br /&gt;
            &amp;lt;TypeCoord&amp;gt;  eTC_Proj4 &amp;lt;/TypeCoord&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxStr&amp;gt;  +proj=utm +zone=32 +north +ellps=WGS84 +datum=WGS84 +units=m +no_defs   &amp;lt;/AuxStr&amp;gt; &amp;lt;!-- Input here your coordinate system in the &amp;quot;proj4&amp;quot; format --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;/BSC&amp;gt;&lt;br /&gt;
&amp;lt;/SystemeCoord&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert AppInFile GCPs.txt ChgSys=DegreeWGS84@MySystem.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also use &amp;quot;ChgSys=MySystem1.xml@MySystem2.xml&amp;quot; if your input is in a different specified system.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then move on to inputing your GCPs in your images.&lt;br /&gt;
First, input a few ground control points (GCPs) on a few images (here, on 3 images only), to give a first approximation of the geo-referencing. You can provide the name of your GCPs in a texte file here called id_GCPs.txt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;id_GCPs.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GCP1&lt;br /&gt;
GCP2&lt;br /&gt;
GCP3&lt;br /&gt;
GCP4&lt;br /&gt;
GCP5&lt;br /&gt;
GCP6&lt;br /&gt;
GCP7&lt;br /&gt;
GCP8&lt;br /&gt;
GCP9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisInit &amp;quot;OIS-image1.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&lt;br /&gt;
mm3d SaisieAppuisInit &amp;quot;OIS-image2.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&lt;br /&gt;
mm3d SaisieAppuisInit &amp;quot;OIS-image3.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use these points to get into the cartographic coordinate of the GCPs.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;OIS-.*tif&amp;quot; Relative TerrainInit GCPs.xml MeasuresInit-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then input all the GCPs on all the images (or at least quite a few), using pre-pointed approximate GCPs:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisPredic &amp;quot;OIS-imageN.tif&amp;quot; TerrainInit GCPs.xml MeasuresFinales.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, use these points (now more numerous) to get into the cartographic coordinate of the GCPs.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;OIS-.*tif&amp;quot; TerrainInit TerrainBrut GCPs.xml  MeasuresFinales-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Perform a bundle adjustment and a refinement of the camera calibration using the GCPs. The numerical values in the GCP option are the estimate of the quality of your GCPs (the first in meters in the world coordinate and the second in pixels in your input).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari &amp;quot;OIS-.*tif&amp;quot; TerrainBrut TerrainFinal GCP=[GCPs.xml,5,MeasuresFinales-S2D.xml,2] SH=HomolMasqFiltered AllFree=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Visualize if wanted:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;OIS-.*tif&amp;quot; TerrainFinal SH=HomolMasqFiltered&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;meshlab AperiCloud_TerrainFinal.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DEM processing and orthorectification==&lt;br /&gt;
&lt;br /&gt;
Create a pseudo orthoimage (with a &amp;quot;flat&amp;quot; terrain as target) to be able to draw a mask on the approximate area of interest.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tarama &amp;quot;OIS-.*tif&amp;quot; TerrainFinal&lt;br /&gt;
mm3d SaisieMasq TA/TA_LeChantier.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compute the DEM (DEM is the file called ''MEC-Malt/Z_Num7_DeZoom2_STD-MALT.tif'' , or similar).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Malt Ortho &amp;quot;OIS-.*tif&amp;quot; TerrainFinal MasqImGlob=filtre.tif NbVI=2 ZoomF=2 ResolTerrain=0.5 DefCor=0 CostTrans=4 EZA=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the DEM is generated, other products can be generated :&lt;br /&gt;
&lt;br /&gt;
*An Orthoimage:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tawny Ortho-MEC-Malt Out=Orthophotomosaic.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*A point cloud (drapped with the ortho image):&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Nuage2Ply MEC-Malt/NuageImProf_STD-MALT_Etape_7.xml Attr=Ortho-MEC-Malt/Orthophotomosaic.tif Out=PointCloud.ply&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Historical_Orthoimage&amp;diff=3171</id>
		<title>Historical Orthoimage</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Historical_Orthoimage&amp;diff=3171"/>
				<updated>2022-09-14T12:37:21Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px|link=Tutorials]] [[Tutorials|Tutorials index]]&lt;br /&gt;
=Description=&lt;br /&gt;
This tutorial will present the method to process historical aerial images into DEM and Orthoimages. With this kind of products, you can monitor changes in an arean (urbanization, landscape changes, etc...). &lt;br /&gt;
&lt;br /&gt;
The USGS NAPP program offers a large amount of free scanned images over the continental US (mostly), often with calibration data, though the [https://earthexplorer.usgs.gov/ Earth Explorer].&lt;br /&gt;
&lt;br /&gt;
If you are looking for a special area in France, you can use the Geoportail ([[IGN]]) to download your own images and process it.&lt;br /&gt;
&lt;br /&gt;
This tutorial is mostly designed and maintained by [[Luc Girod]], if you have questions about it, please get in touch with him.&lt;br /&gt;
&lt;br /&gt;
=Download=&lt;br /&gt;
&lt;br /&gt;
=Presentation=&lt;br /&gt;
&lt;br /&gt;
=Tutorial=&lt;br /&gt;
&lt;br /&gt;
==Internal Orientation==&lt;br /&gt;
MicMac use EXIF metadat in order to determine image format and focal length. However, historical images often don't have such metadata, so we have first to create a xml file called &amp;lt;i&amp;gt;MicMac-LocalChantierDescripteur.xml&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;MicMac-LocalChantierDescripteur.xml&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;Change the values according to your camera.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Global&amp;gt;&lt;br /&gt;
  &amp;lt;ChantierDescripteur &amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Define a camera model (name and sensor/film size) --&amp;gt;&lt;br /&gt;
    &amp;lt;LocCamDataBase&amp;gt;&lt;br /&gt;
        &amp;lt;CameraEntry&amp;gt;&lt;br /&gt;
              &amp;lt;Name&amp;gt; ZeissRMKATOP15  &amp;lt;/Name&amp;gt;&lt;br /&gt;
              &amp;lt;SzCaptMm&amp;gt;  226.004 226.008  &amp;lt;/SzCaptMm&amp;gt; &amp;lt;!-- MidSideFiducials or &amp;quot;MaxFidX-MinFidX MaxFidY-MinFidY&amp;quot;--&amp;gt;&lt;br /&gt;
              &amp;lt;ShortName&amp;gt; Zeiss RMK A Top15* and Zeiss Pleogon A3/4 &amp;lt;/ShortName&amp;gt;&lt;br /&gt;
         &amp;lt;/CameraEntry&amp;gt;&lt;br /&gt;
    &amp;lt;/LocCamDataBase&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Associate images to a camera model --&amp;gt;&lt;br /&gt;
    &amp;lt;KeyedNamesAssociations&amp;gt;&lt;br /&gt;
            &amp;lt;Calcs&amp;gt;&lt;br /&gt;
                 &amp;lt;Arrite&amp;gt;  1 1 &amp;lt;/Arrite&amp;gt;&lt;br /&gt;
                 &amp;lt;Direct&amp;gt;&lt;br /&gt;
                       &amp;lt;PatternTransform&amp;gt; .*  &amp;lt;/PatternTransform&amp;gt; &amp;lt;!-- Regular expressions of the group of images with the following camera model --&amp;gt;&lt;br /&gt;
                       &amp;lt;CalcName&amp;gt; ZeissRMKATOP15 &amp;lt;/CalcName&amp;gt; &amp;lt;!-- Name of the camera for these images --&amp;gt;&lt;br /&gt;
                 &amp;lt;/Direct&amp;gt;&lt;br /&gt;
             &amp;lt;/Calcs&amp;gt;&lt;br /&gt;
             &amp;lt;Key&amp;gt;   NKS-Assoc-STD-CAM &amp;lt;/Key&amp;gt;&lt;br /&gt;
    &amp;lt;/KeyedNamesAssociations&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
    &amp;lt;!-- Associate images to a focal length --&amp;gt;&lt;br /&gt;
    &amp;lt;KeyedNamesAssociations&amp;gt;&lt;br /&gt;
            &amp;lt;Calcs&amp;gt;&lt;br /&gt;
                 &amp;lt;Arrite&amp;gt;  1 1 &amp;lt;/Arrite&amp;gt;&lt;br /&gt;
                 &amp;lt;Direct&amp;gt;&lt;br /&gt;
                       &amp;lt;PatternTransform&amp;gt; .*  &amp;lt;/PatternTransform&amp;gt; &amp;lt;!-- Regular expressions of the group of images with the following focal length --&amp;gt;&lt;br /&gt;
                       &amp;lt;CalcName&amp;gt; 153.664 &amp;lt;/CalcName&amp;gt;	&amp;lt;!-- See calibration report --&amp;gt;&lt;br /&gt;
                 &amp;lt;/Direct&amp;gt;&lt;br /&gt;
             &amp;lt;/Calcs&amp;gt;&lt;br /&gt;
             &amp;lt;Key&amp;gt;   NKS-Assoc-STD-FOC  &amp;lt;/Key&amp;gt;&lt;br /&gt;
    &amp;lt;/KeyedNamesAssociations&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
  &amp;lt;/ChantierDescripteur&amp;gt;&lt;br /&gt;
&amp;lt;/Global&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scanned images also need to be normalized so the calibration is the same for all images. In order to achieve that, the fiducial marks coordinates need to be know both in film space (these values should be in the calibration report) and in image space.&lt;br /&gt;
[[Image:FiducialCoord.png|thumb|250px||alt=FiducialCoord|Fiducial Coordinates from USGS Report No. OSL/2782]]&lt;br /&gt;
&lt;br /&gt;
To report the film space coordinates to MicMac , you need to create an xml file called &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; in a sub folder called &amp;lt;i&amp;gt;Ori-InterneScan&amp;lt;/i&amp;gt;. MicMac requires the origin of the system to be the top left corner, so  the coordinates from the calibration files (that usually are centered in the center of the image, with the Y axis going upwards) need to be manipulated : Y axis inverted (Yinv=-Y) and then the coordinates translated (X'=X-Xmin and Y'=Yinv-Yinv_min). Be careful with calibration files that might use different names for the fiducial marks than the ones printed on the images, and also the orientation of the images that may be wrong.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; corresponding to USGS Report No. OSL/2782 --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;Change the values according to your camera.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;MesureAppuiFlottant1Im&amp;gt;&lt;br /&gt;
     &amp;lt;NameIm&amp;gt;Glob&amp;lt;/NameIm&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P1&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;1.0040  226.9950&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P2&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9920    0.9960&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P3&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;0.9960    1.0070&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P4&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9930  226.9950&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P5&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;0.9940  114.0040&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P6&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9980  113.9940&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P7&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;114.0000    1.0060&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P8&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;113.9950  227.0140&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
&amp;lt;/MesureAppuiFlottant1Im&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to input the image coordinate of the fiducial marks, you should use the SaisieAppuisInit command on each image like this (&amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt; is a text file with a point name on each line, see example bellow. BE CAREFULL TO NAME THE POINTS THE SAME WAY IN THE &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; and the &amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt;).&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
P1&lt;br /&gt;
P2&lt;br /&gt;
P3&lt;br /&gt;
P4&lt;br /&gt;
P5&lt;br /&gt;
P6&lt;br /&gt;
P7&lt;br /&gt;
P8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisInit &amp;quot;AN_IMAGE_NAME.tif&amp;quot; NONE id_fiducial.txt MeasuresIm-AN_IMAGE_NAME.tif.xml &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The resulting &amp;lt;i&amp;gt;MeasuresIm-AN_IMAGE_NAME.tif-S2D.xml&amp;lt;/i&amp;gt; file (created in the image folder) should be moved in the &amp;lt;i&amp;gt;Ori-InterneScan&amp;lt;/i&amp;gt; directory and renamed &amp;lt;i&amp;gt;MeasuresIm-AN_IMAGE_NAME.tif.xml&amp;lt;/i&amp;gt; (note the removal of &amp;quot;-S2D&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
If you have images where the fiducial marks are easily recognizable (they look like targets, not just a dot), and if the images are already close to be aligned (close to the value of SearchIncertitude, in pixels), you can use Kugelhupf to compute the position of the points starting with the second image (appearance and position of the points are dictated by the first image that you processed manually).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Kugelhupf .*tif Ori-InterneScan/MeasuresIm-AN_IMAGE_NAME.tif.xml SearchIncertitude= ??&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then all the images can be re-sampled to fit in the same geometry and can therefore be processed like digital images. The user need to input the scan resolution (in the example line, 0.025 -&amp;gt; 0.025mm=25microns). This process is slow (ca. a minute per image), but is parallelized. Note the use of the '''BoxCh''' option, which is critical to ensure that the final image is indeed the size described in the ''&amp;lt;SzCaptMm&amp;gt;'' tag of &amp;lt;i&amp;gt;MicMac-LocalChantierDescripteur.xml&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d ReSampFid &amp;quot;.*.tif&amp;quot; 0.025 BoxCh=[0,0,226.004,226.008]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The user should then move the original images to a sub-folder, or state OIS.*.tif as the regular expression in futur steps.&lt;br /&gt;
&lt;br /&gt;
== Relative orientation ==&lt;br /&gt;
First, you need to find tie points between your images:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapioca MulScale &amp;quot;OIS.*tif&amp;quot; 1000 2500&amp;lt;/pre&amp;gt;&lt;br /&gt;
Be aware that you shouldn't use a very high resolution for finding tie points in scanned because of both the usually very large image files and the noise often present in scanned data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;If camera postions are (approximately) known&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
If you have the position of the camera for each image (set in a txt file similar to a GCP file), you can create a file with the reference of images potentially in contact (sometimes, the info is printed on the images). In that case, run this instead of the aforementioned Tapioca command:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d OriConvert OriTxtInFile GPS_sommets.txt Sommets NameCple=Couples.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapioca File Couples.xml 2000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To be able to ignore the fiducial marks and other inscriptions on the images that would yield nonsensical tie points, a mask need to be created.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieMasq &amp;quot;OIS-image.tif&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once created, the mask should be renamed &amp;lt;i&amp;gt;filtre.tif&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d HomolFilterMasq &amp;quot;OIS.*tif&amp;quot; GlobalMasq=filtre.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because historical images were typically taken with long focal lenses, only at a nadir point of view and with limited overlap, the calibration is not very stable. A good way to constrain it is by fixing the focal length at the value stated in the calibration report, hence the &amp;lt;i&amp;gt;LibFoc=0&amp;lt;/i&amp;gt; option in Tapas.&lt;br /&gt;
&lt;br /&gt;
In a case where a lot of images are processed, it can be better to setup the calibration on a limited set of images (block of 4-6 images where plenty of tie points are identified (no water of soft snow for instance).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS-image(1|2|3|4).tif&amp;quot; Out=CalibInit SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then run the whole set with the calibration as input:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS.*tif&amp;quot; InCal=CalibInit Out=Relative SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;If you only have a limited amount of image (&amp;lt;10?) &amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
For less images, one can simply run :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS.*tif&amp;quot; Out=Relative SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To visualize the relative orientation, creating the [[AperiCloud]] is the key. You may be able to identify problems this way that the residuals of the orientation were not necessarily showing (mostly the division in two or more weakly linked groups instead of a singly one).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;OIS.*tif&amp;quot; Relative SH=HomolMasqFiltered&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;meshlab AperiCloud_Relative.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Absolute orientation ==&lt;br /&gt;
&lt;br /&gt;
The first step here is to create a file with your GCPs for MicMac. MicMac expect a specific xml format, but a command also exists to convert simple texte files into the appropriate xml. You have to create a file in the following fashion :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;GCPs.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#F= N X Y Z&lt;br /&gt;
#Here the coordinates are in UTM 33N X=Easting Y=Northing Z=Altitude&lt;br /&gt;
GCP1 423950 8768700 1.413939&lt;br /&gt;
GCP2 421730 8768400 3.502413&lt;br /&gt;
GCP3 423030 8766680 26.171211&lt;br /&gt;
GCP4 422150 8765210 10.431505&lt;br /&gt;
GCP5 423610 8764120 34.835030&lt;br /&gt;
GCP6 423770 8763350 26.425682&lt;br /&gt;
GCP7 425080 8763420 524.369446&lt;br /&gt;
GCP8 425670 8761310 392.590851&lt;br /&gt;
GCP9 427900 8760000 621.036926&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The points can be given in any type of coordinates and be transposed, but MicMac requires a somehow Euclidean system to work with (not Lat Long, but Easting Northing).&lt;br /&gt;
To convert the points in MicMac xml format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert AppInFile GCPs.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Using MicMac to convert to your system of choice --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you give your GCPs in Lat Long format, you have to:&lt;br /&gt;
*In GCPs.txt, put #F=N Y X Z (because Latitude is the Y axis)&lt;br /&gt;
*Create a file describing the output coordinate system (see MySystem.xml bellow)&lt;br /&gt;
*Run a slightly different GCPConvert command (see bellow)&lt;br /&gt;
&lt;br /&gt;
This example of MySystem.xml is for UTM 32N.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;SystemeCoord&amp;gt;&lt;br /&gt;
         &amp;lt;BSC&amp;gt;&lt;br /&gt;
            &amp;lt;TypeCoord&amp;gt;  eTC_Proj4 &amp;lt;/TypeCoord&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxStr&amp;gt;  +proj=utm +zone=32 +north +ellps=WGS84 +datum=WGS84 +units=m +no_defs   &amp;lt;/AuxStr&amp;gt; &amp;lt;!-- Input here your coordinate system in the &amp;quot;proj4&amp;quot; format --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;/BSC&amp;gt;&lt;br /&gt;
&amp;lt;/SystemeCoord&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert AppInFile GCPs.txt ChgSys=DegreeWGS84@MySystem.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also use &amp;quot;ChgSys=MySystem1.xml@MySystem2.xml&amp;quot; if your input is in a different specified system.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then move on to inputing your GCPs in your images.&lt;br /&gt;
First, input a few ground control points (GCPs) on a few images (here, on 3 images only), to give a first approximation of the geo-referencing. You can provide the name of your GCPs in a texte file here called id_GCPs.txt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;id_GCPs.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GCP1&lt;br /&gt;
GCP2&lt;br /&gt;
GCP3&lt;br /&gt;
GCP4&lt;br /&gt;
GCP5&lt;br /&gt;
GCP6&lt;br /&gt;
GCP7&lt;br /&gt;
GCP8&lt;br /&gt;
GCP9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisInit &amp;quot;OIS-image1.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&lt;br /&gt;
mm3d SaisieAppuisInit &amp;quot;OIS-image2.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&lt;br /&gt;
mm3d SaisieAppuisInit &amp;quot;OIS-image3.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use these points to get into the cartographic coordinate of the GCPs.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;OIS-.*tif&amp;quot; Relative TerrainInit GCPs.xml MeasuresInit-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then input all the GCPs on all the images (or at least quite a few), using pre-pointed approximate GCPs:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisPredic &amp;quot;OIS-imageN.tif&amp;quot; TerrainInit GCPs.xml MeasuresFinales.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, use these points (now more numerous) to get into the cartographic coordinate of the GCPs.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;OIS-.*tif&amp;quot; TerrainInit TerrainBrut GCPs.xml  MeasuresFinales-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Perform a bundle adjustment and a refinement of the camera calibration using the GCPs. The numerical values in the GCP option are the estimate of the quality of your GCPs (the first in meters in the world coordinate and the second in pixels in your input).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari &amp;quot;OIS-.*tif&amp;quot; TerrainBrut TerrainFinal GCP=[GCPs.xml,5,MeasuresFinales-S2D.xml,2] SH=HomolMasqFiltered AllFree=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Visualize if wanted:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;OIS-.*tif&amp;quot; TerrainFinal SH=HomolMasqFiltered&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;meshlab AperiCloud_TerrainFinal.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DEM processing and orthorectification==&lt;br /&gt;
&lt;br /&gt;
Create a pseudo orthoimage (with a &amp;quot;flat&amp;quot; terrain as target) to be able to draw a mask on the approximate area of interest.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tarama &amp;quot;OIS-.*tif&amp;quot; TerrainFinal&lt;br /&gt;
mm3d SaisieMasq TA/TA_LeChantier.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compute the DEM (DEM is the file called ''MEC-Malt/Z_Num7_DeZoom2_STD-MALT.tif'' , or similar).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Malt Ortho &amp;quot;OIS-.*tif&amp;quot; TerrainFinal MasqImGlob=filtre.tif NbVI=2 ZoomF=2 ResolTerrain=0.5 DefCor=0 CostTrans=4 EZA=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the DEM is generated, other products can be generated :&lt;br /&gt;
&lt;br /&gt;
*An Orthoimage:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tawny Ortho-MEC-Malt Out=Orthophotomosaic.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*A point cloud (drapped with the ortho image):&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Nuage2Ply MEC-Malt/NuageImProf_STD-MALT_Etape_7.xml Attr=Ortho-MEC-Malt/Orthophotomosaic.tif Out=PointCloud.ply&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Historical_Orthoimage&amp;diff=3170</id>
		<title>Historical Orthoimage</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Historical_Orthoimage&amp;diff=3170"/>
				<updated>2022-09-09T06:06:27Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px|link=Tutorials]] [[Tutorials|Tutorials index]]&lt;br /&gt;
=Description=&lt;br /&gt;
This tutorial will present the method to process historical aerial images into DEM and Orthoimages. With this kind of products, you can monitor changes in an arean (urbanization, landscape changes, etc...). &lt;br /&gt;
&lt;br /&gt;
The USGS NAPP program offers a large amount of free scanned images over the continental US (mostly), often with calibration data, though the [https://earthexplorer.usgs.gov/ Earth Explorer].&lt;br /&gt;
&lt;br /&gt;
If you are looking for a special area in France, you can use the Geoportail ([[IGN]]) to download your own images and process it.&lt;br /&gt;
&lt;br /&gt;
This tutorial is mostly designed and maintained by [[Luc Girod]], if you have questions about it, please get in touch with him.&lt;br /&gt;
&lt;br /&gt;
=Download=&lt;br /&gt;
&lt;br /&gt;
=Presentation=&lt;br /&gt;
&lt;br /&gt;
=Tutorial=&lt;br /&gt;
&lt;br /&gt;
==Internal Orientation==&lt;br /&gt;
MicMac use EXIF metadat in order to determine image format and focal length. However, historical images often don't have such metadata, so we have first to create a xml file called &amp;lt;i&amp;gt;MicMac-LocalChantierDescripteur.xml&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;MicMac-LocalChantierDescripteur.xml&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;Change the values according to your camera.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Global&amp;gt;&lt;br /&gt;
  &amp;lt;ChantierDescripteur &amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Define a camera model (name and sensor/film size) --&amp;gt;&lt;br /&gt;
    &amp;lt;LocCamDataBase&amp;gt;&lt;br /&gt;
        &amp;lt;CameraEntry&amp;gt;&lt;br /&gt;
              &amp;lt;Name&amp;gt; ZeissRMKATOP15  &amp;lt;/Name&amp;gt;&lt;br /&gt;
              &amp;lt;SzCaptMm&amp;gt;  226.004 226.008  &amp;lt;/SzCaptMm&amp;gt; &amp;lt;!-- MidSideFiducials or &amp;quot;MaxFidX-MinFidX MaxFidY-MinFidY&amp;quot;--&amp;gt;&lt;br /&gt;
              &amp;lt;ShortName&amp;gt; Zeiss RMK A Top15* and Zeiss Pleogon A3/4 &amp;lt;/ShortName&amp;gt;&lt;br /&gt;
         &amp;lt;/CameraEntry&amp;gt;&lt;br /&gt;
    &amp;lt;/LocCamDataBase&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Associate images to a camera model --&amp;gt;&lt;br /&gt;
    &amp;lt;KeyedNamesAssociations&amp;gt;&lt;br /&gt;
            &amp;lt;Calcs&amp;gt;&lt;br /&gt;
                 &amp;lt;Arrite&amp;gt;  1 1 &amp;lt;/Arrite&amp;gt;&lt;br /&gt;
                 &amp;lt;Direct&amp;gt;&lt;br /&gt;
                       &amp;lt;PatternTransform&amp;gt; .*  &amp;lt;/PatternTransform&amp;gt; &amp;lt;!-- Regular expressions of the group of images with the following camera model --&amp;gt;&lt;br /&gt;
                       &amp;lt;CalcName&amp;gt; ZeissRMKATOP15 &amp;lt;/CalcName&amp;gt; &amp;lt;!-- Name of the camera for these images --&amp;gt;&lt;br /&gt;
                 &amp;lt;/Direct&amp;gt;&lt;br /&gt;
             &amp;lt;/Calcs&amp;gt;&lt;br /&gt;
             &amp;lt;Key&amp;gt;   NKS-Assoc-STD-CAM &amp;lt;/Key&amp;gt;&lt;br /&gt;
    &amp;lt;/KeyedNamesAssociations&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
    &amp;lt;!-- Associate images to a focal length --&amp;gt;&lt;br /&gt;
    &amp;lt;KeyedNamesAssociations&amp;gt;&lt;br /&gt;
            &amp;lt;Calcs&amp;gt;&lt;br /&gt;
                 &amp;lt;Arrite&amp;gt;  1 1 &amp;lt;/Arrite&amp;gt;&lt;br /&gt;
                 &amp;lt;Direct&amp;gt;&lt;br /&gt;
                       &amp;lt;PatternTransform&amp;gt; .*  &amp;lt;/PatternTransform&amp;gt; &amp;lt;!-- Regular expressions of the group of images with the following focal length --&amp;gt;&lt;br /&gt;
                       &amp;lt;CalcName&amp;gt; 153.664 &amp;lt;/CalcName&amp;gt;	&amp;lt;!-- See calibration report --&amp;gt;&lt;br /&gt;
                 &amp;lt;/Direct&amp;gt;&lt;br /&gt;
             &amp;lt;/Calcs&amp;gt;&lt;br /&gt;
             &amp;lt;Key&amp;gt;   NKS-Assoc-STD-FOC  &amp;lt;/Key&amp;gt;&lt;br /&gt;
    &amp;lt;/KeyedNamesAssociations&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
  &amp;lt;/ChantierDescripteur&amp;gt;&lt;br /&gt;
&amp;lt;/Global&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scanned images also need to be normalized so the calibration is the same for all images. In order to achieve that, the fiducial marks coordinates need to be know both in film space (these values should be in the calibration report) and in image space.&lt;br /&gt;
[[Image:FiducialCoord.png|thumb|250px||alt=FiducialCoord|Fiducial Coordinates from USGS Report No. OSL/2782]]&lt;br /&gt;
&lt;br /&gt;
To report the film space coordinates to MicMac , you need to create an xml file called &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; in a sub folder called &amp;lt;i&amp;gt;Ori-InterneScan&amp;lt;/i&amp;gt;. MicMac requires the origin of the system to be the top left corner, so  the coordinates from the calibration files (that usually are centered in the center of the image, with the Y axis going upwards) need to be manipulated : Y axis inverted (Yinv=-Y) and then the coordinates translated (X'=X-Xmin and Y'=Yinv-Yinv_min). Be careful with calibration files that might use different names for the fiducial marks than the ones printed on the images, and also the orientation of the images that may be wrong.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; corresponding to USGS Report No. OSL/2782 --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;Change the values according to your camera.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;MesureAppuiFlottant1Im&amp;gt;&lt;br /&gt;
     &amp;lt;NameIm&amp;gt;Glob&amp;lt;/NameIm&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P1&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;1.0040  226.9950&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P2&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9920    0.9960&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P3&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;0.9960    1.0070&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P4&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9930  226.9950&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P5&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;0.9940  114.0040&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P6&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9980  113.9940&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P7&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;114.0000    1.0060&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P8&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;113.9950  227.0140&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
&amp;lt;/MesureAppuiFlottant1Im&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to input the image coordinate of the fiducial marks, you should use the SaisieAppuisInitQT command on each image like this (&amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt; is a text file with a point name on each line, see example bellow. BE CAREFULL TO NAME THE POINTS THE SAME WAY IN THE &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; and the &amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt;).&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
P1&lt;br /&gt;
P2&lt;br /&gt;
P3&lt;br /&gt;
P4&lt;br /&gt;
P5&lt;br /&gt;
P6&lt;br /&gt;
P7&lt;br /&gt;
P8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisInitQT &amp;quot;image.tif&amp;quot; NONE id_fiducial.txt MeasuresIm-image.tif.xml &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The resulting &amp;lt;i&amp;gt;MeasuresIm-image.tif-S2D.xml&amp;lt;/i&amp;gt; file (created in the image folder) should be moved in the &amp;lt;i&amp;gt;Ori-InterneScan&amp;lt;/i&amp;gt; directory and renamed &amp;lt;i&amp;gt;MeasuresIm-image.tif.xml&amp;lt;/i&amp;gt; (note the removal of &amp;quot;-S2D&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
If you have images where the fiducial marks are easily recognizable (they look like targets, not just a dot), and if the images are already close to be aligned, you can use Kugelhupf to compute the position of the points starting with the second image (appearance and position of the points are dictated by the first image that you processed manually).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Kugelhupf .*tif Ori-InterneScan/MeasuresIm-image.tif.xml SearchIncertitude= ??&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then all the images can be re-sampled to fit in the same geometry and can therefore be processed like digital images. The user need to input the scan resolution (in the example line, 0.025 -&amp;gt; 0.025mm=25microns). This process is slow (ca. a minute per image), but is parallelized. Note the use of the '''BoxCh''' option, which is critical to ensure that the final image is indeed the size described in the ''&amp;lt;SzCaptMm&amp;gt;'' tag of &amp;lt;i&amp;gt;MicMac-LocalChantierDescripteur.xml&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d ReSampFid &amp;quot;.*.tif&amp;quot; 0.025 BoxCh=[0,0,223,223]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The user should then move the original images to a sub-folder, or state OIS.*.tif as the regular expression in futur steps.&lt;br /&gt;
&lt;br /&gt;
== Relative orientation ==&lt;br /&gt;
First, you need to find tie points between your images:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapioca MulScale &amp;quot;OIS.*tif&amp;quot; 1000 2500&amp;lt;/pre&amp;gt;&lt;br /&gt;
Be aware that you shouldn't use a very high resolution for finding tie points in scanned because of both the usually very large image files and the noise often present in scanned data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;If camera postions are (approximately) known&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
If you have the position of the camera for each image (set in a txt file similar to a GCP file), you can create a file with the reference of images potentially in contact (sometimes, the info is printed on the images). In that case, run this instead of the aforementioned Tapioca command:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d OriConvert OriTxtInFile GPS_sommets.txt Sommets NameCple=Couples.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapioca File Couples.xml 2000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To be able to ignore the fiducial marks and other inscriptions on the images that would yield nonsensical tie points, a mask need to be created.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieMasqQT &amp;quot;OIS-image.tif&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once created, the mask should be renamed &amp;lt;i&amp;gt;filtre.tif&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d HomolFilterMasq &amp;quot;OIS.*tif&amp;quot; GlobalMasq=filtre.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because historical images were typically taken with long focal lenses, only at a nadir point of view and with limited overlap, the calibration is not very stable. A good way to constrain it is by fixing the focal length at the value stated in the calibration report, hence the &amp;lt;i&amp;gt;LibFoc=0&amp;lt;/i&amp;gt; option in Tapas.&lt;br /&gt;
&lt;br /&gt;
In a case where a lot of images are processed, it can be better to setup the calibration on a limited set of images (block of 4-6 images where plenty of tie points are identified (no water of soft snow for instance).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS-image(1|2|3|4).tif&amp;quot; Out=CalibInit SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then run the whole set with the calibration as input:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS.*tif&amp;quot; InCal=CalibInit Out=Relative SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;If you only have a limited amount of image (&amp;lt;10?) &amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
For less images, one can simply run :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS.*tif&amp;quot; Out=Relative SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To visualize the relative orientation, creating the [[AperiCloud]] is the key. You may be able to identify problems this way that the residuals of the orientation were not necessarily showing (mostly the division in two or more weakly linked groups instead of a singly one).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;OIS.*tif&amp;quot; Relative SH=HomolMasqFiltered&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;meshlab AperiCloud_Relative.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Absolute orientation ==&lt;br /&gt;
&lt;br /&gt;
The first step here is to create a file with your GCPs for MicMac. MicMac expect a specific xml format, but a command also exists to convert simple texte files into the appropriate xml. You have to create a file in the following fashion :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;GCPs.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#F= N X Y Z&lt;br /&gt;
#Here the coordinates are in UTM 33N X=Easting Y=Northing Z=Altitude&lt;br /&gt;
GCP1 423950 8768700 1.413939&lt;br /&gt;
GCP2 421730 8768400 3.502413&lt;br /&gt;
GCP3 423030 8766680 26.171211&lt;br /&gt;
GCP4 422150 8765210 10.431505&lt;br /&gt;
GCP5 423610 8764120 34.835030&lt;br /&gt;
GCP6 423770 8763350 26.425682&lt;br /&gt;
GCP7 425080 8763420 524.369446&lt;br /&gt;
GCP8 425670 8761310 392.590851&lt;br /&gt;
GCP9 427900 8760000 621.036926&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The points can be given in any type of coordinates and be transposed, but MicMac requires a somehow euclidean system to work with (not Lat Long, but Easting Northing).&lt;br /&gt;
To convert the poinst in MicMac xml format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert AppInFile GCPs.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Using MicMac to convert to your system of choice --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you give your GCPs in Lat Long format, you have to:&lt;br /&gt;
*In GCPs.txt, put #F=N Y X Z (because Latitude is the Y axis)&lt;br /&gt;
*Create a file describing the output coordinate system (see MySystem.xml bellow)&lt;br /&gt;
*Run a slightly different GCPConvert command (see bellow)&lt;br /&gt;
&lt;br /&gt;
This example of MySystem.xml is for UTM 32N.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;SystemeCoord&amp;gt;&lt;br /&gt;
         &amp;lt;BSC&amp;gt;&lt;br /&gt;
            &amp;lt;TypeCoord&amp;gt;  eTC_Proj4 &amp;lt;/TypeCoord&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxStr&amp;gt;  +proj=utm +zone=32 +north +ellps=WGS84 +datum=WGS84 +units=m +no_defs   &amp;lt;/AuxStr&amp;gt; &amp;lt;!-- Input here your coordinate system in the &amp;quot;proj4&amp;quot; format --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;/BSC&amp;gt;&lt;br /&gt;
&amp;lt;/SystemeCoord&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert AppInFile GCPs.txt ChgSys=DegreeWGS84@MySystem.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also use &amp;quot;ChgSys=MySystem1.xml@MySystem2.xml&amp;quot; if your input is in a different specified system.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then move on to inputing your GCPs in your images.&lt;br /&gt;
First, input a few ground control points (GCPs) on a few images (here, on 3 images only), to give a first approximation of the geo-referencing. You can provide the name of your GCPs in a texte file here called id_GCPs.txt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;id_GCPs.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GCP1&lt;br /&gt;
GCP2&lt;br /&gt;
GCP3&lt;br /&gt;
GCP4&lt;br /&gt;
GCP5&lt;br /&gt;
GCP6&lt;br /&gt;
GCP7&lt;br /&gt;
GCP8&lt;br /&gt;
GCP9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisInitQT &amp;quot;OIS-image1.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&lt;br /&gt;
mm3d SaisieAppuisInitQT &amp;quot;OIS-image2.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&lt;br /&gt;
mm3d SaisieAppuisInitQT &amp;quot;OIS-image3.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use these points to get into the cartographic coordinate of the GCPs.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;OIS-.*tif&amp;quot; Relative TerrainInit GCPs.xml MeasuresInit-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then input all the GCPs on all the images (or at least quite a few), using pre-pointed approximate GCPs:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisPredicQT &amp;quot;OIS-imageN.tif&amp;quot; TerrainInit GCPs.xml MeasuresFinales.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, use these points (now more numerous) to get into the cartographic coordinate of the GCPs.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;OIS-.*tif&amp;quot; TerrainInit TerrainBrut GCPs.xml  MeasuresFinales-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Perform a bundle adjustment and a refinement of the camera calibration using the GCPs. The numerical values in the GCP option are the estimate of the quality of your GCPs (the first in meters in the world coordinate and the second in pixels in your input).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari &amp;quot;OIS-.*tif&amp;quot; TerrainBrut TerrainFinal GCP=[GCPs.xml,5,MeasuresFinales-S2D.xml,2] SH=HomolMasqFiltered AllFree=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Visualize if wanted:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;OIS-.*tif&amp;quot; TerrainFinal SH=HomolMasqFiltered&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;meshlab AperiCloud_TerrainFinal.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DEM processing and orthorectification==&lt;br /&gt;
&lt;br /&gt;
Create a pseudo orthoimage (with a &amp;quot;flat&amp;quot; terrain as target) to be able to draw a mask on the approximate area of interest.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tarama &amp;quot;OIS-.*tif&amp;quot; TerrainFinal&lt;br /&gt;
mm3d SaisieMasqQT TA/TA_LeChantier.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compute the DEM (DEM is the file called ''MEC-Malt/Z_Num7_DeZoom2_STD-MALT.tif'' , or similar).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Malt Ortho &amp;quot;OIS-.*tif&amp;quot; TerrainFinal MasqImGlob=filtre.tif NbVI=2 ZoomF=2 ResolTerrain=0.5 DefCor=0 CostTrans=4 EZA=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the DEM is generated, other products can be generated :&lt;br /&gt;
&lt;br /&gt;
*A hillshade:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GrShade  Z_Num8_DeZoom2_STD-MALT.tif ModeOmbre=IgnE Out=Hillshade.tif Mask=MEC-Malt/AutoMask_STD-MALT_Num_7.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An image representation of the DEM:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d to8Bits MEC-Malt/Z_Num8_DeZoom2_STD-MALT.tif Out=hypso.tif Coul=1 Dyn=3 Mask=MEC-Malt/AutoMask_STD-MALT_Num_7.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An Orthoimage:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tawny Ortho-MEC-Malt Out=Orthophotomosaic.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*A point cloud (drapped with the ortho image):&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Nuage2Ply MEC-Malt/NuageImProf_STD-MALT_Etape_7.xml Attr=Ortho-MEC-Malt/Orthophotomosaic.tif Out=PointCloud.ply&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MicMac_tools&amp;diff=3156</id>
		<title>MicMac tools</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MicMac_tools&amp;diff=3156"/>
				<updated>2021-05-20T14:28:48Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* About all commands */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About all commands ==&lt;br /&gt;
All commands come with an inline Help that can be accessed by typing :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d CommandName -help&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Commands have Unnamed and Named arguments. The Unnamed are mandatory and must be given in order while the Named can be given in any order. It will look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d CommandName UnnamedValue1 UnnamedValue2 NamedArg1=NamedValue1 NamedArg2=NamedValue2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, Tarama :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tarama -help&lt;br /&gt;
*****************************&lt;br /&gt;
*  Help for Elise Arg main  *&lt;br /&gt;
*****************************&lt;br /&gt;
Mandatory unnamed args :&lt;br /&gt;
  * string :: {Full Image (Dir+Pat)}&lt;br /&gt;
  * string :: {Orientation}&lt;br /&gt;
Named args :&lt;br /&gt;
  * [Name=Zoom] INT :: {Resolution, (Def=8, must be pow of 2)}&lt;br /&gt;
  * [Name=Repere] string :: {Local coordinate system as created with RepLocBascule}&lt;br /&gt;
  * [Name=Out] string :: {Directory for output (Deg=TA)}&lt;br /&gt;
  * [Name=ZMoy] REAL :: {Average value of Z}&lt;br /&gt;
  * [Name=KNadir] INT :: {KBest image or Nadir (when exist)}&lt;br /&gt;
  * [Name=IncMax] REAL :: {Maximum incidence of image}&lt;br /&gt;
  * [Name=UnUseAXC] bool :: {Internal use for unanamorphosed ortho}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The command has 2 mandatory, unnamed, arguments that need to be there, in the proper order, and without a name in front of them. So the minimal Tarama command would look like :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tarama .*JPG MyOrientationName&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But the user might want to adjust some of the parameters if the default isn't doing what they want. Let's say the user would like the output of Tarama to go to a folder not called &amp;quot;TA&amp;quot;, which is the default. They would need to add the &amp;quot;Out&amp;quot; argument with a name that they like better, for instance &amp;quot;MyTaramaFolder&amp;quot;. The command would the be :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tarama .*JPG MyOrientationName Out=MyTaramaFolder&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have a version of MicMac that include the QT tools (binaries from the [http://logiciels.ign.fr/?Telechargement,20 IGN download page] or self compiled with the QT option activated), each command come with a GUI containing the options to fill and a file selection tool when appropriate. These GUI can be called using the command with a ''v'' prefix:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d vCommandName&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
=== A ===&lt;br /&gt;
*[[ AperiCloud]] :  Visualization of camera in ply file&lt;br /&gt;
*[[ Apero]] :  Compute external and internal orientations&lt;br /&gt;
*[[ Apero2Meshlab]] : Convert Orientation from Apero-Micmac workflow to a meshlab-compatible format&lt;br /&gt;
*[[ Apero2NVM]] : Matthieu Moneyrond's convertor to VSfM, MVE, SURE, MeshRecon &lt;br /&gt;
*[[ Apero2PMVS]] :  Convert Orientation from Apero-Micmac workflow to PMVS format&lt;br /&gt;
*[[ AperoChImSecMM]] :  Select secondary images for MicMac&lt;br /&gt;
*[[ Arsenic]] :  IN DEV : Radiometric equalization from tie points&lt;br /&gt;
*[[ Aspro]] :  Init  External orientation of calibrated camera from GCP&lt;br /&gt;
&lt;br /&gt;
=== B ===&lt;br /&gt;
*[[ Bascule]] :  Generate orientations coherent with some physical information on the scene&lt;br /&gt;
*[[ BatchFDC]] :  Tool for batching a set of commands&lt;br /&gt;
*[[ Blinis]] : Block Initialisation&lt;br /&gt;
=== C === &lt;br /&gt;
*[[ C3DC]] : Automatic Matching from Culture 3D Cloud project&lt;br /&gt;
*[[ CalibFinale]] :  Compute Final Radial distortion model&lt;br /&gt;
*[[ CalibInit]] :  Compute Initial Radial distortion model&lt;br /&gt;
*[[ Campari]] :  Interface to Apero, for compensation of heterogeneous measures&lt;br /&gt;
*[[ CASA]] :  Analytic Surface Estimation&lt;br /&gt;
*[[ CenterBascule]] :  Relative to absolute using embedded GPS&lt;br /&gt;
*[[ ChantierClip]] :  Clip Chantier&lt;br /&gt;
*[[ CheckDependencies]] :  check dependencies to third-party tools&lt;br /&gt;
*[[ ChgSysCo]] :  Change coordinate system of orientation&lt;br /&gt;
*[[ ClipIm]] :  Clip Chantier&lt;br /&gt;
*[[ CmpCalib]] :  Compare two  calibrations&lt;br /&gt;
*[[ CmpIm]] :  Basic tool for images comparison&lt;br /&gt;
*[[ CmpOri]] :  Compare two sets of orientation&lt;br /&gt;
*[[ CoherEpip]] :  Test coherence between conjugate epipolar depth-map&lt;br /&gt;
*[[ ContrastFilter]] : Some contrast filtering &lt;br /&gt;
*[[ Convert2GenBundle]] : Import RPC or other to MicMac format, for adjustment, matching ...&lt;br /&gt;
*[[ ConvertCalib]] :  Conversion of calibration from one model 2 the other&lt;br /&gt;
*[[ ConvertIm]] :  Tool for convertion inside tiff-format&lt;br /&gt;
*[[ CreateEpip]] :  Create epipolar images&lt;br /&gt;
*[[ Coordinates Systems]] : How coordinates systems are defined on MicMac.&lt;br /&gt;
&lt;br /&gt;
=== D ===&lt;br /&gt;
*[[ Dequant]] :  Tool for dequantifying an image&lt;br /&gt;
*[[ Digeo]] :  In development- Will compute tie points &lt;br /&gt;
*[[ DIV]] : Videos development (require ffmpeg)&lt;br /&gt;
*[[ Donuts]] : Cyl to Torus (Donuts like)&lt;br /&gt;
*[[ Drunk]] :  Images distortion removing tool&lt;br /&gt;
&lt;br /&gt;
=== E ===&lt;br /&gt;
*[[ ExtractAppui3D]] :  Extract points from a 3D appui points xml file&lt;br /&gt;
*[[ ExtractMesure2D]] :  Extract points from a 2D measures xml file&lt;br /&gt;
&lt;br /&gt;
=== F ===&lt;br /&gt;
*[[ FFTKugelhupf]] :  Version of Kugelhupf using FFT, expecetd faster when it works (if ever ...)&lt;br /&gt;
*[[ FieldDep3d]] :  To export results of matching as 3D shifting&lt;br /&gt;
=== G ===&lt;br /&gt;
*[[ GCPBascule]] :  Relative to absolute using GCP&lt;br /&gt;
*[[ GCPConvert]] : Convert GCP from Txt 2 XML&lt;br /&gt;
*[[ GCPCtrl]] :  Control accuracy with GCP&lt;br /&gt;
*[[ GCPVisib]] :  Print a list of GCP visibility in images&lt;br /&gt;
*[[ Genepi]] :  Generate 3D/2d synthetical points from orientation&lt;br /&gt;
*[[ Genere_Header_TiffFile]] :  Generate Header for internal tiling format &lt;br /&gt;
*[[ GenPairsFile]] : Generate pairs files between one image and a pattern&lt;br /&gt;
*[[ GrapheHom]] : Compute XML-Visibility graph from approximate orientation&lt;br /&gt;
*[[ GrShade]] :  Compute shading from depth image&lt;br /&gt;
&lt;br /&gt;
=== H ===&lt;br /&gt;
*[[ HomolFilterMasq]] :  Tool for filter homologous points according to masq&lt;br /&gt;
*[[ HomolMergePDVUnik]] :  Tool for merge homologous point from unik point of view&lt;br /&gt;
=== I ===&lt;br /&gt;
*[[ Im2XYZ]] :  tool to transform a 2D point (text file) to their 3D cloud homologous&lt;br /&gt;
*[[ ImMire]] :  For generation of some synthetic calibration image&lt;br /&gt;
*[[ Impaint]] : Basic Impainting&lt;br /&gt;
*[[ ImRandGray]] :  Generate Random Gray Textured Images&lt;br /&gt;
*[[ Init11P]] :  Init Internal &amp;amp; External from GCP using 11-parameters algo&lt;br /&gt;
*[[ InitOriLinear]] :  Initialize orientation for linear acquisition&lt;br /&gt;
=== K ===&lt;br /&gt;
*[[ Kugelhupf]] :  Semi-automatic fiducial points determination&lt;br /&gt;
=== L ===&lt;br /&gt;
*[[ Liquor]] : Orientation specialized for linear acquisition&lt;br /&gt;
*[[ LumRas]] :  Compute image mixing with raking light&lt;br /&gt;
=== M ===&lt;br /&gt;
*[[ MakeGrid]] :  Generate orientations in a grid format&lt;br /&gt;
*[[ Malt]] :  Simplified matching (interface to MicMac)&lt;br /&gt;
*[[ MapCmd]] :  Transforms a command working on a single file in a command working on a set of files&lt;br /&gt;
*[[ Martini]] :  New orientation initialisation (uncomplete, still in dev...) &lt;br /&gt;
*[[ MartiniGin]] :  New orientation initialisation (uncomplete, still in dev...) &lt;br /&gt;
*[[ MergeDepthMap]] :  Merging of individual, stackable, depth maps &lt;br /&gt;
*[[ MergeHomol]] :  Merge Homol dir&lt;br /&gt;
*[[ MergePly]] :  Merge ply files&lt;br /&gt;
*[[ MeshProjOnImg]] :  Reproject mesh on image&lt;br /&gt;
*[[ MICMAC]] :  Computes image matching from oriented images&lt;br /&gt;
*[[ MICMACSaisieLiaisons]] :  Low level version of SEL, not recommended&lt;br /&gt;
*[[ MM1P]] :  Matching One Pair of images&lt;br /&gt;
*[[ MM2DPosSism]] :  Simplified interface for post 2D post sismic deformation &lt;br /&gt;
*[[ MMByP]] :  Matching By Pair of images&lt;br /&gt;
*[[ MMCalcSzWCor]] :  Compute Image of Size of correlation windows (Atomic tool, for adaptive window in geom image)&lt;br /&gt;
*[[ MMHomCorOri]] :  Tool to compute homologues for correcting orientation in epip matching&lt;br /&gt;
*[[ MMInitialModel]] :  Initial Model for MicMac &lt;br /&gt;
*[[ MMMergeCloud]] :  Merging of low resol cloud, in preparation 2 MicMac &lt;br /&gt;
*[[ MMPyram]] :  Computes pyram for micmac (internal use)&lt;br /&gt;
*[[ MMTestAllAuto]] :  Full automatic version for 1 view point, test mode &lt;br /&gt;
*[[ MMTestOrient]] :  Tool for testing quality of orientation&lt;br /&gt;
*[[ MMXmlXif]] :  Generate Xml from Xif (internal use mainly)&lt;br /&gt;
*[[ mmxv]] :  Interface to xv (due to problem in tiff lib)&lt;br /&gt;
*[[ Morito]] : Merge set of Orientations with common values&lt;br /&gt;
*[[ MpDcraw]] :  Interface to dcraw&lt;br /&gt;
*[[ MPDtest]] :  My own test&lt;br /&gt;
*[[ MyRename]] :  File renaming using posix regular expression&lt;br /&gt;
=== N ===&lt;br /&gt;
*[[ NewTapas]] : Replace OldTapas - now same as Tapas&lt;br /&gt;
*[[ Nuage2Ply]] :  Convert depth map into point cloud&lt;br /&gt;
*[[ NuageBascule]] :  To Change geometry of depth map&lt;br /&gt;
=== O === &lt;br /&gt;
*[[ OldTapas]] :  Interface to Apero to compute external and internal orientations&lt;br /&gt;
*[[ Ori2Xml]] : Convert &amp;quot;historical&amp;quot; Matis'Ori format to xml &lt;br /&gt;
*[[ OriConvert]] : Convert Orientation from Txt 2 XML&lt;br /&gt;
*[[ OriExport]] : Export orientation from XML to XML or TXT with specified convention&lt;br /&gt;
*[[ OriRedTieP]] : Tie points filtering, using Martini results&lt;br /&gt;
=== P ===&lt;br /&gt;
*[[ PanelIm]] : Tool for creating a panel of images &lt;br /&gt;
*[[ Pasta]] :  Compute external calibration and radial basic internal calibration&lt;br /&gt;
*[[ Pastis]] :  Tie points detection&lt;br /&gt;
*[[ PatFromOri]] : Get pattern of images from Ori folder&lt;br /&gt;
*[[ PHO_MI]] :  Filter homologue points from initial orientation to reduce number of observations&lt;br /&gt;
*[[ PIMs]] : Per Image Matchings&lt;br /&gt;
*[[ PIMs2Mnt]] : Generate Mnt from Per Image Matchings&lt;br /&gt;
*[[ PIMs2Ply]] : Generate Ply from Per Image Matchings&lt;br /&gt;
*[[ Porto]] :  Generates a global ortho-photo&lt;br /&gt;
*[[ Prep4masq]] :  Generates files for making Masks (if SaisieMasq unavailable)&lt;br /&gt;
&lt;br /&gt;
=== R ===&lt;br /&gt;
*[[ Ratafia]] : Some stuff to be described later&lt;br /&gt;
*[[ RedTieP]] : Test tie points filtering &lt;br /&gt;
*[[ RepLocBascule]] :  Tool to define a local repair without changing the orientation&lt;br /&gt;
*[[ ReprojImg]] :  Reproject an image into geometry of another&lt;br /&gt;
*[[ ReSampFid]] : Resampling using one fiducial mark&lt;br /&gt;
&lt;br /&gt;
=== S ===&lt;br /&gt;
*[[ SaisieAppuisInit]] :  Interactive tool for initial capture of GCP&lt;br /&gt;
*[[ SaisieAppuisInitQT]] :  Interactive tool for initial capture of GCP&lt;br /&gt;
*[[ SaisieAppuisPredic]] :  Interactive tool for assisted capture of GCP&lt;br /&gt;
*[[ SaisieAppuisPredicQT]] :  Interactive tool for assisted capture of GCP&lt;br /&gt;
*[[ SaisieBasc]] :  Interactive tool to capture information on the scene&lt;br /&gt;
*[[ SaisieBascQT]] :  Interactive tool to capture information on the scene&lt;br /&gt;
*[[ SaisieBoxQT]] :  Interactive tool to capture 2D box&lt;br /&gt;
*[[ SaisieCyl]] :  Interactive tool to capture information on the scene for cylinders&lt;br /&gt;
*[[ SaisieCylQT]] :  Interactive tool to capture information on the scene for cylinders&lt;br /&gt;
*[[ SaisieMasq]] :  Interactive tool to capture masq&lt;br /&gt;
*[[ SaisieMasqQT]] :  Interactive tool to capture masq&lt;br /&gt;
*[[ SaisiePts]] :  Tool to capture GCP (low level, not recommended)&lt;br /&gt;
*[[ Sake]] :  Simplified MicMac interface for satellite images&lt;br /&gt;
*[[ SateLib]] :  Library of satellite images meta-data handling - early work in progress!&lt;br /&gt;
*[[ SBGlobBascule]] :  Tool for 'scene based global' bascule&lt;br /&gt;
*[[ ScaleIm]] :  Tool for image scaling&lt;br /&gt;
*[[ ScaleNuage]] :  Tool for scaling internal representation of point cloud&lt;br /&gt;
*[[ Schnaps]] :  Reduction of homologue points in image geometry&lt;br /&gt;
*[[ ScriptCalib]] :  Do some stuff&lt;br /&gt;
*[[ SEL]] :  Tool to visualize tie points&lt;br /&gt;
*[[ SetExif]] : Modification of exif file (requires exiv2)&lt;br /&gt;
*[[ SetGpsExif]] : Add GPS infos in images exif meta-data (requires exiv2)&lt;br /&gt;
*[[ Sift]] :  Tool for extracting points of interest using Lowe's SIFT method&lt;br /&gt;
*[[ SimplePredict]] :  Project ground points on oriented cameras&lt;br /&gt;
*[[ SMDM]] :  Simplified Merging of individual, stackable, depth maps &lt;br /&gt;
*[[ SplitMPO]] : tool to develop MPO stereo format in pair of images&lt;br /&gt;
*[[ StackFlatField]] : Basic Flat Field estimation by image stacking&lt;br /&gt;
*[[ StatIm]] :  Tool for basic stat on an image&lt;br /&gt;
*[[ SupMntIm]] :  Tool for superposition of Mnt Im &amp;amp; level curve&lt;br /&gt;
*[[ SysCoordPolyn]] :  Tool for creating a polynomial coordinate system from a set of known pair of coordinate&lt;br /&gt;
=== T ===&lt;br /&gt;
*[[ Tapas]] : NEW version !! Compatible . Call &amp;quot;OldTapas&amp;quot; if problem specific to this version&lt;br /&gt;
*[[ Tapioca]] :  Interface to Pastis for tie point detection and matching&lt;br /&gt;
*[[ Tarama]] :  Compute a rectified image&lt;br /&gt;
*[[ Tawny]] :  Interface to Porto to generate ortho-image&lt;br /&gt;
*[[ Tequila]] :  Texture mesh&lt;br /&gt;
*[[ TestBundleInter]] : Block Initialisation &lt;br /&gt;
*[[ TestCam]] :  Test camera orientation convention&lt;br /&gt;
*[[ TestChantier]] :  Test global acquisition&lt;br /&gt;
*[[ TestCmds]] :  Test MM3D commands on micmac_data sets&lt;br /&gt;
*[[ TestDistM2C]] :  Basic Test for problematic camera &lt;br /&gt;
*[[ TestKey]] :  Test Keys for Sets and Assoc&lt;br /&gt;
*[[ TestLib]] :  To call the program illustrating the library&lt;br /&gt;
*[[ TestMTD]] :  Test meta data of image&lt;br /&gt;
*[[ TestNameCalib]] :  Test Name of calibration&lt;br /&gt;
*[[ TestPbRPC]] : Test possible Problems on RPC &lt;br /&gt;
*[[ TestRegEx]] :  Test regular expression&lt;br /&gt;
*[[ TiePAll]] :  matches points of interest of two images&lt;br /&gt;
*[[ TiePByMesh]] :  Raffiner pts homologue par mesh&lt;br /&gt;
*[[ TiePLine]] :  matches points of interest of two images&lt;br /&gt;
*[[ TiePMS]] :  matches points of interest of two images&lt;br /&gt;
*[[ TifDev]] :  Develop raw-jpg-tif, in suitable tiff file&lt;br /&gt;
*[[ tiff_info]] :  Tool for giving information about a tiff file&lt;br /&gt;
*[[ TiPunch]] :  Compute mesh&lt;br /&gt;
*[[ to8Bits]] :  Tool for converting 16 or 32 bit image in a 8 bit image.&lt;br /&gt;
*[[ TripleSec]] : Test Non Regression&lt;br /&gt;
=== U ===&lt;br /&gt;
*[[ Undist]] :  Tool for removing images distortion&lt;br /&gt;
=== V ===&lt;br /&gt;
*[[ Vino]] : Image Viewer&lt;br /&gt;
*[[ Vodka]] :  IN DEV : Compute the vignette correction parameters from tie points&lt;br /&gt;
*[[ VV]] :  A very simplified tool for 3D model of visage out of video, just for fun&lt;br /&gt;
&lt;br /&gt;
=== X ===&lt;br /&gt;
*[[ XifGps2Txt]] : Export embedded EXIF GPS data 2 Txt&lt;br /&gt;
*[[ XifGps2Xml]] : Create MicMac-Xml struct from GPS embedded in EXIF&lt;br /&gt;
*[[ XLib]] :  Xeres Lib - early work in progress!&lt;br /&gt;
*[[ XYZ2Im]] :  tool to transform a 3D point (text file) to their 2D proj in cam or cloud&lt;br /&gt;
=== Z ===&lt;br /&gt;
*[[ Zlimit]] :  Crop Depth image (or DEM) in Z&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Historical_Orthoimage&amp;diff=3117</id>
		<title>Historical Orthoimage</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Historical_Orthoimage&amp;diff=3117"/>
				<updated>2019-11-18T14:51:03Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* DEM processing and orthorectification */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px|link=Tutorials]] [[Tutorials|Tutorials index]]&lt;br /&gt;
=Description=&lt;br /&gt;
This tutorial will present the method to process historical aerial images into DEM and Orthoimages. With this kind of products, you can monitor changes in an arean (urbanization, landscape changes, etc...). &lt;br /&gt;
&lt;br /&gt;
The USGS NAPP program offers a large amount of free scanned images over the continental US (mostly), often with calibration data, though the [https://earthexplorer.usgs.gov/ Earth Explorer].&lt;br /&gt;
&lt;br /&gt;
If you are looking for a special area in France, you can use the Geoportail ([[IGN]]) to download your own images and process it.&lt;br /&gt;
&lt;br /&gt;
This tutorial is mostly designed and maintained by [[Luc Girod]], if you have questions about it, please get in touch with him.&lt;br /&gt;
&lt;br /&gt;
=Download=&lt;br /&gt;
&lt;br /&gt;
=Presentation=&lt;br /&gt;
&lt;br /&gt;
=Tutorial=&lt;br /&gt;
&lt;br /&gt;
==Internal Orientation==&lt;br /&gt;
MicMac use EXIF metadat in order to determine image format and focal length. However, historical images often don't have such metadata, so we have first to create a xml file called &amp;lt;i&amp;gt;MicMac-LocalChantierDescripteur.xml&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;MicMac-LocalChantierDescripteur.xml&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;Change the values according to your camera.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Global&amp;gt;&lt;br /&gt;
  &amp;lt;ChantierDescripteur &amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Define a camera model (name and sensor/film size) --&amp;gt;&lt;br /&gt;
    &amp;lt;LocCamDataBase&amp;gt;&lt;br /&gt;
        &amp;lt;CameraEntry&amp;gt;&lt;br /&gt;
              &amp;lt;Name&amp;gt; ZeissRMKATOP15  &amp;lt;/Name&amp;gt;&lt;br /&gt;
              &amp;lt;SzCaptMm&amp;gt;  226.004 226.008  &amp;lt;/SzCaptMm&amp;gt; &amp;lt;!-- MidSideFiducials or &amp;quot;MaxFidX-MinFidX MaxFidY-MinFidY&amp;quot;--&amp;gt;&lt;br /&gt;
              &amp;lt;ShortName&amp;gt; Zeiss RMK A Top15* and Zeiss Pleogon A3/4 &amp;lt;/ShortName&amp;gt;&lt;br /&gt;
         &amp;lt;/CameraEntry&amp;gt;&lt;br /&gt;
    &amp;lt;/LocCamDataBase&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Associate images to a camera model --&amp;gt;&lt;br /&gt;
    &amp;lt;KeyedNamesAssociations&amp;gt;&lt;br /&gt;
            &amp;lt;Calcs&amp;gt;&lt;br /&gt;
                 &amp;lt;Arrite&amp;gt;  1 1 &amp;lt;/Arrite&amp;gt;&lt;br /&gt;
                 &amp;lt;Direct&amp;gt;&lt;br /&gt;
                       &amp;lt;PatternTransform&amp;gt; .*  &amp;lt;/PatternTransform&amp;gt; &amp;lt;!-- Regular expressions of the group of images with the following camera model --&amp;gt;&lt;br /&gt;
                       &amp;lt;CalcName&amp;gt; ZeissRMKATOP15 &amp;lt;/CalcName&amp;gt; &amp;lt;!-- Name of the camera for these images --&amp;gt;&lt;br /&gt;
                 &amp;lt;/Direct&amp;gt;&lt;br /&gt;
             &amp;lt;/Calcs&amp;gt;&lt;br /&gt;
             &amp;lt;Key&amp;gt;   NKS-Assoc-STD-CAM &amp;lt;/Key&amp;gt;&lt;br /&gt;
    &amp;lt;/KeyedNamesAssociations&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
    &amp;lt;!-- Associate images to a focal length --&amp;gt;&lt;br /&gt;
    &amp;lt;KeyedNamesAssociations&amp;gt;&lt;br /&gt;
            &amp;lt;Calcs&amp;gt;&lt;br /&gt;
                 &amp;lt;Arrite&amp;gt;  1 1 &amp;lt;/Arrite&amp;gt;&lt;br /&gt;
                 &amp;lt;Direct&amp;gt;&lt;br /&gt;
                       &amp;lt;PatternTransform&amp;gt; .*  &amp;lt;/PatternTransform&amp;gt; &amp;lt;!-- Regular expressions of the group of images with the following focal length --&amp;gt;&lt;br /&gt;
                       &amp;lt;CalcName&amp;gt; 153.664 &amp;lt;/CalcName&amp;gt;	&amp;lt;!-- See calibration report --&amp;gt;&lt;br /&gt;
                 &amp;lt;/Direct&amp;gt;&lt;br /&gt;
             &amp;lt;/Calcs&amp;gt;&lt;br /&gt;
             &amp;lt;Key&amp;gt;   NKS-Assoc-STD-FOC  &amp;lt;/Key&amp;gt;&lt;br /&gt;
    &amp;lt;/KeyedNamesAssociations&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
  &amp;lt;/ChantierDescripteur&amp;gt;&lt;br /&gt;
&amp;lt;/Global&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scanned images also need to be normalized so the calibration is the same for all images. In order to achieve that, the fiducial marks coordinates need to be know both in film space (these values should be in the calibration report) and in image space.&lt;br /&gt;
[[Image:FiducialCoord.png|thumb|250px||alt=FiducialCoord|Fiducial Coordinates from USGS Report No. OSL/2782]]&lt;br /&gt;
&lt;br /&gt;
To report the film space coordinates to MicMac , you need to create an xml file called &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; in a sub folder called &amp;lt;i&amp;gt;Ori-InterneScan&amp;lt;/i&amp;gt;. MicMac requires the origin of the system to be the top left corner, so  the coordinates from the calibration files (that usually are centered in the center of the image, with the Y axis going upwards) need to be manipulated : Y axis inverted (Yinv=-Y) and then the coordinates translated (X'=X-Xmin and Y'=Yinv-Yinv_min). Be careful with calibration files that might use different names for the fiducial marks than the ones printed on the images, and also the orientation of the images that may be wrong.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; corresponding to USGS Report No. OSL/2782 --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;Change the values according to your camera.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;MesureAppuiFlottant1Im&amp;gt;&lt;br /&gt;
     &amp;lt;NameIm&amp;gt;Glob&amp;lt;/NameIm&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P1&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;1.0040  226.9950&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P2&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9920    0.9960&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P3&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;0.9960    1.0070&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P4&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9930  226.9950&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P5&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;0.9940  114.0040&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P6&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9980  113.9940&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P7&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;114.0000    1.0060&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P8&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;113.9950  227.0140&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
&amp;lt;/MesureAppuiFlottant1Im&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to input the image coordinate of the fiducial marks, you should use the SaisieAppuisInitQT command on each image like this (&amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt; is a text file with a point name on each line, see example bellow. BE CAREFULL TO NAME THE POINTS THE SAME WAY IN THE &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; and the &amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt;).&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
P1&lt;br /&gt;
P2&lt;br /&gt;
P3&lt;br /&gt;
P4&lt;br /&gt;
P5&lt;br /&gt;
P6&lt;br /&gt;
P7&lt;br /&gt;
P8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisInitQT &amp;quot;image.tif&amp;quot; NONE id_fiducial.txt MeasuresIm-image.tif.xml &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The resulting &amp;lt;i&amp;gt;MeasuresIm-image.tif-S2D.xml&amp;lt;/i&amp;gt; file (created in the image folder) should be moved in the &amp;lt;i&amp;gt;Ori-InterneScan&amp;lt;/i&amp;gt; directory and renamed &amp;lt;i&amp;gt;MeasuresIm-image.tif.xml&amp;lt;/i&amp;gt; (note the removal of &amp;quot;-S2D&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
If you have images where the fiducial marks are easily recognizable (they look like targets, not just a dot), and if the images are already close to be aligned, you can use Kugelhupf to compute the position of the points starting with the second image (appearance and position of the points are dictated by the first image that you processed manually).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Kugelhupf .*tif Ori-InterneScan/MeasuresIm-image.tif.xml SearchIncertitude= ??&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then all the images can be re-sampled to fit in the same geometry and can therefore be processed like digital images. The user need to input the scan resolution (in the example line, 0.025 -&amp;gt; 0.025mm=25microns). This process is slow (ca. a minute per image), but is parallelised.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d ReSampFid &amp;quot;.*.tif&amp;quot; 0.025&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The user should then move the original images to a sub-folder, or state OIS.*.tif as the regular expression in futur steps.&lt;br /&gt;
&lt;br /&gt;
== Relative orientation ==&lt;br /&gt;
First, you need to find tie points between your images:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapioca MulScale &amp;quot;OIS.*tif&amp;quot; 1000 2500&amp;lt;/pre&amp;gt;&lt;br /&gt;
Be aware that you shouldn't use a very high resolution for finding tie points in scanned because of both the usually very large image files and the noise often present in scanned data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;If camera postions are (approximately) known&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
If you have the position of the camera for each image (set in a txt file similar to a GCP file), you can create a file with the reference of images potentially in contact (sometimes, the info is printed on the images). In that case, run this instead of the aforementioned Tapioca command:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d OriConvert OriTxtInFile GPS_sommets.txt Sommets NameCple=Couples.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapioca File Couples.xml 2000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To be able to ignore the fiducial marks and other inscriptions on the images that would yield nonsensical tie points, a mask need to be created.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieMasqQT &amp;quot;OIS-image.tif&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once created, the mask should be renamed &amp;lt;i&amp;gt;filtre.tif&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d HomolFilterMasq &amp;quot;OIS.*tif&amp;quot; GlobalMasq=filtre.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because historical images were typically taken with long focal lenses, only at a nadir point of view and with limited overlap, the calibration is not very stable. A good way to constrain it is by fixing the focal length at the value stated in the calibration report, hence the &amp;lt;i&amp;gt;LibFoc=0&amp;lt;/i&amp;gt; option in Tapas.&lt;br /&gt;
&lt;br /&gt;
In a case where a lot of images are processed, it can be better to setup the calibration on a limited set of images (block of 4-6 images where plenty of tie points are identified (no water of soft snow for instance).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS-image(1|2|3|4).tif&amp;quot; Out=CalibInit SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then run the whole set with the calibration as input:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS.*tif&amp;quot; InCal=CalibInit Out=Relative SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;If you only have a limited amount of image (&amp;lt;10?) &amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
For less images, one can simply run :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS.*tif&amp;quot; Out=Relative SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To visualize the relative orientation, creating the [[AperiCloud]] is the key. You may be able to identify problems this way that the residuals of the orientation were not necessarily showing (mostly the division in two or more weakly linked groups instead of a singly one).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;OIS.*tif&amp;quot; Relative SH=HomolMasqFiltered&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;meshlab AperiCloud_Relative.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Absolute orientation ==&lt;br /&gt;
&lt;br /&gt;
The first step here is to create a file with your GCPs for MicMac. MicMac expect a specific xml format, but a command also exists to convert simple texte files into the appropriate xml. You have to create a file in the following fashion :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;GCPs.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#F= N X Y Z&lt;br /&gt;
#Here the coordinates are in UTM 33N X=Easting Y=Northing Z=Altitude&lt;br /&gt;
GCP1 423950 8768700 1.413939&lt;br /&gt;
GCP2 421730 8768400 3.502413&lt;br /&gt;
GCP3 423030 8766680 26.171211&lt;br /&gt;
GCP4 422150 8765210 10.431505&lt;br /&gt;
GCP5 423610 8764120 34.835030&lt;br /&gt;
GCP6 423770 8763350 26.425682&lt;br /&gt;
GCP7 425080 8763420 524.369446&lt;br /&gt;
GCP8 425670 8761310 392.590851&lt;br /&gt;
GCP9 427900 8760000 621.036926&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The points can be given in any type of coordinates and be transposed, but MicMac requires a somehow euclidean system to work with (not Lat Long, but Easting Northing).&lt;br /&gt;
To convert the poinst in MicMac xml format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert AppInFile GCPs.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Using MicMac to convert to your system of choice --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you give your GCPs in Lat Long format, you have to:&lt;br /&gt;
*In GCPs.txt, put #F=N Y X Z (because Latitude is the Y axis)&lt;br /&gt;
*Create a file describing the output coordinate system (see MySystem.xml bellow)&lt;br /&gt;
*Run a slightly different GCPConvert command (see bellow)&lt;br /&gt;
&lt;br /&gt;
This example of MySystem.xml is for UTM 32N.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;SystemeCoord&amp;gt;&lt;br /&gt;
         &amp;lt;BSC&amp;gt;&lt;br /&gt;
            &amp;lt;TypeCoord&amp;gt;  eTC_Proj4 &amp;lt;/TypeCoord&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxStr&amp;gt;  +proj=utm +zone=32 +north +ellps=WGS84 +datum=WGS84 +units=m +no_defs   &amp;lt;/AuxStr&amp;gt; &amp;lt;!-- Input here your coordinate system in the &amp;quot;proj4&amp;quot; format --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;/BSC&amp;gt;&lt;br /&gt;
&amp;lt;/SystemeCoord&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert AppInFile GCPs.txt ChgSys=DegreeWGS84@MySystem.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also use &amp;quot;ChgSys=MySystem1.xml@MySystem2.xml&amp;quot; if your input is in a different specified system.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then move on to inputing your GCPs in your images.&lt;br /&gt;
First, input a few ground control points (GCPs) on a few images (here, on 3 images only), to give a first approximation of the geo-referencing. You can provide the name of your GCPs in a texte file here called id_GCPs.txt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;id_GCPs.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GCP1&lt;br /&gt;
GCP2&lt;br /&gt;
GCP3&lt;br /&gt;
GCP4&lt;br /&gt;
GCP5&lt;br /&gt;
GCP6&lt;br /&gt;
GCP7&lt;br /&gt;
GCP8&lt;br /&gt;
GCP9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisInitQT &amp;quot;OIS-image1.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&lt;br /&gt;
mm3d SaisieAppuisInitQT &amp;quot;OIS-image2.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&lt;br /&gt;
mm3d SaisieAppuisInitQT &amp;quot;OIS-image3.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use these points to get into the cartographic coordinate of the GCPs.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;OIS-.*tif&amp;quot; Relative TerrainInit GCPs.xml MeasuresInit-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then input all the GCPs on all the images (or at least quite a few), using pre-pointed approximate GCPs:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisPredicQT &amp;quot;OIS-imageN.tif&amp;quot; TerrainInit GCPs.xml MeasuresFinales.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, use these points (now more numerous) to get into the cartographic coordinate of the GCPs.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;OIS-.*tif&amp;quot; TerrainInit TerrainBrut GCPs.xml  MeasuresFinales-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Perform a bundle adjustment and a refinement of the camera calibration using the GCPs. The numerical values in the GCP option are the estimate of the quality of your GCPs (the first in meters in the world coordinate and the second in pixels in your input).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari &amp;quot;OIS-.*tif&amp;quot; TerrainBrut TerrainFinal GCP=[GCPs.xml,5,MeasuresFinales-S2D.xml,2] SH=HomolMasqFiltered AllFree=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Visualize if wanted:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;OIS-.*tif&amp;quot; TerrainFinal SH=HomolMasqFiltered&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;meshlab AperiCloud_TerrainFinal.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DEM processing and orthorectification==&lt;br /&gt;
&lt;br /&gt;
Create a pseudo orthoimage (with a &amp;quot;flat&amp;quot; terrain as target) to be able to draw a mask on the approximate area of interest.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tarama &amp;quot;OIS-.*tif&amp;quot; TerrainFinal&lt;br /&gt;
mm3d SaisieMasqQT TA/TA_LeChantier.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compute the DEM (DEM is the file called ''MEC-Malt/Z_Num7_DeZoom2_STD-MALT.tif'' , or similar).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Malt Ortho &amp;quot;OIS-.*tif&amp;quot; TerrainFinal MasqImGlob=filtre.tif NbVI=2 ZoomF=2 ResolTerrain=0.5 DefCor=0 CostTrans=4 EZA=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the DEM is generated, other products can be generated :&lt;br /&gt;
&lt;br /&gt;
*A hillshade:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GrShade  Z_Num8_DeZoom2_STD-MALT.tif ModeOmbre=IgnE Out=Hillshade.tif Mask=MEC-Malt/AutoMask_STD-MALT_Num_7.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An image representation of the DEM:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d to8Bits MEC-Malt/Z_Num8_DeZoom2_STD-MALT.tif Out=hypso.tif Coul=1 Dyn=3 Mask=MEC-Malt/AutoMask_STD-MALT_Num_7.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An Orthoimage:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tawny Ortho-MEC-Malt Out=Orthophotomosaic.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*A point cloud (drapped with the ortho image):&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Nuage2Ply MEC-Malt/NuageImProf_STD-MALT_Etape_7.xml Attr=Ortho-MEC-Malt/Orthophotomosaic.tif Out=PointCloud.ply&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=GCPConvert&amp;diff=3083</id>
		<title>GCPConvert</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=GCPConvert&amp;diff=3083"/>
				<updated>2019-02-26T13:11:55Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* GCPConverts add many decimals to coordinates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px]] [[Command|List of commands]]&lt;br /&gt;
==Description==&lt;br /&gt;
The command GCPConvert is used to:&lt;br /&gt;
*transform a set of ground control points from most text format to MicMac’s Xml format.&lt;br /&gt;
*transform the ground control points into an euclidean coordinate system, suitable for MicMac.&lt;br /&gt;
&lt;br /&gt;
===Allowed commands===&lt;br /&gt;
* AppEgels&lt;br /&gt;
* AppGeoCub&lt;br /&gt;
* AppInFile&lt;br /&gt;
* AppXML&lt;br /&gt;
&lt;br /&gt;
===Syntax===&lt;br /&gt;
The global syntax for GCPConvert is :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert FormatSpecification GCPFile NamedArgs&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Help=== &lt;br /&gt;
You can access to the help by typing :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert -help&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mandatory unnamed args :&lt;br /&gt;
*string :: {[[GCPConvert#Formatting_the_input_GCP_file|Format specification]]}&lt;br /&gt;
*string :: {GCP  File}&lt;br /&gt;
Named args : &lt;br /&gt;
*[Name=Out] string :: {Xml Out File}&lt;br /&gt;
*[Name=ChSys] string :: {Change coordinate file}&lt;br /&gt;
*[Name=MulCo] REAL :: {Multiplier of result (for development and testing use)}&lt;br /&gt;
*[Name=MulInc] bool :: {Multiplier also incertitude ? (for development and testing use)}&lt;br /&gt;
*[Name=Offs] Pt3dr :: {Offset to substruct to all coordinates ; Def=[0,0,0]}&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
====Formatting the input GCP file====&lt;br /&gt;
Launching this command, &lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert AppInFile CP3D_Format.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert &amp;quot;#F=N_X_Y_Z&amp;quot; CP3D_Format.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should get a file like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;DicoAppuisFlottant&amp;gt;&lt;br /&gt;
     &amp;lt;OneAppuisDAF&amp;gt;&lt;br /&gt;
          &amp;lt;Pt&amp;gt;301.610 939.1341 144.75&amp;lt;/Pt&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;30&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;Incertitude&amp;gt;1 1 1&amp;lt;/Incertitude&amp;gt;&lt;br /&gt;
     &amp;lt;/OneAppuisDAF&amp;gt;&lt;br /&gt;
     &amp;lt;OneAppuisDAF&amp;gt;&lt;br /&gt;
          &amp;lt;Pt&amp;gt;301.412 937.530 144.787&amp;lt;/Pt&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;31&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;Incertitude&amp;gt;1 1 1&amp;lt;/Incertitude&amp;gt;&lt;br /&gt;
     &amp;lt;/OneAppuisDAF&amp;gt;&lt;br /&gt;
&amp;lt;/DicoAppuisFlottant&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Offset the output GCP file====&lt;br /&gt;
To avoid problems which could appear with other tools that don't deal with too many digits coordinates,you can use an offset with the '''Offs''' option:&lt;br /&gt;
&lt;br /&gt;
  mm3d GCPConvert AppInFile F20-1_Cibles.txt Offs=[1657000,6210000,0]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Uncertainty in output XML file=== &lt;br /&gt;
As seen in previous example, the uncertainty of each ground control point is fixed by default at the value of one ground unit in each direction of the coordinate system:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Incertitude&amp;gt;1 1 1&amp;lt;/Incertitude&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In case of using the generated GCP file with Campari for bundle adjustment, you'll have to specify a factor which will be alter this uncertainty. So, if uncertainty is equal for each direction and each point, it's easier to specify it by this way.&lt;br /&gt;
In the following example, factor of '''0.002''' generates an uncertainty of '''2 mm''' in a metric coordinate system.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari &amp;quot;.*JPG&amp;quot; MEP_Basc2 MEP_Terrain GCP=[Targets.xml,0.002,Targets_Final-S2D.xml,0.5]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Formatting the input GCP file ==&lt;br /&gt;
If you don't use an AppXML formatted file (in fact a MicMac's XML file), the input file has to be a '''space or tabulation separated values file''' (no comma or other symbols). You can use 'Egels' or 'GeoCub' format, or describe your file as explained below.&lt;br /&gt;
 &lt;br /&gt;
===AppGeoCub===&lt;br /&gt;
Text file is formatted as:&lt;br /&gt;
&amp;lt;pre&amp;gt;PointNumber    X    Y    Z&amp;lt;/pre&amp;gt;   &lt;br /&gt;
Lines beginning with '%' are considered as comments.&lt;br /&gt;
&lt;br /&gt;
===AppEgels===&lt;br /&gt;
Text file is formatted as:&lt;br /&gt;
&amp;lt;pre&amp;gt;PointNumber  VariableNonImported  X    Y    Z&amp;lt;/pre&amp;gt;   &lt;br /&gt;
Lines beginning with '#' are considered as comments.&lt;br /&gt;
&lt;br /&gt;
This file format is used by some IGN/ENSG softwares developed by Yves Egels[http://yves.egels.free.fr/Soft/telecharger.html].&lt;br /&gt;
&lt;br /&gt;
===AppInFile===&lt;br /&gt;
The first line describes name and position of the rows. It begins by '#F= ', where&lt;br /&gt;
*the first character '#' means that all line beginning by a # will be a comment;&lt;br /&gt;
*the two characters 'F=' mean that this is really a format specification;&lt;br /&gt;
'#F= ' followed by the format specification :&lt;br /&gt;
*'N' means the name of the point;&lt;br /&gt;
*'X', 'Y', 'Z' means the coordinates;&lt;br /&gt;
*'Ix', 'Iy', 'Iz' means the accuracy (not mandatory);&lt;br /&gt;
*S means a string which has not to be interpreted;&lt;br /&gt;
separated by spaces.&lt;br /&gt;
&lt;br /&gt;
You can reorder this format as you want. &lt;br /&gt;
&lt;br /&gt;
''Example 1:''&lt;br /&gt;
&amp;lt;pre&amp;gt;#F= N X Y Z Ix Iy Iz&lt;br /&gt;
157 233.28 144.03 103.05 0.00332 0.0034 0.0039&lt;br /&gt;
158 317.011 -0.00000 0.0000 0.0053 0.0060 0.0071&amp;lt;/pre&amp;gt;&lt;br /&gt;
*N means the first string of each line is the name of the point;&lt;br /&gt;
*X, Y, Z means that this strings number 2, 3 and 4 are the coordinates;&lt;br /&gt;
*Ix, Iy, Iz means that this strings number 5, 6 and 7 are the accuracy;&lt;br /&gt;
&lt;br /&gt;
''Example 2:''&lt;br /&gt;
&amp;lt;pre&amp;gt;#F= N S X Y Z&lt;br /&gt;
300 3 94.208685 658.506787 42.39556&lt;br /&gt;
301 3 95.323427 656.409116 43.502239&lt;br /&gt;
302 3 97.008135 654.424482 45.084237&amp;lt;/pre&amp;gt;&lt;br /&gt;
*N means the first string of each line is the name of the point;&lt;br /&gt;
*S means the 2nd string has not to be interpreted;&lt;br /&gt;
*X, Y, Z means that this strings number 3, 4 and 5 are the coordinates.&lt;br /&gt;
&lt;br /&gt;
==Known limitations==&lt;br /&gt;
===GCPConverts add many decimals to coordinates===&lt;br /&gt;
As reported [[http://forum-micmac.forumprod.com/gcpconvert-add-many-decimals-to-coordinates-t1267.html]], GCPConvert alters slightly values during the conversion, by adding non significant decimals because of C++ float rounding error. These changes are not to be of any concern to the user as they (1) are a change of less than 0.01 picometer and (2) would anyway exist in the execution of the code even if not displayed here.&lt;br /&gt;
So instead of taking back this file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;DicoAppuisFlottant&amp;gt;&lt;br /&gt;
     &amp;lt;OneAppuisDAF&amp;gt;&lt;br /&gt;
          &amp;lt;Pt&amp;gt;301.610 939.1341 144.75&amp;lt;/Pt&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;30&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;Incertitude&amp;gt;1 1 1&amp;lt;/Incertitude&amp;gt;&lt;br /&gt;
     &amp;lt;/OneAppuisDAF&amp;gt;&lt;br /&gt;
     &amp;lt;OneAppuisDAF&amp;gt;&lt;br /&gt;
          &amp;lt;Pt&amp;gt;301.412 937.530 144.787&amp;lt;/Pt&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;31&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;Incertitude&amp;gt;1 1 1&amp;lt;/Incertitude&amp;gt;&lt;br /&gt;
     &amp;lt;/OneAppuisDAF&amp;gt;&lt;br /&gt;
&amp;lt;/DicoAppuisFlottant&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
You may rather obtain this one:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;DicoAppuisFlottant&amp;gt;&lt;br /&gt;
     &amp;lt;OneAppuisDAF&amp;gt;&lt;br /&gt;
          &amp;lt;Pt&amp;gt;301.61000000000001 939.13400000000001 144.75&amp;lt;/Pt&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;30&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;Incertitude&amp;gt;1 1 1&amp;lt;/Incertitude&amp;gt;&lt;br /&gt;
     &amp;lt;/OneAppuisDAF&amp;gt;&lt;br /&gt;
     &amp;lt;OneAppuisDAF&amp;gt;&lt;br /&gt;
          &amp;lt;Pt&amp;gt;301.41199999999998 937.52999999999997 144.78700000000001&amp;lt;/Pt&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;31&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;Incertitude&amp;gt;1 1 1&amp;lt;/Incertitude&amp;gt;&lt;br /&gt;
     &amp;lt;/OneAppuisDAF&amp;gt;&lt;br /&gt;
&amp;lt;/DicoAppuisFlottant&amp;gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Tawny&amp;diff=3082</id>
		<title>Tawny</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Tawny&amp;diff=3082"/>
				<updated>2019-02-26T13:07:12Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px]] [[Command|List of commands]]&lt;br /&gt;
==Description==&lt;br /&gt;
The simplified tool for generating ortho mosaic is Tawny, it is an interface to the [[Porto]] tool. The use of Tawny is quite simple because it assumes that the data have been correctly prepared and organized during the matching process. Practically this is done when the matching has been made using [[Malt]] and it is recommended to only use Tawny in conjunction with [[Malt]]. In Ortho Mode, Malt has created a set of individual ortho images, associated mask, incidence image, . . . in a directory Ortho-MEC-Malt/&lt;br /&gt;
The job of Tawny is essentially to merge these data and to optionally do some radiometric equalization.&lt;br /&gt;
&lt;br /&gt;
For the radiometric equalization, Tawny will compute for each individual ortho image &amp;lt;math&amp;gt;O_i&amp;lt;/math&amp;gt; a polynom &amp;lt;math&amp;gt;P_i&amp;lt;/math&amp;gt; such that, &amp;lt;math&amp;gt;∀(i, j, x, y)&amp;lt;/math&amp;gt; where ortho image &amp;lt;math&amp;gt;O_i&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;O_j&amp;lt;/math&amp;gt; are both defined in at the ground coordinates &amp;lt;math&amp;gt;(x, y)&amp;lt;/math&amp;gt; we have the relation:&lt;br /&gt;
*&amp;lt;math&amp;gt;O_i(x, y)*P_i(x, y) = O_j(x, y)*P_j(x, y)&amp;lt;/math&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(1)&lt;br /&gt;
&lt;br /&gt;
The problem with such formula is that it can lead to important drift in radiometry. So there is also a global polynom R that is computed, this polynom is such that:&lt;br /&gt;
*&amp;lt;math&amp;gt;O_i(x, y)*P_i(x, y)*R(x, y) = O_i(x, y)&amp;lt;/math&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(2)&lt;br /&gt;
&lt;br /&gt;
The radiometry of each image used for the ortho photo will finally be &amp;lt;math&amp;gt;O_i(x, y)P_i(x, y)R(x, y)&amp;lt;/math&amp;gt;. Of course for equation (1) and (2), there is much more observations than unknowns and they are solved using least mean square. The user can control the radiometric equalization by specifying the degree of the polynom. &lt;br /&gt;
&lt;br /&gt;
If the polynomial correction fail at computing a good radiometric product, the user can deactivate it using ''RadiomEgal=0'' .&lt;br /&gt;
&lt;br /&gt;
===Syntax===&lt;br /&gt;
The global syntax for Tawny is :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tawny Directory NamedArgs&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Help=== &lt;br /&gt;
A basic help can be asked with :&lt;br /&gt;
&amp;lt;pre&amp;gt; mm3d Tawny -help &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mandatory unnamed args : &lt;br /&gt;
*string :: {Data directory}&lt;br /&gt;
&lt;br /&gt;
Named args : &lt;br /&gt;
*[Name=RadiomEgal] bool :: {Perform or not radiometric egalization (Def=true)}&lt;br /&gt;
*[Name=DEq] INT :: {Degree of equalization (degree of polynoms Oi), Def=1}&lt;br /&gt;
*[Name=DEqXY] Pt2di :: {Degree of equalization, if diff in X and Y}&lt;br /&gt;
*[Name=AddCste] bool :: {Add unknown constant for equalization (Def=false)}&lt;br /&gt;
*[Name=DegRap] INT :: {Degree of rappel to initial values (degree of global polynom R), Def = 0}&lt;br /&gt;
*[Name=DegRapXY] Pt2di :: {Degree of rappel to initial values when different in X and Y, Def = 0}&lt;br /&gt;
*[Name=RGP] bool :: {Rappel glob on physically equalized, Def = true}&lt;br /&gt;
*[Name=DynG] REAL :: {Global Dynamic (to correct saturation problems)}&lt;br /&gt;
*[Name=ImPrio] string :: {Pattern of image with high prio, def=.*}&lt;br /&gt;
*[Name=SzV] INT :: {Sz of Window for equalization (Def=1, means 3x3)}&lt;br /&gt;
*[Name=CorThr] REAL :: {Threshold of correlation to validate homologous (Def 0.7)}&lt;br /&gt;
*[Name=NbPerIm] REAL :: {Average number of point per image (Def = 1e4)}&lt;br /&gt;
*[Name=L1F] bool :: {Do L1 Filter on couple, def=true (change when process is blocked)}&lt;br /&gt;
*[Name=SatThresh] REAL :: {Threshold determining saturation value (pixel &amp;gt;SatThresh will be ignored)}&lt;br /&gt;
*[Name=Out] string :: {Name of output file (in the folder)}&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
For example in the Mur Saint Martin dataset (or whenever &amp;quot;[[Malt]] Ortho&amp;quot; was used without the &amp;quot;DirMEC&amp;quot; option changed), you can launch :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tawny Ortho-MEC-Malt/&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Tawny&amp;diff=3081</id>
		<title>Tawny</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Tawny&amp;diff=3081"/>
				<updated>2019-02-26T13:05:42Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Help */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px]] [[Command|List of commands]]&lt;br /&gt;
==Description==&lt;br /&gt;
The simplified tool for generating ortho mosaic is Tawny, it is an interface to the [[Porto]] tool. The use of Tawny is quite simple because it assumes that the data have been correctly prepared and organized during the matching process. Practically this is done when the matching has been made using [[Malt]] and it is recommended to only use Tawny in conjunction with [[Malt]]. In Ortho Mode, Malt has created a set of individual ortho images, associated mask, incidence image, . . . in a directory Ortho-MEC-Malt/&lt;br /&gt;
The job of Tawny is essentially to merge these data and to optionally do some radiometric equalization.&lt;br /&gt;
&lt;br /&gt;
For the radiometric equalization, Tawny will compute for each individual ortho image &amp;lt;math&amp;gt;O_i&amp;lt;/math&amp;gt; a polynom &amp;lt;math&amp;gt;P_i&amp;lt;/math&amp;gt; such that, &amp;lt;math&amp;gt;∀(i, j, x, y)&amp;lt;/math&amp;gt; where ortho image &amp;lt;math&amp;gt;O_i&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;O_j&amp;lt;/math&amp;gt; are both defined in at the ground coordinates &amp;lt;math&amp;gt;(x, y)&amp;lt;/math&amp;gt; we have the relation:&lt;br /&gt;
*&amp;lt;math&amp;gt;O_i(x, y)*P_i(x, y) = O_j(x, y)*P_j(x, y)&amp;lt;/math&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(1)&lt;br /&gt;
&lt;br /&gt;
The problem with such formula is that it can lead to important drift in radiometry. So there is also a global polynom R that is computed, this polynom is such that:&lt;br /&gt;
*&amp;lt;math&amp;gt;O_i(x, y)*P_i(x, y)*R(x, y) = O_i(x, y)&amp;lt;/math&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(2)&lt;br /&gt;
&lt;br /&gt;
The radiometry of each image used for the ortho photo will finally be &amp;lt;math&amp;gt;O_i(x, y)P_i(x, y)R(x, y)&amp;lt;/math&amp;gt;. Of course for equation (1) and (2), there is much more observations than unknowns and they are solved using least mean square. The user can control the radiometric equalization by specifying the degree of the polynom. &lt;br /&gt;
&lt;br /&gt;
===Syntax===&lt;br /&gt;
The global syntax for Tawny is :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tawny Directory NamedArgs&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Help=== &lt;br /&gt;
A basic help can be asked with :&lt;br /&gt;
&amp;lt;pre&amp;gt; mm3d Tawny -help &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mandatory unnamed args : &lt;br /&gt;
*string :: {Data directory}&lt;br /&gt;
&lt;br /&gt;
Named args : &lt;br /&gt;
*[Name=RadiomEgal] bool :: {Perform or not radiometric egalization (Def=true)}&lt;br /&gt;
*[Name=DEq] INT :: {Degree of equalization (degree of polynoms Oi), Def=1}&lt;br /&gt;
*[Name=DEqXY] Pt2di :: {Degree of equalization, if diff in X and Y}&lt;br /&gt;
*[Name=AddCste] bool :: {Add unknown constant for equalization (Def=false)}&lt;br /&gt;
*[Name=DegRap] INT :: {Degree of rappel to initial values (degree of global polynom R), Def = 0}&lt;br /&gt;
*[Name=DegRapXY] Pt2di :: {Degree of rappel to initial values when different in X and Y, Def = 0}&lt;br /&gt;
*[Name=RGP] bool :: {Rappel glob on physically equalized, Def = true}&lt;br /&gt;
*[Name=DynG] REAL :: {Global Dynamic (to correct saturation problems)}&lt;br /&gt;
*[Name=ImPrio] string :: {Pattern of image with high prio, def=.*}&lt;br /&gt;
*[Name=SzV] INT :: {Sz of Window for equalization (Def=1, means 3x3)}&lt;br /&gt;
*[Name=CorThr] REAL :: {Threshold of correlation to validate homologous (Def 0.7)}&lt;br /&gt;
*[Name=NbPerIm] REAL :: {Average number of point per image (Def = 1e4)}&lt;br /&gt;
*[Name=L1F] bool :: {Do L1 Filter on couple, def=true (change when process is blocked)}&lt;br /&gt;
*[Name=SatThresh] REAL :: {Threshold determining saturation value (pixel &amp;gt;SatThresh will be ignored)}&lt;br /&gt;
*[Name=Out] string :: {Name of output file (in the folder)}&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
For example in the Mur Saint Martin dataset (or whenever &amp;quot;[[Malt]] Ortho&amp;quot; was used without the &amp;quot;DirMEC&amp;quot; option changed), you can launch :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tawny Ortho-MEC-Malt/&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=3077</id>
		<title>Luc Girod</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=3077"/>
				<updated>2019-01-24T10:46:18Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Luc_Girod.jpg|thumb| Luc Girod, 2016]]&lt;br /&gt;
Luc Girod is a former student at [[ENSG]] and former research engineer at LGA/ENSG. He is currently a Researcher at the university of Oslo, working on the applications of phototogrammetry in the field of glaciology and periglacial processes. He was granted the degree of PhD by the University of Oslo on February 27, 2018, thesis available online [https://www.duo.uio.no/handle/10852/62195?show=full].&lt;br /&gt;
&lt;br /&gt;
His contributions to MicMac include:&lt;br /&gt;
*Numerous elements of the [[SateLib]] sub-librairy, including the ASTER related commands.  (2015-today)&lt;br /&gt;
*[[Apero2PMVS]] (2013)&lt;br /&gt;
*[[Vodka]] (2013)&lt;br /&gt;
*[[Arsenic]] (2013)&lt;br /&gt;
*[[Drunk]] (2013)&lt;br /&gt;
*Smaller local edits and improvements across the years.&lt;br /&gt;
*Contribution to tutorials and ''one-click workflows'' : https://github.com/luc-girod/MicMacWorkflowsByLucGirod&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See publications : https://scholar.google.no/citations?user=4hS3WZIAAAAJ&lt;br /&gt;
&lt;br /&gt;
Personal website : http://www.lucgirod.eu&lt;br /&gt;
&lt;br /&gt;
Contact : luc.girod@geo.uio.no&lt;br /&gt;
&lt;br /&gt;
Also known as Nils Tillander on the internet:&lt;br /&gt;
* YouTube : https://www.youtube.com/user/nilstillander&lt;br /&gt;
* Twitter : @NilsTillander https://twitter.com/nilstillander&lt;br /&gt;
* Instagram : https://www.instagram.com/nils_tillander/&lt;br /&gt;
* SoundCloud : https://soundcloud.com/nilstillander&lt;br /&gt;
&lt;br /&gt;
--------------------------------------&lt;br /&gt;
Back to [[Contributors]]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=3076</id>
		<title>Luc Girod</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=3076"/>
				<updated>2019-01-24T10:43:53Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Luc_Girod.jpg|thumb| Luc Girod, 2016]]&lt;br /&gt;
Luc Girod is a former student at [[ENSG]] and former research engineer at LGA/ENSG. He is currently a Researcher at the university of Oslo, working on the applications of phototogrammetry in the field of glaciology and periglacial processes. He was granted the degree of PhD by the University of Oslo on February 27, 2018, thesis available online [https://www.duo.uio.no/handle/10852/62195?show=full].&lt;br /&gt;
&lt;br /&gt;
His contributions to MicMac include:&lt;br /&gt;
*[[Apero2PMVS]]&lt;br /&gt;
*[[Vodka]]&lt;br /&gt;
*[[Arsenic]]&lt;br /&gt;
*[[Drunk]]&lt;br /&gt;
*Numerous elements of the [[SateLib]] sub-librairy, including the ASTER related commands.&lt;br /&gt;
*Smaller local edits and improvements across the years.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See publications : https://scholar.google.no/citations?user=4hS3WZIAAAAJ&lt;br /&gt;
&lt;br /&gt;
Personal website : http://www.lucgirod.eu&lt;br /&gt;
&lt;br /&gt;
Contact : luc.girod@geo.uio.no&lt;br /&gt;
&lt;br /&gt;
Also known as Nils Tillander on the internet:&lt;br /&gt;
* YouTube : https://www.youtube.com/user/nilstillander&lt;br /&gt;
* Twitter : @NilsTillander https://twitter.com/nilstillander&lt;br /&gt;
* Instagram : https://www.instagram.com/nils_tillander/&lt;br /&gt;
* SoundCloud : https://soundcloud.com/nilstillander&lt;br /&gt;
&lt;br /&gt;
--------------------------------------&lt;br /&gt;
Back to [[Contributors]]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=3075</id>
		<title>Luc Girod</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=3075"/>
				<updated>2019-01-24T10:43:44Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Luc_Girod.jpg|thumb| Luc Girod, 2016]]&lt;br /&gt;
Luc Girod is a former student at [[ENSG]] and former research engineer at LGA/ENSG. He is currently a Researcher at the university of Oslo, working on the applications of phototogrammetry in the field of glaciology and periglacial processes. He was granted the degree of PhD by the University of Oslo on February 27, 2018, thesis available online [https://www.duo.uio.no/handle/10852/62195?show=full].&lt;br /&gt;
&lt;br /&gt;
His contributions to MicMac include:&lt;br /&gt;
*[[Apero2PMVS]]&lt;br /&gt;
*[[Vodka]]&lt;br /&gt;
*[[Arsenic]]&lt;br /&gt;
*[[Drunk]]&lt;br /&gt;
*Numerous elements of the [[SateLib]] sub-librairy, including the ASTER related commands.&lt;br /&gt;
*Smaller local edits and improvements across the years.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See publications : https://scholar.google.no/citations?user=4hS3WZIAAAAJ&lt;br /&gt;
&lt;br /&gt;
Presonal website : http://www.lucgirod.eu&lt;br /&gt;
Contact : luc.girod@geo.uio.no&lt;br /&gt;
&lt;br /&gt;
Also known as Nils Tillander on the internet:&lt;br /&gt;
* YouTube : https://www.youtube.com/user/nilstillander&lt;br /&gt;
* Twitter : @NilsTillander https://twitter.com/nilstillander&lt;br /&gt;
* Instagram : https://www.instagram.com/nils_tillander/&lt;br /&gt;
* SoundCloud : https://soundcloud.com/nilstillander&lt;br /&gt;
&lt;br /&gt;
--------------------------------------&lt;br /&gt;
Back to [[Contributors]]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Install_MicMac_Ubuntu&amp;diff=3072</id>
		<title>Install MicMac Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Install_MicMac_Ubuntu&amp;diff=3072"/>
				<updated>2019-01-02T16:40:00Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Get the source */ removed Mercurial link to avoid confusion.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MicMac is an open source project and you can download the source code and compile the project yourself. This page presents the steps of the installation on a Linux system using apt-get (such as Ubuntu), but similar steps work on other systems.&lt;br /&gt;
&lt;br /&gt;
Beware : the code available in the latest revision might not be stable or might not compile in a given OS.&lt;br /&gt;
&lt;br /&gt;
== Get the source ==&lt;br /&gt;
&lt;br /&gt;
The MicMac project is now hosted on the GitHub platform.&lt;br /&gt;
&lt;br /&gt;
=== Install Git ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Download the source ===&lt;br /&gt;
Go to the installation directory, where you want to install MicMac.&lt;br /&gt;
&lt;br /&gt;
For “optimisation” reasons, the project files were divided into three GitHub sub-projects:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/micmacIGN/micmac : contains the source code of MicMac&lt;br /&gt;
&lt;br /&gt;
* https://github.com/micmacIGN/Documentation : contains the documentation/manuals&lt;br /&gt;
&lt;br /&gt;
* https://github.com/micmacIGN/Papers : contains some publications and other reports concerning MicMac&lt;br /&gt;
&lt;br /&gt;
To retrieve the source code to micmac folder:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone https://github.com/micmacIGN/micmac.git micmac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Build from sources ==&lt;br /&gt;
===Automatically===&lt;br /&gt;
The script_jenkins.sh available in micmac repository (or here : [https://github.com/micmacIGN/micmac/blob/master/script_jenkins_unix.sh]) can be used for an automatic compilation from sources.&lt;br /&gt;
&lt;br /&gt;
=== Manually ===&lt;br /&gt;
&lt;br /&gt;
From the installation directory, move to the 'micmac' directory :&lt;br /&gt;
&amp;lt;pre&amp;gt;cd micmac/&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then, you have to create a build directory and go in it :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then we have to generate the makefile with the right options. To generate the defaut makefile, run :&lt;br /&gt;
&amp;lt;pre&amp;gt;cmake -DWITH_QT5=1 -DWITH_CPP11=1 ..&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;About option -DWITH_QT5=1&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use this option if you want to use tools GUI such : SaisieAppuisInitQT, SaisieMasqQT etc... If not, simply use :&lt;br /&gt;
&amp;lt;pre&amp;gt;cmake ../&amp;lt;/pre&amp;gt;&lt;br /&gt;
You have perhaps to install QT if it's not done :&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install qt5-default qttools5-dev-tools&amp;lt;/pre&amp;gt;&lt;br /&gt;
NB : Version 5 is used here, use &amp;quot;-DWITH_QT4=1&amp;quot; instead if ou have QT v4.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can finally build the sources by launching :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make install -jK&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where K=&amp;quot;number of processor in your computer&amp;quot; (if you are not sure how many cores you have, just write a big number and all of the cores will be used).&lt;br /&gt;
&lt;br /&gt;
==Add MicMac to path==&lt;br /&gt;
We have now to edit the file wich contains environnement path which is located in &amp;quot;/etc/bash.bashrc&amp;quot;. The file is maybe hidden, so press CTRL+H, or activate &amp;quot;Hidden files&amp;quot; in Display (Top bar).&lt;br /&gt;
So open a terminal and type :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo gedit /etc/bash.bashrc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
NB : files in &amp;quot;/etc/&amp;quot; have to be opened in super user mode.&amp;lt;br&amp;gt;&lt;br /&gt;
Add the following lines at the bottom of the file :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;export PATH=/''micmac_install_directory''/micmac/bin:$PATH&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Check Installation==&lt;br /&gt;
===List of MicMac tools===&lt;br /&gt;
To check if MicMac is well installed, you can type in a terminal :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will return the list of all tools available for micmac library.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Check dependencies===&lt;br /&gt;
Sometimes, even when the MicMac installation is good, you can encounter messages in the terminal such as :&lt;br /&gt;
*&amp;quot;Warning Exiftool not installed&amp;quot;&lt;br /&gt;
This warnings means that MicMac can't find an external tools.&lt;br /&gt;
MicMac integrates a module which can check if all dependencies are correctly installed. It can be called by typing :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mm3d CheckDependencies&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:checkdependencies.png|thumb|250px||alt=Exemple d'image en hauteur|Screenshot 1]]&lt;br /&gt;
&lt;br /&gt;
You will get an output like Screenshot 1, with different informations :&lt;br /&gt;
*MicMac revision : micmac source code version number&lt;br /&gt;
*Qt : &amp;quot;enabled&amp;quot; permit you to use graphical interfaces such SaisieAppuisQT&lt;br /&gt;
*Kakadu : Image library for JPEG2000 management&lt;br /&gt;
*MicMac directory : Directory where MicMac is installed&lt;br /&gt;
*make : &lt;br /&gt;
*exiftool : library of image metadata management&lt;br /&gt;
*exiv2 : library of image metadata management&lt;br /&gt;
*convert :&lt;br /&gt;
*proj : library for cartographic projection&lt;br /&gt;
*cs2cs :&lt;br /&gt;
&lt;br /&gt;
== Update sources ==&lt;br /&gt;
To update the sources, go in the installtion directory (&amp;quot;installation_directory/micmac&amp;quot;) and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have now to build again the sources:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd build&lt;br /&gt;
cmake ..&lt;br /&gt;
make install -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
NB : if you want still use QT, don't forget to use &amp;lt;code&amp;gt;cmake -DWITH_QT5=1 ../&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Errors with cmake ===&lt;br /&gt;
*&amp;lt;code&amp;gt;...Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)...&amp;lt;/code&amp;gt; =&amp;gt; Try to install Qt&lt;br /&gt;
*&amp;lt;code&amp;gt;No CMAKE_CXX_COMPILER could be found. &amp;lt;/code&amp;gt; =&amp;gt; install g++ (sudo apt-get install g++)&lt;br /&gt;
*&amp;lt;code&amp;gt;...Could not find a package configuration file provided by &amp;quot;Qt5OpenGL&amp;quot;...&amp;lt;/code&amp;gt; =&amp;gt; install libqt5opengl5-dev&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=2980</id>
		<title>Luc Girod</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=2980"/>
				<updated>2018-09-20T07:30:43Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Luc_Girod.jpg|thumb| Luc Girod, 2016]]&lt;br /&gt;
Luc Girod is a former student at [[ENSG]] and former research engineer at LGA/ENSG. He is currently a Researcher at the university of Oslo, working on the applications of phototogrammetry in the field of glaciology and periglacial processes. He was granted the degree of PhD by the University of Oslo on February 27, 2018, thesis available online [https://www.duo.uio.no/handle/10852/62195?show=full].&lt;br /&gt;
&lt;br /&gt;
His contributions to MicMac include:&lt;br /&gt;
*[[Apero2PMVS]]&lt;br /&gt;
*[[Vodka]]&lt;br /&gt;
*[[Arsenic]]&lt;br /&gt;
*[[Drunk]]&lt;br /&gt;
*Numerous elements of the [[SateLib]] sub-librairy, including the ASTER related commands.&lt;br /&gt;
*Smaller local edits and improvements across the years.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See publications : https://scholar.google.no/citations?user=4hS3WZIAAAAJ&lt;br /&gt;
&lt;br /&gt;
Contact : luc.girod@geo.uio.no&lt;br /&gt;
&lt;br /&gt;
Also known as Nils Tillander on the internet:&lt;br /&gt;
* YouTube : https://www.youtube.com/user/nilstillander&lt;br /&gt;
* Twitter : @NilsTillander https://twitter.com/nilstillander&lt;br /&gt;
* Instagram : https://www.instagram.com/nils_tillander/&lt;br /&gt;
* SoundCloud : https://soundcloud.com/nilstillander&lt;br /&gt;
&lt;br /&gt;
--------------------------------------&lt;br /&gt;
Back to [[Contributors]]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=2979</id>
		<title>Luc Girod</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=2979"/>
				<updated>2018-09-20T07:30:26Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Luc_Girod.jpg|thumb| Luc Girod, 2016]]&lt;br /&gt;
Luc Girod is a former student at [[ENSG]] and former research engineer at LGA/ENSG. He is currently a Researcher at the university of Oslo, working on the applications of phototogrammetry in the field of glaciology and periglacial processes. He was granted the degree of PhD by the University of Oslo on February 27, 2018, thesis available here : [https://www.duo.uio.no/handle/10852/62195?show=full].&lt;br /&gt;
&lt;br /&gt;
His contributions to MicMac include:&lt;br /&gt;
*[[Apero2PMVS]]&lt;br /&gt;
*[[Vodka]]&lt;br /&gt;
*[[Arsenic]]&lt;br /&gt;
*[[Drunk]]&lt;br /&gt;
*Numerous elements of the [[SateLib]] sub-librairy, including the ASTER related commands.&lt;br /&gt;
*Smaller local edits and improvements across the years.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See publications : https://scholar.google.no/citations?user=4hS3WZIAAAAJ&lt;br /&gt;
&lt;br /&gt;
Contact : luc.girod@geo.uio.no&lt;br /&gt;
&lt;br /&gt;
Also known as Nils Tillander on the internet:&lt;br /&gt;
* YouTube : https://www.youtube.com/user/nilstillander&lt;br /&gt;
* Twitter : @NilsTillander https://twitter.com/nilstillander&lt;br /&gt;
* Instagram : https://www.instagram.com/nils_tillander/&lt;br /&gt;
* SoundCloud : https://soundcloud.com/nilstillander&lt;br /&gt;
&lt;br /&gt;
--------------------------------------&lt;br /&gt;
Back to [[Contributors]]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Bibliography&amp;diff=2760</id>
		<title>Bibliography</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Bibliography&amp;diff=2760"/>
				<updated>2018-08-16T07:40:06Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Articles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Articles=&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Author&lt;br /&gt;
!Title&lt;br /&gt;
!URL&lt;br /&gt;
!Use of MicMac&lt;br /&gt;
|-&lt;br /&gt;
|A. Stumpf, E. Augereau, C. Delacourt, J. Bonnier&lt;br /&gt;
|&amp;lt;i&amp;gt;Photogrammetric discharge monitoring of small tropical mountain rivers: A case study at Rivière des Pluies, Réunion Island&amp;lt;/i&amp;gt;&lt;br /&gt;
|https://www.researchgate.net/publication/303093292_Photogrammetric_discharge_monitoring_of_small_tropical_mountain_rivers_A_case_study_at_Riviere_des_Pluies_Reunion_Island&lt;br /&gt;
|Reconstruction of mobile river beds at La Reunion&lt;br /&gt;
|-&lt;br /&gt;
|A. Stumpf, J.-P. Malet, C. Delacourt&lt;br /&gt;
|&amp;lt;i&amp;gt;Correlation of satellite image time-series for the detection and monitoring of slow-moving landslides&amp;lt;/i&amp;gt;&lt;br /&gt;
|https://www.researchgate.net/publication/310800399_Correlation_of_satellite_image_time-series_for_the_detection_and_monitoring_of_slow-moving_landslides&lt;br /&gt;
|Proposing methods for analyzing time-series of displacement fields for landslide detection and monitoring, MicMac is used for derriving the displacement fields&lt;br /&gt;
|-&lt;br /&gt;
|A. Stumpf,  J.-P. Malet, P. Allemand, G. Skupinski&lt;br /&gt;
|&amp;lt;i&amp;gt;Ground-based multi-view photogrammetry for the monitoring of landslide deformation and erosion&amp;lt;/i&amp;gt;&lt;br /&gt;
|https://www.researchgate.net/publication/269762133_Ground-based_multi-view_photogrammetry_for_the_monitoring_of_landslide_deformation_and_erosion&lt;br /&gt;
|Comparison of different MVS methods for monitoring landslides and erosion&lt;br /&gt;
|-&lt;br /&gt;
|Luc Girod, C Nuth, A Kääb, R McNabb, O Galland&lt;br /&gt;
|&amp;lt;i&amp;gt;MMASTER: improved ASTER DEMs for elevation change monitoring&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.mdpi.com/2072-4292/9/7/704/htm&lt;br /&gt;
|Describe a method to process ASTER images into DEMs&lt;br /&gt;
|-&lt;br /&gt;
|Luc Girod, C Nuth, A Kääb&lt;br /&gt;
|&amp;lt;i&amp;gt;IMPROVEMENT OF DEM GENERATION FROM ASTER IMAGES USING SATELLITE JITTER ESTIMATION AND OPEN SOURCE IMPLEMENTATION&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XL-1-W5/249/2015/&lt;br /&gt;
|Describe a method to process ASTER images into DEMs (conference proceeding)&lt;br /&gt;
|-&lt;br /&gt;
|Luc Girod, C Nuth, A Kääb, B Etzelmüller, J Kohler&lt;br /&gt;
|&amp;lt;i&amp;gt;Terrain changes from images acquired on opportunistic flights by SfM photogrammetry.&amp;lt;/i&amp;gt;&lt;br /&gt;
|https://www.the-cryosphere.net/11/827/2017/&lt;br /&gt;
|Describe a method to process GoPro images taken from helicopter without GCPs and only rough flight track&lt;br /&gt;
|-&lt;br /&gt;
|Olivier Galland&lt;br /&gt;
|&amp;lt;i&amp;gt;APPLICATION OF OPEN-SOURCE PHOTOGRAMMETRIC SOFTWARE MICMAC FOR MONITORING SURFACE DEFORMATION IN LABORATORY MODELS&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://dx.doi.org/10.1002/2015JB012564&lt;br /&gt;
|MicMac for monitoring surface deformation (Gravillons dataset)&lt;br /&gt;
|-&lt;br /&gt;
|Mehdi Daakir&lt;br /&gt;
|&amp;lt;i&amp;gt;UAV ONBOARD PHOTOGRAMMETRY AND GPS POSITIONNING FOR EARTHWORKS&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XL-3-W3/293/2015/isprsarchives-XL-3-W3-293-2015.pdf&lt;br /&gt;
|Compute lever arm for UAV onboard photogrammetry&lt;br /&gt;
|-&lt;br /&gt;
|Marc Pierrot-Deseilligny&lt;br /&gt;
|&amp;lt;i&amp;gt;A MULTIRESOLUTION AND OPTIMIZATION-BASED IMAGE MATCHING APPROACH: AN APPLICATION TO SURFACE RECONSTRUCTION FROM SPOT5-HRS STEREO IMAGERY&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.isprs.org/proceedings/xxxvi/1-w41/makaleler/Pierrot_multiresolution_matching.pdf&lt;br /&gt;
|Describe multi-scale approach which MicMac use&lt;br /&gt;
|-&lt;br /&gt;
|Marc Pierrot-Deseilligny&lt;br /&gt;
|&amp;lt;i&amp;gt;APERO, AN OPEN SOURCE BUNDLE ADJUSMENT SOFTWARE FOR AUTOMATIC CALIBRATION AND ORIENTATION OF SET OF IMAGES&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XXXVIII-5-W16/269/2011/isprsarchives-XXXVIII-5-W16-269-2011.pdf&lt;br /&gt;
|General presentation of APERO-MicMac, some algorithmic aspects and examples of realizations&lt;br /&gt;
|-&lt;br /&gt;
|Antoine Pinte&lt;br /&gt;
|&amp;lt;i&amp;gt;Orthoimages of the outer walls and towers of the château de Chambord&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.isprs-ann-photogramm-remote-sens-spatial-inf-sci.net/II-5-W3/243/2015/isprsannals-II-5-W3-243-2015.pdf&lt;br /&gt;
|On the use of MicMac to produce a photogrammetric documentation in the context of architectural/cultural heritage, example of the château de Chambord&lt;br /&gt;
|-&lt;br /&gt;
|Raphaele Héno&lt;br /&gt;
|&amp;lt;i&amp;gt;COSTLESS PLATFORM FOR HIGH RESOLUTION STEREOSCOPIC IMAGES OF A HIGH GOTHIC FACADE&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XXXIX-B5/559/2012/isprsarchives-XXXIX-B5-559-2012.pdf&lt;br /&gt;
|On the use of MicMac to produce a photogrammetric documentation in the context of architectural/cultural heritage, example of the cathedral of Amiens&lt;br /&gt;
|-&lt;br /&gt;
|Ana-Maria Rosu&lt;br /&gt;
|&amp;lt;i&amp;gt;COASTAL DIGITAL SURFACE MODEL ON LOW CONTRAST IMAGES&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XL-3-W3/307/2015/isprsarchives-XL-3-W3-307-2015.pdf&lt;br /&gt;
|Advanced tie points extraction and using MicMac in coastal sandy environments &lt;br /&gt;
|-&lt;br /&gt;
|Vincent Tournadre&lt;br /&gt;
|&amp;lt;i&amp;gt;UAV PHOTOGRAMMETRY TO MONITOR DYKES – CALIBRATION AND COMPARISON TO TERRESTRIAL LIDAR&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XL-3-W1/143/2014/isprsarchives-XL-3-W1-143-2014.pdf&lt;br /&gt;
|Using MicMac to process UAV acquisitions in the context of dykes monitoring&lt;br /&gt;
|-&lt;br /&gt;
|Vincent Tournadre&lt;br /&gt;
|&amp;lt;i&amp;gt;UAV LINEAR PHOTOGRAMMETRY&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XL-3-W3/327/2015/isprsarchives-XL-3-W3-327-2015.pdf&lt;br /&gt;
|Using MicMac to process complex linear axis UAV acquisitions&lt;br /&gt;
|-&lt;br /&gt;
|Jonathan Lisein&lt;br /&gt;
|&amp;lt;i&amp;gt;A Photogrammetric Workflow for the Creation of a Forest Canopy Height Model from Small Unmanned Aerial System Imagery&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.mdpi.com/1999-4907/4/4/922/htm&lt;br /&gt;
|Using MicMac in forest context to model the forest canopy surface&lt;br /&gt;
|-&lt;br /&gt;
|Athanasios Georgantas&lt;br /&gt;
|&amp;lt;i&amp;gt;AN ACCURACY ASSESSMENT OF AUTOMATED PHOTOGRAMMETRIC TECHNIQUES FOR 3D MODELING OF COMPLEX INTERIORS&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XXXIX-B3/23/2012/isprsarchives-XXXIX-B3-23-2012.pdf&lt;br /&gt;
|Comparison of MicMac 3D cloud point to terrestrial laser scanning for modelling of complex interior spaces&lt;br /&gt;
|-&lt;br /&gt;
|Mariam Samaan&lt;br /&gt;
|&amp;lt;i&amp;gt;CLOSE-RANGE PHOTOGRAMMETRIC TOOLS FOR SMALL 3D ARCHEOLOGICAL OBJECTS&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XL-5-W2/549/2013/isprsarchives-XL-5-W2-549-2013.pdf&lt;br /&gt;
|Using MicMac in the context of macrophotography for small archaeological objects&lt;br /&gt;
|-&lt;br /&gt;
|Anna Mouget&lt;br /&gt;
|&amp;lt;i&amp;gt;PHOTOGRAMMETRIC ARCHAEOLOGICAL SURVEY WITH UAV&amp;lt;/i&amp;gt;&lt;br /&gt;
|http://www.isprs-ann-photogramm-remote-sens-spatial-inf-sci.net/II-5/251/2014/isprsannals-II-5-251-2014.pdf&lt;br /&gt;
|Using MicMac to process archaeological site survey with a UAV&lt;br /&gt;
|-&lt;br /&gt;
|Ewelina Rupnik, Mehdi Daakir and Marc Pierrot Deseilligny&lt;br /&gt;
|&amp;lt;i&amp;gt;MicMac – a free, open-source solution for photogrammetry&amp;lt;/i&amp;gt;&lt;br /&gt;
|https://opengeospatialdata.springeropen.com/articles/10.1186/s40965-017-0027-2&lt;br /&gt;
|An article to discover MicMac and to familiarize with its environment, its philosophy and its main tools.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Historical_Orthoimage&amp;diff=2743</id>
		<title>Historical Orthoimage</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Historical_Orthoimage&amp;diff=2743"/>
				<updated>2018-08-13T07:46:09Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Relative orientation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px|link=Tutorials]] [[Tutorials|Tutorials index]]&lt;br /&gt;
=Description=&lt;br /&gt;
This tutorial will present the method to process historical aerial images into DEM and Orthoimages. With this kind of products, you can monitor changes in an arean (urbanization, landscape changes, etc...). &lt;br /&gt;
&lt;br /&gt;
The USGS NAPP program offers a large amount of free scanned images over the continental US (mostly), often with calibration data, though the [https://earthexplorer.usgs.gov/ Earth Explorer].&lt;br /&gt;
&lt;br /&gt;
If you are looking for a special area in France, you can use the Geoportail ([[IGN]]) to download your own images and process it.&lt;br /&gt;
&lt;br /&gt;
This tutorial is mostly designed and maintained by [[Luc Girod]], if you have questions about it, please get in touch with him.&lt;br /&gt;
&lt;br /&gt;
=Download=&lt;br /&gt;
&lt;br /&gt;
=Presentation=&lt;br /&gt;
&lt;br /&gt;
=Tutorial=&lt;br /&gt;
&lt;br /&gt;
==Internal Orientation==&lt;br /&gt;
MicMac use EXIF metadat in order to determine image format and focal length. However, historical images often don't have such metadata, so we have first to create a xml file called &amp;lt;i&amp;gt;MicMac-LocalChantierDescripteur.xml&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;MicMac-LocalChantierDescripteur.xml&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;Change the values according to your camera.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Global&amp;gt;&lt;br /&gt;
  &amp;lt;ChantierDescripteur &amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Define a camera model (name and sensor/film size) --&amp;gt;&lt;br /&gt;
    &amp;lt;LocCamDataBase&amp;gt;&lt;br /&gt;
        &amp;lt;CameraEntry&amp;gt;&lt;br /&gt;
              &amp;lt;Name&amp;gt; ZeissRMKATOP15  &amp;lt;/Name&amp;gt;&lt;br /&gt;
              &amp;lt;SzCaptMm&amp;gt;  226.004 226.008  &amp;lt;/SzCaptMm&amp;gt; &amp;lt;!-- MidSideFiducials or &amp;quot;MaxFidX-MinFidX MaxFidY-MinFidY&amp;quot;--&amp;gt;&lt;br /&gt;
              &amp;lt;ShortName&amp;gt; Zeiss RMK A Top15* and Zeiss Pleogon A3/4 &amp;lt;/ShortName&amp;gt;&lt;br /&gt;
         &amp;lt;/CameraEntry&amp;gt;&lt;br /&gt;
    &amp;lt;/LocCamDataBase&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Associate images to a camera model --&amp;gt;&lt;br /&gt;
    &amp;lt;KeyedNamesAssociations&amp;gt;&lt;br /&gt;
            &amp;lt;Calcs&amp;gt;&lt;br /&gt;
                 &amp;lt;Arrite&amp;gt;  1 1 &amp;lt;/Arrite&amp;gt;&lt;br /&gt;
                 &amp;lt;Direct&amp;gt;&lt;br /&gt;
                       &amp;lt;PatternTransform&amp;gt; .*  &amp;lt;/PatternTransform&amp;gt; &amp;lt;!-- Regular expressions of the group of images with the following camera model --&amp;gt;&lt;br /&gt;
                       &amp;lt;CalcName&amp;gt; ZeissRMKATOP15 &amp;lt;/CalcName&amp;gt; &amp;lt;!-- Name of the camera for these images --&amp;gt;&lt;br /&gt;
                 &amp;lt;/Direct&amp;gt;&lt;br /&gt;
             &amp;lt;/Calcs&amp;gt;&lt;br /&gt;
             &amp;lt;Key&amp;gt;   NKS-Assoc-STD-CAM &amp;lt;/Key&amp;gt;&lt;br /&gt;
    &amp;lt;/KeyedNamesAssociations&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
    &amp;lt;!-- Associate images to a focal length --&amp;gt;&lt;br /&gt;
    &amp;lt;KeyedNamesAssociations&amp;gt;&lt;br /&gt;
            &amp;lt;Calcs&amp;gt;&lt;br /&gt;
                 &amp;lt;Arrite&amp;gt;  1 1 &amp;lt;/Arrite&amp;gt;&lt;br /&gt;
                 &amp;lt;Direct&amp;gt;&lt;br /&gt;
                       &amp;lt;PatternTransform&amp;gt; .*  &amp;lt;/PatternTransform&amp;gt; &amp;lt;!-- Regular expressions of the group of images with the following focal length --&amp;gt;&lt;br /&gt;
                       &amp;lt;CalcName&amp;gt; 153.664 &amp;lt;/CalcName&amp;gt;	&amp;lt;!-- See calibration report --&amp;gt;&lt;br /&gt;
                 &amp;lt;/Direct&amp;gt;&lt;br /&gt;
             &amp;lt;/Calcs&amp;gt;&lt;br /&gt;
             &amp;lt;Key&amp;gt;   NKS-Assoc-STD-FOC  &amp;lt;/Key&amp;gt;&lt;br /&gt;
    &amp;lt;/KeyedNamesAssociations&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
  &amp;lt;/ChantierDescripteur&amp;gt;&lt;br /&gt;
&amp;lt;/Global&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scanned images also need to be normalized so the calibration is the same for all images. In order to achieve that, the fiducial marks coordinates need to be know both in film space (these values should be in the calibration report) and in image space.&lt;br /&gt;
[[Image:FiducialCoord.png|thumb|250px||alt=FiducialCoord|Fiducial Coordinates from USGS Report No. OSL/2782]]&lt;br /&gt;
&lt;br /&gt;
To report the film space coordinates to MicMac , you need to create an xml file called &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; in a sub folder called &amp;lt;i&amp;gt;Ori-InterneScan&amp;lt;/i&amp;gt;. MicMac requires the origin of the system to be the top left corner, so  the coordinates from the calibration files (that usually are centered in the center of the image, with the Y axis going upwards) need to be manipulated : Y axis inverted (Yinv=-Y) and then the coordinates translated (X'=X-Xmin and Y'=Yinv-Yinv_min). Be careful with calibration files that might use different names for the fiducial marks than the ones printed on the images, and also the orientation of the images that may be wrong.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; corresponding to USGS Report No. OSL/2782 --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;Change the values according to your camera.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;MesureAppuiFlottant1Im&amp;gt;&lt;br /&gt;
     &amp;lt;NameIm&amp;gt;Glob&amp;lt;/NameIm&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P1&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;1.0040  226.9950&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P2&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9920    0.9960&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P3&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;0.9960    1.0070&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P4&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9930  226.9950&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P5&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;0.9940  114.0040&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P6&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;226.9980  113.9940&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P7&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;114.0000    1.0060&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
     &amp;lt;OneMesureAF1I&amp;gt;&lt;br /&gt;
          &amp;lt;NamePt&amp;gt;P8&amp;lt;/NamePt&amp;gt;&lt;br /&gt;
          &amp;lt;PtIm&amp;gt;113.9950  227.0140&amp;lt;/PtIm&amp;gt;&lt;br /&gt;
     &amp;lt;/OneMesureAF1I&amp;gt;&lt;br /&gt;
&amp;lt;/MesureAppuiFlottant1Im&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to input the image coordinate of the fiducial marks, you should use the SaisieAppuisInitQT command on each image like this (&amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt; is a text file with a point name on each line, see example bellow. BE CAREFULL TO NAME THE POINTS THE SAME WAY IN THE &amp;lt;i&amp;gt;MeasuresCamera.xml&amp;lt;/i&amp;gt; and the &amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt;).&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;id_fiducial.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
P1&lt;br /&gt;
P2&lt;br /&gt;
P3&lt;br /&gt;
P4&lt;br /&gt;
P5&lt;br /&gt;
P6&lt;br /&gt;
P7&lt;br /&gt;
P8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisInitQT &amp;quot;image.tif&amp;quot; NONE id_fiducial.txt MeasuresIm-image.tif.xml &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The resulting &amp;lt;i&amp;gt;MeasuresIm-image.tif-S2D.xml&amp;lt;/i&amp;gt; file (created in the image folder) should be moved in the &amp;lt;i&amp;gt;Ori-InterneScan&amp;lt;/i&amp;gt; directory and renamed &amp;lt;i&amp;gt;MeasuresIm-image.tif.xml&amp;lt;/i&amp;gt; (note the removal of &amp;quot;-S2D&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
If you have images where the fiducial marks are easily recognizable (they look like targets, not just a dot), and if the images are already close to be aligned, you can use Kugelhupf to compute the position of the points starting with the second image (appearance and position of the points are dictated by the first image that you processed manually).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Kugelhupf .*tif Ori-InterneScan/MeasuresIm-image.tif.xml SearchIncertitude= ??&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then all the images can be re-sampled to fit in the same geometry and can therefore be processed like digital images. The user need to input the scan resolution (in the example line, 0.025 -&amp;gt; 0.025mm=25microns). This process is slow (ca. a minute per image), but is parallelised.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d ReSampFid &amp;quot;.*.tif&amp;quot; 0.025&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The user should then move the original images to a sub-folder, or state OIS.*.tif as the regular expression in futur steps.&lt;br /&gt;
&lt;br /&gt;
== Relative orientation ==&lt;br /&gt;
First, you need to find tie points between your images:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapioca MulScale &amp;quot;OIS.*tif&amp;quot; 1000 2500&amp;lt;/pre&amp;gt;&lt;br /&gt;
Be aware that you shouldn't use a very high resolution for finding tie points in scanned because of both the usually very large image files and the noise often present in scanned data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;If camera postions are (approximately) known&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
If you have the position of the camera for each image (set in a txt file similar to a GCP file), you can create a file with the reference of images potentially in contact (sometimes, the info is printed on the images). In that case, run this instead of the aforementioned Tapioca command:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d OriConvert OriTxtInFile GPS_sommets.txt Sommets NameCple=Couples.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapioca File Couples.xml 2000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To be able to ignore the fiducial marks and other inscriptions on the images that would yield nonsensical tie points, a mask need to be created.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieMasqQT &amp;quot;OIS-image.tif&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once created, the mask should be renamed &amp;lt;i&amp;gt;filtre.tif&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d HomolFilterMasq &amp;quot;OIS.*tif&amp;quot; GlobalMasq=filtre.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because historical images were typically taken with long focal lenses, only at a nadir point of view and with limited overlap, the calibration is not very stable. A good way to constrain it is by fixing the focal length at the value stated in the calibration report, hence the &amp;lt;i&amp;gt;LibFoc=0&amp;lt;/i&amp;gt; option in Tapas.&lt;br /&gt;
&lt;br /&gt;
In a case where a lot of images are processed, it can be better to setup the calibration on a limited set of images (block of 4-6 images where plenty of tie points are identified (no water of soft snow for instance).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS-image(1|2|3|4).tif&amp;quot; Out=CalibInit SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then run the whole set with the calibration as input:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS.*tif&amp;quot; InCal=CalibInit Out=Relative SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;If you only have a limited amount of image (&amp;lt;10?) &amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
For less images, one can simply run :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tapas RadialBasic &amp;quot;OIS.*tif&amp;quot; Out=Relative SH=HomolMasqFiltered LibFoc=0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To visualize the relative orientation, creating the [[AperiCloud]] is the key. You may be able to identify problems this way that the residuals of the orientation were not necessarily showing (mostly the division in two or more weakly linked groups instead of a singly one).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;OIS.*tif&amp;quot; Relative SH=HomolMasqFiltered&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;meshlab AperiCloud_Relative.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Absolute orientation ==&lt;br /&gt;
&lt;br /&gt;
The first step here is to create a file with your GCPs for MicMac. MicMac expect a specific xml format, but a command also exists to convert simple texte files into the appropriate xml. You have to create a file in the following fashion :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;GCPs.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#F= N X Y Z&lt;br /&gt;
#Here the coordinates are in UTM 33N X=Easting Y=Northing Z=Altitude&lt;br /&gt;
GCP1 423950 8768700 1.413939&lt;br /&gt;
GCP2 421730 8768400 3.502413&lt;br /&gt;
GCP3 423030 8766680 26.171211&lt;br /&gt;
GCP4 422150 8765210 10.431505&lt;br /&gt;
GCP5 423610 8764120 34.835030&lt;br /&gt;
GCP6 423770 8763350 26.425682&lt;br /&gt;
GCP7 425080 8763420 524.369446&lt;br /&gt;
GCP8 425670 8761310 392.590851&lt;br /&gt;
GCP9 427900 8760000 621.036926&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The points can be given in any type of coordinates and be transposed, but MicMac requires a somehow euclidean system to work with (not Lat Long, but Easting Northing).&lt;br /&gt;
To convert the poinst in MicMac xml format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert AppInFile GCPs.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Using MicMac to convert to your system of choice --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you give your GCPs in Lat Long format, you have to:&lt;br /&gt;
*In GCPs.txt, put #F=N Y X Z (because Latitude is the Y axis)&lt;br /&gt;
*Create a file describing the output coordinate system (see MySystem.xml bellow)&lt;br /&gt;
*Run a slightly different GCPConvert command (see bellow)&lt;br /&gt;
&lt;br /&gt;
This example of MySystem.xml is for UTM 32N.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;SystemeCoord&amp;gt;&lt;br /&gt;
         &amp;lt;BSC&amp;gt;&lt;br /&gt;
            &amp;lt;TypeCoord&amp;gt;  eTC_Proj4 &amp;lt;/TypeCoord&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxR&amp;gt;       1        &amp;lt;/AuxR&amp;gt;&lt;br /&gt;
            &amp;lt;AuxStr&amp;gt;  +proj=utm +zone=32 +north +ellps=WGS84 +datum=WGS84 +units=m +no_defs   &amp;lt;/AuxStr&amp;gt; &amp;lt;!-- Input here your coordinate system in the &amp;quot;proj4&amp;quot; format --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;/BSC&amp;gt;&lt;br /&gt;
&amp;lt;/SystemeCoord&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPConvert AppInFile GCPs.txt ChgSys=DegreeWGS84@MySystem.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also use &amp;quot;ChgSys=MySystem1.xml@MySystem2.xml&amp;quot; if your input is in a different specified system.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then move on to inputing your GCPs in your images.&lt;br /&gt;
First, input a few ground control points (GCPs) on a few images (here, on 3 images only), to give a first approximation of the geo-referencing. You can provide the name of your GCPs in a texte file here called id_GCPs.txt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;Example of &amp;lt;i&amp;gt;id_GCPs.txt&amp;lt;/i&amp;gt; --&amp;gt;Click Expand to reveal--&amp;gt;&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GCP1&lt;br /&gt;
GCP2&lt;br /&gt;
GCP3&lt;br /&gt;
GCP4&lt;br /&gt;
GCP5&lt;br /&gt;
GCP6&lt;br /&gt;
GCP7&lt;br /&gt;
GCP8&lt;br /&gt;
GCP9&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisInitQT &amp;quot;OIS-image1.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&lt;br /&gt;
mm3d SaisieAppuisInitQT &amp;quot;OIS-image2.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&lt;br /&gt;
mm3d SaisieAppuisInitQT &amp;quot;OIS-image3.tif&amp;quot; Relative id_GCPs.txt MeasuresInit.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use these points to get into the cartographic coordinate of the GCPs.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;OIS-.*tif&amp;quot; Relative TerrainInit GCPs.xml MeasuresInit-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then input all the GCPs on all the images (or at least quite a few), using pre-pointed approximate GCPs:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisPredicQT &amp;quot;OIS-imageN.tif&amp;quot; TerrainInit GCPs.xml MeasuresFinales.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, use these points (now more numerous) to get into the cartographic coordinate of the GCPs.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;OIS-.*tif&amp;quot; TerrainInit TerrainBrut GCPs.xml  MeasuresFinales-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Perform a bundle adjustment and a refinement of the camera calibration using the GCPs. The numerical values in the GCP option are the estimate of the quality of your GCPs (the first in meters in the world coordinate and the second in pixels in your input).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari &amp;quot;OIS-.*tif&amp;quot; TerrainBrut TerrainFinal GCP=[GCPs.xml,5,MeasuresFinales-S2D.xml,2] SH=HomolMasqFiltered AllFree=1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Visualize if wanted:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;OIS-.*tif&amp;quot; TerrainFinal SH=HomolMasqFiltered&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;meshlab AperiCloud_TerrainFinal.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DEM processing and orthorectification==&lt;br /&gt;
&lt;br /&gt;
Create a pseudo orthoimage (with a &amp;quot;flat&amp;quot; terrain as target) to be able to draw a mask on the approximate area of interest.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tarama &amp;quot;OIS-.*tif&amp;quot; TerrainFinal&lt;br /&gt;
mm3d SaisieMasqQT TA/TA_LeChantier.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compute the DEM (DEM is the file called ''MEC-Malt/Z_Num7_DeZoom2_STD-MALT.tif'' , or similar).&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Malt Ortho &amp;quot;OIS-.*tif&amp;quot; TerrainFinal MasqImGlob=filtre.tif NbVI=2 ZoomF=2 ResolTerrain=0.5 DefCor=0 CostTrans=4&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the DEM is generated, other products can be generated :&lt;br /&gt;
&lt;br /&gt;
*A hillshade:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GrShade  Z_Num8_DeZoom2_STD-MALT.tif ModeOmbre=IgnE Out=Hillshade.tif Mask=MEC-Malt/AutoMask_STD-MALT_Num_7.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An image representation of the DEM:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d to8Bits MEC-Malt/Z_Num8_DeZoom2_STD-MALT.tif Out=hypso.tif Coul=1 Dyn=3 Mask=MEC-Malt/AutoMask_STD-MALT_Num_7.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An Orthoimage:&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tawny Ortho-MEC-Malt Out=Orthophotomosaic.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*A point cloud (drapped with the ortho image):&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Nuage2Ply MEC-Malt/NuageImProf_STD-MALT_Etape_7.xml Attr=Ortho-MEC-Malt/Orthophotomosaic.tif Out=PointCloud.ply&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=2640</id>
		<title>Luc Girod</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=2640"/>
				<updated>2018-08-02T12:57:45Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Luc_Girod.jpg|thumb| Luc Girod, 2016]]&lt;br /&gt;
Luc Girod is a former student at [[ENSG]] and former research engineer at LGA/ENSG. He is currently a Researcher at the university of Oslo, working on the applications of phototogrammetry in the field of glaciology and periglacial processes. He was granted the degree of PhD by the University of Oslo on February 27 2018.&lt;br /&gt;
&lt;br /&gt;
His contributions to MicMac include:&lt;br /&gt;
*[[Apero2PMVS]]&lt;br /&gt;
*[[Vodka]]&lt;br /&gt;
*[[Arsenic]]&lt;br /&gt;
*[[Drunk]]&lt;br /&gt;
*Numerous elements of the [[SateLib]] sub-librairy, including the ASTER related commands.&lt;br /&gt;
*Smaller local edits and improvements across the years.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See publications : https://scholar.google.no/citations?user=4hS3WZIAAAAJ&lt;br /&gt;
&lt;br /&gt;
Contact : luc.girod@geo.uio.no&lt;br /&gt;
&lt;br /&gt;
Also known as Nils Tillander on the internet:&lt;br /&gt;
* YouTube : https://www.youtube.com/user/nilstillander&lt;br /&gt;
* Twitter : @NilsTillander https://twitter.com/nilstillander&lt;br /&gt;
* Instagram : https://www.instagram.com/nils_tillander/&lt;br /&gt;
* SoundCloud : https://soundcloud.com/nilstillander&lt;br /&gt;
&lt;br /&gt;
--------------------------------------&lt;br /&gt;
Back to [[Contributors]]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Unwrap_Vault&amp;diff=2639</id>
		<title>Unwrap Vault</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Unwrap_Vault&amp;diff=2639"/>
				<updated>2018-08-02T12:48:24Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px|link=Tutorials]] [[Tutorials|Tutorials index]]&lt;br /&gt;
==Description==&lt;br /&gt;
The post by user mathias.f on the MicMac forum will be translated into forum format soon : [http://forum-micmac.forumprod.com/vault-or-dome-develop-developpe-d-une-vo-te-ou-d-un-dome-t1597.html Forum topic]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Unwrap_Vault&amp;diff=2638</id>
		<title>Unwrap Vault</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Unwrap_Vault&amp;diff=2638"/>
				<updated>2018-08-02T12:47:56Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The post by user mathias.f on the MicMac forum will be translated into forum format soon : [http://forum-micmac.forumprod.com/vault-or-dome-develop-developpe-d-une-vo-te-ou-d-un-dome-t1597.html Forum topic]&lt;br /&gt;
&lt;br /&gt;
[[Tutorials|Back to tutorials]]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Unwrap_Vault&amp;diff=2637</id>
		<title>Unwrap Vault</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Unwrap_Vault&amp;diff=2637"/>
				<updated>2018-08-02T12:47:18Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The post by user mathias.f on the MicMac forum will be translated into forum format soon : [http://forum-micmac.forumprod.com/vault-or-dome-develop-developpe-d-une-vo-te-ou-d-un-dome-t1597.html Forum topic]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Unwrap_Vault&amp;diff=2636</id>
		<title>Unwrap Vault</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Unwrap_Vault&amp;diff=2636"/>
				<updated>2018-08-02T12:46:37Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : Page créée avec « The post by user mathias.f on the MicMac forum will be translated into forum format soon : [http://forum-micmac.forumprod.com/vault-or-dome-develop-developpe-d-une-vo-te-o... »&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The post by user mathias.f on the MicMac forum will be translated into forum format soon : [http://forum-micmac.forumprod.com/vault-or-dome-develop-developpe-d-une-vo-te-ou-d-un-dome-t1597.html]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Tutorials&amp;diff=2635</id>
		<title>Tutorials</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Tutorials&amp;diff=2635"/>
				<updated>2018-08-02T12:45:10Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To start with MicMac, here are some tutorials, illustrating the basic process. &lt;br /&gt;
*[[Gravillons_tutorial|01 Gravillons (Base tutorial with 4 images)]]&lt;br /&gt;
*[[Fontaine tutorial|02 Fontaine]]&lt;br /&gt;
*[[Pierrerue tutorial|03 Pierrerue]]&lt;br /&gt;
*[[Zhenjue_tutorial|04 Zhenjue]]&lt;br /&gt;
*[[GrandLeez|05 GrandLeez (Fixed wing drone with embedded GNSS)]]&lt;br /&gt;
*[[Historical_Orthoimage|06 Historical Orthoimage (Scanned photogrammetric films)]]&lt;br /&gt;
*[[Processing data from video files|07 Processing data from video files]]&lt;br /&gt;
*[[MMASTER|08 How to compute a MMASTER DEM from ASTER L1A data]]&lt;br /&gt;
*[[Unwrap Vault|09 How to unwrap a texture]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*[[Camera Calibration|10 How to calibrate your camera (will be added soon)]]&lt;br /&gt;
&lt;br /&gt;
You can find some commented workflows in bash form (.sh, for UNIX systems) here : [https://github.com/luc-girod/MicMacWorkflowsByLucGirod MicMacWorkflowsByLucGirod]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=2607</id>
		<title>Luc Girod</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Luc_Girod&amp;diff=2607"/>
				<updated>2018-06-26T08:55:54Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Luc_Girod.jpg|thumb| Luc Girod, 2016]]&lt;br /&gt;
Luc Girod is a former student at [[ENSG]] and former research engineer at LGA/ENSG. He is currently a Researcher at the university of Oslo, working on the applications of phototogrammetry in the field of glaciology and periglacial processes.&lt;br /&gt;
&lt;br /&gt;
His contributions to MicMac include:&lt;br /&gt;
*[[Apero2PMVS]]&lt;br /&gt;
*[[Vodka]]&lt;br /&gt;
*[[Arsenic]]&lt;br /&gt;
*[[Drunk]]&lt;br /&gt;
*Numerous elements of the [[SateLib]] sub-librairy, including the ASTER related commands.&lt;br /&gt;
*Smaller local edits and improvements across the years.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See publications : https://scholar.google.no/citations?user=4hS3WZIAAAAJ&lt;br /&gt;
&lt;br /&gt;
Contact : luc.girod@geo.uio.no&lt;br /&gt;
&lt;br /&gt;
Also known as Nils Tillander on the internet:&lt;br /&gt;
* YouTube : https://www.youtube.com/user/nilstillander&lt;br /&gt;
* Twitter : @NilsTillander https://twitter.com/nilstillander&lt;br /&gt;
* Instagram : https://www.instagram.com/nils_tillander/&lt;br /&gt;
* SoundCloud : https://soundcloud.com/nilstillander&lt;br /&gt;
&lt;br /&gt;
--------------------------------------&lt;br /&gt;
Back to [[Contributors]]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Tutorials&amp;diff=2586</id>
		<title>Tutorials</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Tutorials&amp;diff=2586"/>
				<updated>2018-05-30T07:33:31Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To start with MicMac, here are some tutorials, illustrating the basic process. &lt;br /&gt;
*[[Gravillons_tutorial|01 Gravillons (Base tutorial with 4 images)]]&lt;br /&gt;
*[[Fontaine tutorial|02 Fontaine]]&lt;br /&gt;
*[[Pierrerue tutorial|03 Pierrerue]]&lt;br /&gt;
*[[Zhenjue_tutorial|04 Zhenjue]]&lt;br /&gt;
*[[GrandLeez|05 GrandLeez (Fixed wing drone with embedded GNSS)]]&lt;br /&gt;
*[[Historical_Orthoimage|06 Historical Orthoimage (Scanned photogrammetric films)]]&lt;br /&gt;
*[[Processing data from video files|07 Processing data from video files]]&lt;br /&gt;
*[[MMASTER|08 How to compute a MMASTER DEM from ASTER L1A data]]&lt;br /&gt;
&lt;br /&gt;
*[[Camera Calibration|09 How to calibrate your camera (will be added soon)]]&lt;br /&gt;
&lt;br /&gt;
You can find some commented workflows in bash form (.sh, for UNIX systems) here : [https://github.com/luc-girod/MicMacWorkflowsByLucGirod MicMacWorkflowsByLucGirod]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Accueil&amp;diff=2560</id>
		<title>Accueil</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Accueil&amp;diff=2560"/>
				<updated>2018-02-19T16:00:56Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
'''This wiki is under construction : Thank you for your understanding !'''&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=5 cellpadding=5 border=0 width=100%&lt;br /&gt;
|- style=&amp;quot;background:#cee18e; color:black; font-size:18px; -moz-border-radius:8px;&amp;quot;&lt;br /&gt;
! width=&amp;quot;75%&amp;quot; colspan=&amp;quot;2&amp;quot; | Welcome on the Wiki dedicated to MicMac !&lt;br /&gt;
|-&lt;br /&gt;
|valign=middle|&lt;br /&gt;
&lt;br /&gt;
Here you will find various informations related to Micmac, the photogrammetry software developped at the [http://www.ign.fr/ IGN] (French National Geographic Institute) and [http://www.ensg.eu/ ENSG] (French national school for geographic sciences). This wiki is maintained by the department of Aerial and Spatial Imagery (DIAS) of [http://www.ensg.eu/ ENSG] school.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeIntro.png|50px|link=Presentation]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td style=&amp;quot;width:50%&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Presentation|&amp;lt;b&amp;gt;What is MicMac ?&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;Presentation of MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeTuto.png|50px|link=Tutorials]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Tutorials|&amp;lt;b&amp;gt;Tutorials&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;Some exercices to learn how to use MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeInstall.png|50px|link=Install]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Install|&amp;lt;b&amp;gt;Installation&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;How to install MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeTools.png|50px|link=MicMac tools]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[MicMac tools|&amp;lt;b&amp;gt;Tools&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;List of MicMac commands&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeForum.png|50px|link=Forum]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td style=&amp;quot;width:50%&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Forum|&amp;lt;b&amp;gt;Community&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;Link to other ressources for the MicMac community&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeBiblio.png|50px|link=Bibliography]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Bibliography|&amp;lt;b&amp;gt;Bibliography&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;Scientific papers presenting/using MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeContributor.png|50px|link=Contributors]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td style=&amp;quot;width:50%&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Contributors|&amp;lt;b&amp;gt;Contributors&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;People who work on MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
                &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|halign=mid|[[Image:Micmac_gif2.gif]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Autre couleur de background #00CCFF --&amp;gt;&lt;br /&gt;
{| cellspacing=5 cellpadding=5 border=0 width=100% &lt;br /&gt;
|- style=&amp;quot;background:#cee18e; color:black; font-size:16px; -moz-border-radius:8px;&amp;quot;&lt;br /&gt;
! width=&amp;quot;66%&amp;quot; | About the wiki !! External links&lt;br /&gt;
|-&lt;br /&gt;
|valign=top|&lt;br /&gt;
=====New MicMac Wiki=====&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
* If you never used MediaWiki, you can find more information about it here : [https://meta.wikimedia.org/wiki/Help:Contents User Guide] + [https://www.mediawiki.org/wiki/Manual:FAQ FAQ MediaWiki]&lt;br /&gt;
* Here you can find [[Special:Allpages | every pages already online ]]&lt;br /&gt;
* If you have already an account, you can create your own personal profile [[ Special:Listusers | (Access with your UserId)]], once you are [[Special:Userlogin | logged]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====How to participate=====&lt;br /&gt;
If you want to take part of the building of this wiki, you are really welcome. But to keep this documentation structured and coherent, we use a special formalism :&lt;br /&gt;
* [[MicMacWiki_develop | How to collaborate in MicMac wiki ]].&lt;br /&gt;
| &lt;br /&gt;
{{External links}}&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Forum&amp;diff=2559</id>
		<title>Forum</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Forum&amp;diff=2559"/>
				<updated>2018-02-19T16:00:16Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The MicMac forum is a user to user help forum. It can be found here : [http://forum-micmac.forumprod.com/ http://forum-micmac.forumprod.com/]&lt;br /&gt;
&lt;br /&gt;
MicMac is now also on Reddit : [https://www.reddit.com/r/MicMac/ /r/MicMac/]&lt;br /&gt;
&lt;br /&gt;
The MicMac Sketchfab is available here : [https://sketchfab.com/micmac https://sketchfab.com/micmac] If you want to participate and add your 3D model generated with MicMac, please send it to mehdi.daakir(at)ensg.eu (size limit is 50MB)&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Accueil&amp;diff=2558</id>
		<title>Accueil</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Accueil&amp;diff=2558"/>
				<updated>2018-02-19T15:59:26Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
'''This wiki is under construction : Thank you for your understanding !'''&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=5 cellpadding=5 border=0 width=100%&lt;br /&gt;
|- style=&amp;quot;background:#cee18e; color:black; font-size:18px; -moz-border-radius:8px;&amp;quot;&lt;br /&gt;
! width=&amp;quot;75%&amp;quot; colspan=&amp;quot;2&amp;quot; | Welcome on the Wiki dedicated to MicMac !&lt;br /&gt;
|-&lt;br /&gt;
|valign=middle|&lt;br /&gt;
&lt;br /&gt;
Here you will find various informations related to Micmac, the photogrammetry software developped at the [http://www.ign.fr/ IGN] (French National Geographic Institute) and [http://www.ensg.eu/ ENSG] (French national school for geographic sciences). This wiki is maintained by the department of Aerial and Spatial Imagery (DIAS) of [http://www.ensg.eu/ ENSG] school.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeIntro.png|50px|link=Presentation]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td style=&amp;quot;width:50%&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Presentation|&amp;lt;b&amp;gt;What is MicMac ?&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;Presentation of MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeTuto.png|50px|link=Tutorials]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Tutorials|&amp;lt;b&amp;gt;Tutorials&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;Some exercices to learn how to use MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeInstall.png|50px|link=Install]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Install|&amp;lt;b&amp;gt;Installation&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;How to install MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeTools.png|50px|link=MicMac tools]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[MicMac tools|&amp;lt;b&amp;gt;Tools&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;List of MicMac commands&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeForum.png|50px|link=Forum]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td style=&amp;quot;width:50%&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Forum|&amp;lt;b&amp;gt;Community&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;The Forum dedicated to MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeBiblio.png|50px|link=Bibliography]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Bibliography|&amp;lt;b&amp;gt;Bibliography&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;Scientific papers presenting/using MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeContributor.png|50px|link=Contributors]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td style=&amp;quot;width:50%&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Contributors|&amp;lt;b&amp;gt;Contributors&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;People who work on MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
                &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|halign=mid|[[Image:Micmac_gif2.gif]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Autre couleur de background #00CCFF --&amp;gt;&lt;br /&gt;
{| cellspacing=5 cellpadding=5 border=0 width=100% &lt;br /&gt;
|- style=&amp;quot;background:#cee18e; color:black; font-size:16px; -moz-border-radius:8px;&amp;quot;&lt;br /&gt;
! width=&amp;quot;66%&amp;quot; | About the wiki !! External links&lt;br /&gt;
|-&lt;br /&gt;
|valign=top|&lt;br /&gt;
=====New MicMac Wiki=====&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
* If you never used MediaWiki, you can find more information about it here : [https://meta.wikimedia.org/wiki/Help:Contents User Guide] + [https://www.mediawiki.org/wiki/Manual:FAQ FAQ MediaWiki]&lt;br /&gt;
* Here you can find [[Special:Allpages | every pages already online ]]&lt;br /&gt;
* If you have already an account, you can create your own personal profile [[ Special:Listusers | (Access with your UserId)]], once you are [[Special:Userlogin | logged]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====How to participate=====&lt;br /&gt;
If you want to take part of the building of this wiki, you are really welcome. But to keep this documentation structured and coherent, we use a special formalism :&lt;br /&gt;
* [[MicMacWiki_develop | How to collaborate in MicMac wiki ]].&lt;br /&gt;
| &lt;br /&gt;
{{External links}}&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Accueil&amp;diff=2557</id>
		<title>Accueil</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Accueil&amp;diff=2557"/>
				<updated>2018-02-19T15:59:02Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
'''This wiki is under construction : Thank you for your understanding !'''&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=5 cellpadding=5 border=0 width=100%&lt;br /&gt;
|- style=&amp;quot;background:#cee18e; color:black; font-size:18px; -moz-border-radius:8px;&amp;quot;&lt;br /&gt;
! width=&amp;quot;75%&amp;quot; colspan=&amp;quot;2&amp;quot; | Welcome on the Wiki dedicated to MicMac !&lt;br /&gt;
|-&lt;br /&gt;
|valign=middle|&lt;br /&gt;
&lt;br /&gt;
Here you will find various informations related to Micmac, the photogrammetry software developped at the [http://www.ign.fr/ IGN] (French National Geographic Institute) and [http://www.ensg.eu/ ENSG] (French national school for geographic sciences). This wiki is maintained by the department of Aerial and Spatial Imagery (DIAS) of [http://www.ensg.eu/ ENSG] school.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeIntro.png|50px|link=Presentation]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td style=&amp;quot;width:50%&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Presentation|&amp;lt;b&amp;gt;What is MicMac ?&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;Presentation of MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeTuto.png|50px|link=Tutorials]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Tutorials|&amp;lt;b&amp;gt;Tutorials&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;Some exercices to learn how to use MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeInstall.png|50px|link=Install]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Install|&amp;lt;b&amp;gt;Installation&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;How to install MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeTools.png|50px|link=MicMac tools]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[MicMac tools|&amp;lt;b&amp;gt;Tools&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;List of MicMac commands&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeForum.png|50px|link=Community]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td style=&amp;quot;width:50%&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Forum|&amp;lt;b&amp;gt;Forum&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;The Forum dedicated to MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeBiblio.png|50px|link=Bibliography]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Bibliography|&amp;lt;b&amp;gt;Bibliography&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;Scientific papers presenting/using MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;[[Image:IconeContributor.png|50px|link=Contributors]]&amp;lt;/td&amp;gt;&lt;br /&gt;
		&amp;lt;td style=&amp;quot;width:50%&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;div style=&amp;quot;padding:5px&amp;quot;&amp;gt;&lt;br /&gt;
				[[Contributors|&amp;lt;b&amp;gt;Contributors&amp;lt;/b&amp;gt;]]&amp;lt;br&amp;gt;&lt;br /&gt;
				&amp;lt;p style=&amp;quot;font-size:8pt&amp;quot;&amp;gt;People who work on MicMac&amp;lt;/p&amp;gt;&lt;br /&gt;
			&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;/td&amp;gt;&lt;br /&gt;
                &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|halign=mid|[[Image:Micmac_gif2.gif]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Autre couleur de background #00CCFF --&amp;gt;&lt;br /&gt;
{| cellspacing=5 cellpadding=5 border=0 width=100% &lt;br /&gt;
|- style=&amp;quot;background:#cee18e; color:black; font-size:16px; -moz-border-radius:8px;&amp;quot;&lt;br /&gt;
! width=&amp;quot;66%&amp;quot; | About the wiki !! External links&lt;br /&gt;
|-&lt;br /&gt;
|valign=top|&lt;br /&gt;
=====New MicMac Wiki=====&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
* If you never used MediaWiki, you can find more information about it here : [https://meta.wikimedia.org/wiki/Help:Contents User Guide] + [https://www.mediawiki.org/wiki/Manual:FAQ FAQ MediaWiki]&lt;br /&gt;
* Here you can find [[Special:Allpages | every pages already online ]]&lt;br /&gt;
* If you have already an account, you can create your own personal profile [[ Special:Listusers | (Access with your UserId)]], once you are [[Special:Userlogin | logged]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====How to participate=====&lt;br /&gt;
If you want to take part of the building of this wiki, you are really welcome. But to keep this documentation structured and coherent, we use a special formalism :&lt;br /&gt;
* [[MicMacWiki_develop | How to collaborate in MicMac wiki ]].&lt;br /&gt;
| &lt;br /&gt;
{{External links}}&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Tutorials&amp;diff=2556</id>
		<title>Tutorials</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Tutorials&amp;diff=2556"/>
				<updated>2018-02-15T15:39:05Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To start with MicMac, here are some tutorials, illustrating the basic process. &lt;br /&gt;
*[[Gravillons_tutorial|01 Gravillons (Base tutorial with 4 images)]]&lt;br /&gt;
*[[Fontaine tutorial|02 Fontaine]]&lt;br /&gt;
*[[Pierrerue tutorial|03 Pierrerue]]&lt;br /&gt;
*[[Zhenjue_tutorial|04 Zhenjue]]&lt;br /&gt;
*[[GrandLeez|05 GrandLeez (Fixed wing drone with embedded GNSS)]]&lt;br /&gt;
*[[Historical_Orthoimage|06 Historical Orthoimage (Scanned photogrammetric films)]]&lt;br /&gt;
*[[Camera Calibration|07 How to calibrate your camera (will be added soon)]]&lt;br /&gt;
*[[MMASTER|08 How to compute a MMASTER DEM from ASTER L1A data]]&lt;br /&gt;
&lt;br /&gt;
You can find some commented workflows in bash form (.sh, for UNIX systems) here : [https://github.com/luc-girod/MicMacWorkflowsByLucGirod MicMacWorkflowsByLucGirod]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Tutorials&amp;diff=2555</id>
		<title>Tutorials</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Tutorials&amp;diff=2555"/>
				<updated>2018-02-15T15:38:48Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To start with MicMac, here are some tutorials, illustrating the basic process. &lt;br /&gt;
*[[Gravillons_tutorial|01 Gravillons (Base tutorial with 4 images)]]&lt;br /&gt;
*[[Fontaine tutorial|02 Fontaine]]&lt;br /&gt;
*[[Pierrerue tutorial|03 Pierrerue]]&lt;br /&gt;
*[[Zhenjue_tutorial|04 Zhenjue]]&lt;br /&gt;
*[[GrandLeez|05 GrandLeez (Fixed wing drone with embedded GNSS)]]&lt;br /&gt;
*[[Historical_Orthoimage|06 Historical Orthoimage (Scanned photogrammetric films)]]&lt;br /&gt;
*[[Camera Calibration|07 How to calibrate your camera (will be added soon)]]&lt;br /&gt;
*[[MMASTER|08 How to compute a MMASTER DEM from ASTER L1A data]]&lt;br /&gt;
&lt;br /&gt;
You can find some commented workflows in bash form (.sh, for UNIX systems) here : [https://github.com/luc-girod/MicMacWorkflowsByLucGirod]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Campari&amp;diff=2548</id>
		<title>Campari</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Campari&amp;diff=2548"/>
				<updated>2017-12-07T16:14:01Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Understanding the output */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px]] [[Command|List of commands]]&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
Campari is a tool for compensation of heterogeneous measures (tie points and ground control points). &lt;br /&gt;
&lt;br /&gt;
===Syntax===&lt;br /&gt;
The global syntax for Campari is :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari FullDirectory InputOrientation OutputOrientation NamedArgs&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Help=== &lt;br /&gt;
You can access to the help by typing :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari -help&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mandatory unnamed args :&lt;br /&gt;
* string :: {Full Directory (Dir+Pattern)}&lt;br /&gt;
* string :: {Input Orientation}&lt;br /&gt;
* string :: {Output Orientation}&lt;br /&gt;
&lt;br /&gt;
Named args :&lt;br /&gt;
*[Name=GCP] vector :: {[GrMes.xml,GrUncertainty,ImMes.xml,ImUnc]}&lt;br /&gt;
*[Name=EmGPS] vector :: {Embedded GPS [Gps-Dir,GpsUnc, ?GpsAlti?], GpsAlti if != Plani}&lt;br /&gt;
*[Name=GpsLa] Pt3dr :: {Gps Lever Arm, in combination with EmGPS}&lt;br /&gt;
*[Name=SigmaTieP] REAL :: {Sigma use for TieP weighting (Def=1)}&lt;br /&gt;
*[Name=FactElimTieP] REAL :: {Fact elimination of tie point (prop to SigmaTieP, Def=5)}&lt;br /&gt;
*[Name=CPI1] bool :: {Calib Per Im, Firt time}&lt;br /&gt;
*[Name=CPI2] bool :: {Calib Per Im, After first time, reUsing Calib Per Im As input}&lt;br /&gt;
*[Name=FocFree] bool :: {Foc Free (Def=false)}&lt;br /&gt;
*[Name=PPFree] bool :: {Principal Point Free (Def=false)}&lt;br /&gt;
*[Name=AffineFree] bool :: {Affine Parameter (Def=false)}&lt;br /&gt;
*[Name=AllFree] bool :: {Affine Parameter (Def=false)}&lt;br /&gt;
*[Name=DetGCP] bool :: {Detail on GCP (Def=false)}&lt;br /&gt;
*[Name=Visc] REAL :: {Viscosity in Levenberg-Marquardt like resolution (Def=1.0)}&lt;br /&gt;
*[Name=ExpTxt] bool :: {Export in text format (Def=false)}&lt;br /&gt;
*[Name=ImMinMax] vector :: {Im max and min to avoid tricky pat}&lt;br /&gt;
*[Name=DegAdd] INT :: {When specified, degree of additional parameter}&lt;br /&gt;
*[Name=DegFree] INT :: {When specified degree of freedom of parameters generics}&lt;br /&gt;
*[Name=DRMax] INT :: {When specified degree of freedom of radial parameters}&lt;br /&gt;
*[Name=PoseFigee] bool :: {Does the external orientation of the cameras are frozen or free (Def=false, i.e. camera poses are free)}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, the bundle adjustment computed by Campari only affects camera orientation. Changing the value of '''FocFree''' and/or '''PPFree''' and/or '''AffineFree''', or '''AllFree''' to '''1''' permits to refine also camera calibration.&lt;br /&gt;
&lt;br /&gt;
=== Understanding the output ===&lt;br /&gt;
&lt;br /&gt;
The following image explains what each values in the output means : &lt;br /&gt;
[http://folk.uio.no/lucg/data_transfert/MicMac/CampariFig.jpg Image]&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
====Using GCP file==== &lt;br /&gt;
For example, in the Mur Saint Martin dataset, you can launch :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari &amp;quot;.*JPG&amp;quot; MEP-Basc2 MEP-Terrain GCP=[MurSaintMartin.xml,0.02,MesureBasc.xml,0.5]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====With embedded GPS data, with refinement of camera calibration====&lt;br /&gt;
In the &amp;quot;Grand-Leez&amp;quot; dataset, adding GPS information in the bundle adjustment has a positive impact on the refinement of the camera orientation, in particular on the camera calibration.&lt;br /&gt;
&amp;lt;pre&amp;gt;Campari &amp;quot;R.*.JPG&amp;quot; BL72 BL72-Campari EmGPS=[GPS-BL72,2] FocFree=1 PPFree=1&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Campari&amp;diff=2547</id>
		<title>Campari</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Campari&amp;diff=2547"/>
				<updated>2017-12-07T16:10:45Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px]] [[Command|List of commands]]&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
Campari is a tool for compensation of heterogeneous measures (tie points and ground control points). &lt;br /&gt;
&lt;br /&gt;
===Syntax===&lt;br /&gt;
The global syntax for Campari is :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari FullDirectory InputOrientation OutputOrientation NamedArgs&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Help=== &lt;br /&gt;
You can access to the help by typing :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari -help&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mandatory unnamed args :&lt;br /&gt;
* string :: {Full Directory (Dir+Pattern)}&lt;br /&gt;
* string :: {Input Orientation}&lt;br /&gt;
* string :: {Output Orientation}&lt;br /&gt;
&lt;br /&gt;
Named args :&lt;br /&gt;
*[Name=GCP] vector :: {[GrMes.xml,GrUncertainty,ImMes.xml,ImUnc]}&lt;br /&gt;
*[Name=EmGPS] vector :: {Embedded GPS [Gps-Dir,GpsUnc, ?GpsAlti?], GpsAlti if != Plani}&lt;br /&gt;
*[Name=GpsLa] Pt3dr :: {Gps Lever Arm, in combination with EmGPS}&lt;br /&gt;
*[Name=SigmaTieP] REAL :: {Sigma use for TieP weighting (Def=1)}&lt;br /&gt;
*[Name=FactElimTieP] REAL :: {Fact elimination of tie point (prop to SigmaTieP, Def=5)}&lt;br /&gt;
*[Name=CPI1] bool :: {Calib Per Im, Firt time}&lt;br /&gt;
*[Name=CPI2] bool :: {Calib Per Im, After first time, reUsing Calib Per Im As input}&lt;br /&gt;
*[Name=FocFree] bool :: {Foc Free (Def=false)}&lt;br /&gt;
*[Name=PPFree] bool :: {Principal Point Free (Def=false)}&lt;br /&gt;
*[Name=AffineFree] bool :: {Affine Parameter (Def=false)}&lt;br /&gt;
*[Name=AllFree] bool :: {Affine Parameter (Def=false)}&lt;br /&gt;
*[Name=DetGCP] bool :: {Detail on GCP (Def=false)}&lt;br /&gt;
*[Name=Visc] REAL :: {Viscosity in Levenberg-Marquardt like resolution (Def=1.0)}&lt;br /&gt;
*[Name=ExpTxt] bool :: {Export in text format (Def=false)}&lt;br /&gt;
*[Name=ImMinMax] vector :: {Im max and min to avoid tricky pat}&lt;br /&gt;
*[Name=DegAdd] INT :: {When specified, degree of additional parameter}&lt;br /&gt;
*[Name=DegFree] INT :: {When specified degree of freedom of parameters generics}&lt;br /&gt;
*[Name=DRMax] INT :: {When specified degree of freedom of radial parameters}&lt;br /&gt;
*[Name=PoseFigee] bool :: {Does the external orientation of the cameras are frozen or free (Def=false, i.e. camera poses are free)}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, the bundle adjustment computed by Campari only affects camera orientation. Changing the value of '''FocFree''' and/or '''PPFree''' and/or '''AffineFree''', or '''AllFree''' to '''1''' permits to refine also camera calibration.&lt;br /&gt;
&lt;br /&gt;
=== Understanding the output ===&lt;br /&gt;
&lt;br /&gt;
The following image explains what each values in the output means : &lt;br /&gt;
[http://i64.tinypic.com/zogvmq.jpg Image]&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
====Using GCP file==== &lt;br /&gt;
For example, in the Mur Saint Martin dataset, you can launch :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari &amp;quot;.*JPG&amp;quot; MEP-Basc2 MEP-Terrain GCP=[MurSaintMartin.xml,0.02,MesureBasc.xml,0.5]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====With embedded GPS data, with refinement of camera calibration====&lt;br /&gt;
In the &amp;quot;Grand-Leez&amp;quot; dataset, adding GPS information in the bundle adjustment has a positive impact on the refinement of the camera orientation, in particular on the camera calibration.&lt;br /&gt;
&amp;lt;pre&amp;gt;Campari &amp;quot;R.*.JPG&amp;quot; BL72 BL72-Campari EmGPS=[GPS-BL72,2] FocFree=1 PPFree=1&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2546</id>
		<title>MMASTER</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2546"/>
				<updated>2017-11-17T11:11:15Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* processing the scene */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This tutorial is there to give the workflow necessary to compute MMASTER DEMs from ASTER L1A data. The method is described in details in the following paper : [http://dx.doi.org/10.3390/rs9070704 Girod et al, 2017]&lt;br /&gt;
&lt;br /&gt;
==Requirement==&lt;br /&gt;
Part of the algorithms used in MMASTER rely on the ALGLIB library. Since it is licensed under the GNU GPL license, it cannot be part of the standard MicMac release (under CeCILL-B license). For that reason, it is necessary to compile MicMac from source, getting the IncludeALGLIB branch of the Git repository.&lt;br /&gt;
&lt;br /&gt;
You also need to have Gdal installed on your system.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
Any AST_L1A scene can work here, you can download them from [https://earthdata.nasa.gov/ NASA's Earthdata]. When chosing the file format, choose GeoTiff (NOT hdf).&lt;br /&gt;
&lt;br /&gt;
Workflows bash file (for now only for Unix systems) are available here : https://github.com/luc-girod/MMASTER-workflows . You probably want to add the folder where you have those files to your path.&lt;br /&gt;
&lt;br /&gt;
==Processing a single scene==&lt;br /&gt;
&lt;br /&gt;
=== Preparing the data ===&lt;br /&gt;
Examples are given using a scene named ''AST_L1A_00302212004225011_20170204145459_24750'' and the UTM4N cartographic projection.&lt;br /&gt;
&lt;br /&gt;
First extract the GeoTiff L1A to a folder named SceneName/RawData (ex AST_L1A_00302212004225011_20170204145459_24750/RawData).&lt;br /&gt;
&lt;br /&gt;
=== Processing the scene ===&lt;br /&gt;
&lt;br /&gt;
Then from the folder where **SCENE_FOLDER** (ex AST_L1A_00302212004225011_20170204145459_24750/) is situated run :&lt;br /&gt;
*&amp;lt;pre&amp;gt;WorkFlowMMASTER_onescene.sh -s AST_L1A_00302212004225011_20170204145459_24750 -z &amp;quot;4 +north&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*extra options are possible with this file (given here with default values) :  &amp;lt;pre&amp;gt;-t 30 -f 1 -n false -c 0.7 -q 5&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Batch processing ==&lt;br /&gt;
&lt;br /&gt;
The ''RunMicMacAster_batch.sh&amp;quot; bash file can run MMASTER with the same UTM zone parameter for a folder full of zipped ASTER_L1A scenes.&lt;br /&gt;
&lt;br /&gt;
== Notes on default parameters ==&lt;br /&gt;
&lt;br /&gt;
Default parameters are optimized for areas of low contrast (glaciers, sandy deserts...). If you are trying to get more details in your data, the correlation window size should be decreased (default &amp;quot;-q 5&amp;quot; means a 11*11 window). This can be done with the &amp;quot;-q&amp;quot; option, we found that &amp;quot;-q 2&amp;quot; gives the best results on well textured surfaces.&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2545</id>
		<title>MMASTER</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2545"/>
				<updated>2017-11-17T11:11:06Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Preparing the data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This tutorial is there to give the workflow necessary to compute MMASTER DEMs from ASTER L1A data. The method is described in details in the following paper : [http://dx.doi.org/10.3390/rs9070704 Girod et al, 2017]&lt;br /&gt;
&lt;br /&gt;
==Requirement==&lt;br /&gt;
Part of the algorithms used in MMASTER rely on the ALGLIB library. Since it is licensed under the GNU GPL license, it cannot be part of the standard MicMac release (under CeCILL-B license). For that reason, it is necessary to compile MicMac from source, getting the IncludeALGLIB branch of the Git repository.&lt;br /&gt;
&lt;br /&gt;
You also need to have Gdal installed on your system.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
Any AST_L1A scene can work here, you can download them from [https://earthdata.nasa.gov/ NASA's Earthdata]. When chosing the file format, choose GeoTiff (NOT hdf).&lt;br /&gt;
&lt;br /&gt;
Workflows bash file (for now only for Unix systems) are available here : https://github.com/luc-girod/MMASTER-workflows . You probably want to add the folder where you have those files to your path.&lt;br /&gt;
&lt;br /&gt;
==Processing a single scene==&lt;br /&gt;
&lt;br /&gt;
=== Preparing the data ===&lt;br /&gt;
Examples are given using a scene named ''AST_L1A_00302212004225011_20170204145459_24750'' and the UTM4N cartographic projection.&lt;br /&gt;
&lt;br /&gt;
First extract the GeoTiff L1A to a folder named SceneName/RawData (ex AST_L1A_00302212004225011_20170204145459_24750/RawData).&lt;br /&gt;
&lt;br /&gt;
=== processing the scene ===&lt;br /&gt;
&lt;br /&gt;
Then from the folder where **SCENE_FOLDER** (ex AST_L1A_00302212004225011_20170204145459_24750/) is situated run :&lt;br /&gt;
*&amp;lt;pre&amp;gt;WorkFlowMMASTER_onescene.sh -s AST_L1A_00302212004225011_20170204145459_24750 -z &amp;quot;4 +north&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*extra options are possible with this file (given here with default values) :  &amp;lt;pre&amp;gt;-t 30 -f 1 -n false -c 0.7 -q 5&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Batch processing ==&lt;br /&gt;
&lt;br /&gt;
The ''RunMicMacAster_batch.sh&amp;quot; bash file can run MMASTER with the same UTM zone parameter for a folder full of zipped ASTER_L1A scenes.&lt;br /&gt;
&lt;br /&gt;
== Notes on default parameters ==&lt;br /&gt;
&lt;br /&gt;
Default parameters are optimized for areas of low contrast (glaciers, sandy deserts...). If you are trying to get more details in your data, the correlation window size should be decreased (default &amp;quot;-q 5&amp;quot; means a 11*11 window). This can be done with the &amp;quot;-q&amp;quot; option, we found that &amp;quot;-q 2&amp;quot; gives the best results on well textured surfaces.&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2544</id>
		<title>MMASTER</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2544"/>
				<updated>2017-11-06T13:25:56Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Download */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This tutorial is there to give the workflow necessary to compute MMASTER DEMs from ASTER L1A data. The method is described in details in the following paper : [http://dx.doi.org/10.3390/rs9070704 Girod et al, 2017]&lt;br /&gt;
&lt;br /&gt;
==Requirement==&lt;br /&gt;
Part of the algorithms used in MMASTER rely on the ALGLIB library. Since it is licensed under the GNU GPL license, it cannot be part of the standard MicMac release (under CeCILL-B license). For that reason, it is necessary to compile MicMac from source, getting the IncludeALGLIB branch of the Git repository.&lt;br /&gt;
&lt;br /&gt;
You also need to have Gdal installed on your system.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
Any AST_L1A scene can work here, you can download them from [https://earthdata.nasa.gov/ NASA's Earthdata]. When chosing the file format, choose GeoTiff (NOT hdf).&lt;br /&gt;
&lt;br /&gt;
Workflows bash file (for now only for Unix systems) are available here : https://github.com/luc-girod/MMASTER-workflows . You probably want to add the folder where you have those files to your path.&lt;br /&gt;
&lt;br /&gt;
==Preparing the data==&lt;br /&gt;
&lt;br /&gt;
=== One scene ===&lt;br /&gt;
Examples are given using a scene named ''AST_L1A_00302212004225011_20170204145459_24750'' and the UTM4N cartographic projection.&lt;br /&gt;
&lt;br /&gt;
First extract the GeoTiff L1A to a folder named SceneName/RawData (ex AST_L1A_00302212004225011_20170204145459_24750/RawData).&lt;br /&gt;
&lt;br /&gt;
Then from the folder where **SCENE_FOLDER** (ex AST_L1A_00302212004225011_20170204145459_24750/) is situated run :&lt;br /&gt;
*&amp;lt;pre&amp;gt;WorkFlowMMASTER_onescene.sh -s AST_L1A_00302212004225011_20170204145459_24750 -z &amp;quot;4 +north&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*extra options are possible with this file (given here with default values) :  &amp;lt;pre&amp;gt;-t 30 -f 1 -n false -c 0.7&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Batch processing ===&lt;br /&gt;
&lt;br /&gt;
The ''RunMicMacAster_batch.sh&amp;quot; bash file can run MMASTER with the same UTM zone parameter for a folder full of zipped ASTER_L1A scenes.&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2543</id>
		<title>MMASTER</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2543"/>
				<updated>2017-11-06T12:34:00Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Download */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This tutorial is there to give the workflow necessary to compute MMASTER DEMs from ASTER L1A data. The method is described in details in the following paper : [http://dx.doi.org/10.3390/rs9070704 Girod et al, 2017]&lt;br /&gt;
&lt;br /&gt;
==Requirement==&lt;br /&gt;
Part of the algorithms used in MMASTER rely on the ALGLIB library. Since it is licensed under the GNU GPL license, it cannot be part of the standard MicMac release (under CeCILL-B license). For that reason, it is necessary to compile MicMac from source, getting the IncludeALGLIB branch of the Git repository.&lt;br /&gt;
&lt;br /&gt;
You also need to have Gdal installed on your system.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
Any AST_L1A scene can work here, you can download them from [https://earthdata.nasa.gov/ NASA's Earthdata]. When chosing the file format, choose GeoTiff (NOT hdf).&lt;br /&gt;
&lt;br /&gt;
Workflows bash file (for now only for Unix systems) are available here : https://github.com/luc-girod/MMASTER-workflows&lt;br /&gt;
&lt;br /&gt;
==Preparing the data==&lt;br /&gt;
&lt;br /&gt;
=== One scene ===&lt;br /&gt;
Examples are given using a scene named ''AST_L1A_00302212004225011_20170204145459_24750'' and the UTM4N cartographic projection.&lt;br /&gt;
&lt;br /&gt;
First extract the GeoTiff L1A to a folder named SceneName/RawData (ex AST_L1A_00302212004225011_20170204145459_24750/RawData).&lt;br /&gt;
&lt;br /&gt;
Then from the folder where **SCENE_FOLDER** (ex AST_L1A_00302212004225011_20170204145459_24750/) is situated run :&lt;br /&gt;
*&amp;lt;pre&amp;gt;WorkFlowMMASTER_onescene.sh -s AST_L1A_00302212004225011_20170204145459_24750 -z &amp;quot;4 +north&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*extra options are possible with this file (given here with default values) :  &amp;lt;pre&amp;gt;-t 30 -f 1 -n false -c 0.7&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Batch processing ===&lt;br /&gt;
&lt;br /&gt;
The ''RunMicMacAster_batch.sh&amp;quot; bash file can run MMASTER with the same UTM zone parameter for a folder full of zipped ASTER_L1A scenes.&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2542</id>
		<title>MMASTER</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2542"/>
				<updated>2017-11-06T12:33:34Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This tutorial is there to give the workflow necessary to compute MMASTER DEMs from ASTER L1A data. The method is described in details in the following paper : [http://dx.doi.org/10.3390/rs9070704 Girod et al, 2017]&lt;br /&gt;
&lt;br /&gt;
==Requirement==&lt;br /&gt;
Part of the algorithms used in MMASTER rely on the ALGLIB library. Since it is licensed under the GNU GPL license, it cannot be part of the standard MicMac release (under CeCILL-B license). For that reason, it is necessary to compile MicMac from source, getting the IncludeALGLIB branch of the Git repository.&lt;br /&gt;
&lt;br /&gt;
You also need to have Gdal installed on your system.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
Any AST_L1A scene can work here, you can download them from [https://earthdata.nasa.gov/]. When chosing the file format, choose GeoTiff (NOT hdf).&lt;br /&gt;
&lt;br /&gt;
Workflows bash file (for now only for Unix systems) are available here : https://github.com/luc-girod/MMASTER-workflows&lt;br /&gt;
&lt;br /&gt;
==Preparing the data==&lt;br /&gt;
&lt;br /&gt;
=== One scene ===&lt;br /&gt;
Examples are given using a scene named ''AST_L1A_00302212004225011_20170204145459_24750'' and the UTM4N cartographic projection.&lt;br /&gt;
&lt;br /&gt;
First extract the GeoTiff L1A to a folder named SceneName/RawData (ex AST_L1A_00302212004225011_20170204145459_24750/RawData).&lt;br /&gt;
&lt;br /&gt;
Then from the folder where **SCENE_FOLDER** (ex AST_L1A_00302212004225011_20170204145459_24750/) is situated run :&lt;br /&gt;
*&amp;lt;pre&amp;gt;WorkFlowMMASTER_onescene.sh -s AST_L1A_00302212004225011_20170204145459_24750 -z &amp;quot;4 +north&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*extra options are possible with this file (given here with default values) :  &amp;lt;pre&amp;gt;-t 30 -f 1 -n false -c 0.7&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Batch processing ===&lt;br /&gt;
&lt;br /&gt;
The ''RunMicMacAster_batch.sh&amp;quot; bash file can run MMASTER with the same UTM zone parameter for a folder full of zipped ASTER_L1A scenes.&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2541</id>
		<title>MMASTER</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2541"/>
				<updated>2017-11-06T12:32:59Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This tutorial is there to give the workflow necessary to compute MMASTER DEMs from ASTER L1A data. The method is described in details in the following paper : (Girod et al, 2017 [http://dx.doi.org/10.3390/rs9070704]).&lt;br /&gt;
&lt;br /&gt;
==Requirement==&lt;br /&gt;
Part of the algorithms used in MMASTER rely on the ALGLIB library. Since it is licensed under the GNU GPL license, it cannot be part of the standard MicMac release (under CeCILL-B license). For that reason, it is necessary to compile MicMac from source, getting the IncludeALGLIB branch of the Git repository.&lt;br /&gt;
&lt;br /&gt;
You also need to have Gdal installed on your system.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
Any AST_L1A scene can work here, you can download them from [https://earthdata.nasa.gov/]. When chosing the file format, choose GeoTiff (NOT hdf).&lt;br /&gt;
&lt;br /&gt;
Workflows bash file (for now only for Unix systems) are available here : https://github.com/luc-girod/MMASTER-workflows&lt;br /&gt;
&lt;br /&gt;
==Preparing the data==&lt;br /&gt;
&lt;br /&gt;
=== One scene ===&lt;br /&gt;
Examples are given using a scene named ''AST_L1A_00302212004225011_20170204145459_24750'' and the UTM4N cartographic projection.&lt;br /&gt;
&lt;br /&gt;
First extract the GeoTiff L1A to a folder named SceneName/RawData (ex AST_L1A_00302212004225011_20170204145459_24750/RawData).&lt;br /&gt;
&lt;br /&gt;
Then from the folder where **SCENE_FOLDER** (ex AST_L1A_00302212004225011_20170204145459_24750/) is situated run :&lt;br /&gt;
*&amp;lt;pre&amp;gt;WorkFlowMMASTER_onescene.sh -s AST_L1A_00302212004225011_20170204145459_24750 -z &amp;quot;4 +north&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*extra options are possible with this file (given here with default values) :  &amp;lt;pre&amp;gt;-t 30 -f 1 -n false -c 0.7&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Batch processing ===&lt;br /&gt;
&lt;br /&gt;
The ''RunMicMacAster_batch.sh&amp;quot; bash file can run MMASTER with the same UTM zone parameter for a folder full of zipped ASTER_L1A scenes.&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2540</id>
		<title>MMASTER</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2540"/>
				<updated>2017-11-06T12:32:34Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This tutorial is there to give the workflow necessary to compute MMASTER DEMs from ASTER L1A data. The method is described in details in the following paper : [http://dx.doi.org/10.3390/rs9070704].&lt;br /&gt;
&lt;br /&gt;
==Requirement==&lt;br /&gt;
Part of the algorithms used in MMASTER rely on the ALGLIB library. Since it is licensed under the GNU GPL license, it cannot be part of the standard MicMac release (under CeCILL-B license). For that reason, it is necessary to compile MicMac from source, getting the IncludeALGLIB branch of the Git repository.&lt;br /&gt;
&lt;br /&gt;
You also need to have Gdal installed on your system.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
Any AST_L1A scene can work here, you can download them from [https://earthdata.nasa.gov/]. When chosing the file format, choose GeoTiff (NOT hdf).&lt;br /&gt;
&lt;br /&gt;
Workflows bash file (for now only for Unix systems) are available here : https://github.com/luc-girod/MMASTER-workflows&lt;br /&gt;
&lt;br /&gt;
==Preparing the data==&lt;br /&gt;
&lt;br /&gt;
=== One scene ===&lt;br /&gt;
Examples are given using a scene named ''AST_L1A_00302212004225011_20170204145459_24750'' and the UTM4N cartographic projection.&lt;br /&gt;
&lt;br /&gt;
First extract the GeoTiff L1A to a folder named SceneName/RawData (ex AST_L1A_00302212004225011_20170204145459_24750/RawData).&lt;br /&gt;
&lt;br /&gt;
Then from the folder where **SCENE_FOLDER** (ex AST_L1A_00302212004225011_20170204145459_24750/) is situated run :&lt;br /&gt;
*&amp;lt;pre&amp;gt;WorkFlowMMASTER_onescene.sh -s AST_L1A_00302212004225011_20170204145459_24750 -z &amp;quot;4 +north&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*extra options are possible with this file (given here with default values) :  &amp;lt;pre&amp;gt;-t 30 -f 1 -n false -c 0.7&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Batch processing ===&lt;br /&gt;
&lt;br /&gt;
The ''RunMicMacAster_batch.sh&amp;quot; bash file can run MMASTER with the same UTM zone parameter for a folder full of zipped ASTER_L1A scenes.&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Install_MicMac_Ubuntu&amp;diff=2538</id>
		<title>Install MicMac Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Install_MicMac_Ubuntu&amp;diff=2538"/>
				<updated>2017-10-13T11:48:06Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Manually */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MicMac is an open source project and you can download the source code and compile the project yourself. This page presents the steps of the installation on a Linux system using apt-get (such as Ubuntu), but similar steps work on other systems.&lt;br /&gt;
&lt;br /&gt;
Beware : the code available in the latest revision might not be stable or might not compile in a given OS.&lt;br /&gt;
&lt;br /&gt;
== Get the source ==&lt;br /&gt;
&lt;br /&gt;
The MicMac project is now hosted on the GitHub platform.&lt;br /&gt;
''On the former Mercuriel server (https://geoportail.forge.ign.fr/hg/culture3d), no source code updates will be applied (7017 is the latest revision).''&lt;br /&gt;
&lt;br /&gt;
=== Install GitHub ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Download the source ===&lt;br /&gt;
Go to the installation directory, where you want to install MicMac.&lt;br /&gt;
&lt;br /&gt;
For “optimisation” reasons, the project files were divided into three GitHub sub-projects:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/micmacIGN/micmac : contains the source code of MicMac&lt;br /&gt;
&lt;br /&gt;
* https://github.com/micmacIGN/Documentation : contains the documentation/manuals&lt;br /&gt;
&lt;br /&gt;
* https://github.com/micmacIGN/Papers : contains some publications and other reports concerning MicMac&lt;br /&gt;
&lt;br /&gt;
To retrieve the source code to micmac folder:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone https://github.com/micmacIGN/micmac.git micmac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Build from sources ==&lt;br /&gt;
===Automatically===&lt;br /&gt;
The script_jenkins.sh available in micmac repository (or here : [https://github.com/micmacIGN/micmac/blob/master/script_jenkins_unix.sh]) can be used for an automatic compilation from sources.&lt;br /&gt;
&lt;br /&gt;
=== Manually ===&lt;br /&gt;
&lt;br /&gt;
From the installation directory, move to the 'micmac' directory :&lt;br /&gt;
&amp;lt;pre&amp;gt;cd micmac/&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then, you have to create a build directory and go in it :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then we have to generate the makefile with the right options. To generate the defaut makefile, run :&lt;br /&gt;
&amp;lt;pre&amp;gt;cmake -DWITH_QT5=1 -DWITH_CPP11=1 ..&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;About option -DWITH_QT5=1&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use this option if you want to use tools GUI such : SaisieAppuisInitQT, SaisieMasqQT etc... If not, simply use :&lt;br /&gt;
&amp;lt;pre&amp;gt;cmake ../&amp;lt;/pre&amp;gt;&lt;br /&gt;
You have perhaps to install QT if it's not done :&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install qt5-default qttools5-dev-tools&amp;lt;/pre&amp;gt;&lt;br /&gt;
NB : Version 5 is used here, use &amp;quot;-DWITH_QT4=1&amp;quot; instead if ou have QT v4.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can finally build the sources by launching :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make install -jK&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where K=&amp;quot;number of processor in your computer&amp;quot; (if you are not sure how many cores you have, just write a big number and all of the cores will be used).&lt;br /&gt;
&lt;br /&gt;
==Add MicMac to path==&lt;br /&gt;
We have now to edit the file wich contains environnement path which is located in &amp;quot;/etc/bash.bashrc&amp;quot;. The file is maybe hidden, so press CTRL+H, or activate &amp;quot;Hidden files&amp;quot; in Display (Top bar).&lt;br /&gt;
So open a terminal and type :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo gedit /etc/bash.bashrc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
NB : files in &amp;quot;/etc/&amp;quot; have to be opened in super user mode.&amp;lt;br&amp;gt;&lt;br /&gt;
Add the following lines at the bottom of the file :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;export PATH=/''micmac_install_directory''/micmac/bin:$PATH&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Check Installation==&lt;br /&gt;
===List of MicMac tools===&lt;br /&gt;
To check if MicMac is well installed, you can type in a terminal :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will return the list of all tools available for micmac library.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Check dependencies===&lt;br /&gt;
Sometimes, even when the MicMac installation is good, you can encounter messages in the terminal such as :&lt;br /&gt;
*&amp;quot;Warning Exiftool not installed&amp;quot;&lt;br /&gt;
This warnings means that MicMac can't find an external tools.&lt;br /&gt;
MicMac integrates a module which can check if all dependencies are correctly installed. It can be called by typing :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mm3d CheckDependencies&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:checkdependencies.png|thumb|250px||alt=Exemple d'image en hauteur|Screenshot 1]]&lt;br /&gt;
&lt;br /&gt;
You will get an output like Screenshot 1, with different informations :&lt;br /&gt;
*MicMac revision : micmac source code version number&lt;br /&gt;
*Qt : &amp;quot;enabled&amp;quot; permit you to use graphical interfaces such SaisieAppuisQT&lt;br /&gt;
*Kakadu : Image library for JPEG2000 management&lt;br /&gt;
*MicMac directory : Directory where MicMac is installed&lt;br /&gt;
*make : &lt;br /&gt;
*exiftool : library of image metadata management&lt;br /&gt;
*exiv2 : library of image metadata management&lt;br /&gt;
*convert :&lt;br /&gt;
*proj : library for cartographic projection&lt;br /&gt;
*cs2cs :&lt;br /&gt;
&lt;br /&gt;
== Update sources ==&lt;br /&gt;
To update the sources, go in the installtion directory (&amp;quot;installation_directory/micmac&amp;quot;) and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have now to build again the sources:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd build&lt;br /&gt;
cmake ..&lt;br /&gt;
make install -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
NB : if you want still use QT, don't forget to use &amp;lt;code&amp;gt;cmake -DWITH_QT5=1 ../&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Errors with cmake ===&lt;br /&gt;
*&amp;lt;code&amp;gt;...Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)...&amp;lt;/code&amp;gt; =&amp;gt; Try to install Qt&lt;br /&gt;
*&amp;lt;code&amp;gt;No CMAKE_CXX_COMPILER could be found. &amp;lt;/code&amp;gt; =&amp;gt; install g++ (sudo apt-get install g++)&lt;br /&gt;
*&amp;lt;code&amp;gt;...Could not find a package configuration file provided by &amp;quot;Qt5OpenGL&amp;quot;...&amp;lt;/code&amp;gt; =&amp;gt; install libqt5opengl5-dev&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Install_MicMac_Ubuntu&amp;diff=2537</id>
		<title>Install MicMac Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Install_MicMac_Ubuntu&amp;diff=2537"/>
				<updated>2017-10-13T11:47:36Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Manually */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MicMac is an open source project and you can download the source code and compile the project yourself. This page presents the steps of the installation on a Linux system using apt-get (such as Ubuntu), but similar steps work on other systems.&lt;br /&gt;
&lt;br /&gt;
Beware : the code available in the latest revision might not be stable or might not compile in a given OS.&lt;br /&gt;
&lt;br /&gt;
== Get the source ==&lt;br /&gt;
&lt;br /&gt;
The MicMac project is now hosted on the GitHub platform.&lt;br /&gt;
''On the former Mercuriel server (https://geoportail.forge.ign.fr/hg/culture3d), no source code updates will be applied (7017 is the latest revision).''&lt;br /&gt;
&lt;br /&gt;
=== Install GitHub ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Download the source ===&lt;br /&gt;
Go to the installation directory, where you want to install MicMac.&lt;br /&gt;
&lt;br /&gt;
For “optimisation” reasons, the project files were divided into three GitHub sub-projects:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/micmacIGN/micmac : contains the source code of MicMac&lt;br /&gt;
&lt;br /&gt;
* https://github.com/micmacIGN/Documentation : contains the documentation/manuals&lt;br /&gt;
&lt;br /&gt;
* https://github.com/micmacIGN/Papers : contains some publications and other reports concerning MicMac&lt;br /&gt;
&lt;br /&gt;
To retrieve the source code to micmac folder:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone https://github.com/micmacIGN/micmac.git micmac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Build from sources ==&lt;br /&gt;
===Automatically===&lt;br /&gt;
The script_jenkins.sh available in micmac repository (or here : [https://github.com/micmacIGN/micmac/blob/master/script_jenkins_unix.sh]) can be used for an automatic compilation from sources.&lt;br /&gt;
&lt;br /&gt;
=== Manually ===&lt;br /&gt;
&lt;br /&gt;
From the installation directory, move to the 'micmac' directory :&lt;br /&gt;
&amp;lt;pre&amp;gt;cd micmac/&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then, you have to create a build directory and go in it :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then we have to generate the makefile with the right options. To generate the defaut makefile, run :&lt;br /&gt;
&amp;lt;pre&amp;gt;cmake -DWITH_QT5=1 -DWITH_CPP11=1 ..&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;About option -DWITH_QT5=1&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use this option if you want to use tools GUI such : SaisieAppuisInitQT, SaisieMasqQT etc... Instead, use :&lt;br /&gt;
&amp;lt;pre&amp;gt;cmake ../&amp;lt;/pre&amp;gt;&lt;br /&gt;
You have perhaps to install QT if it's not done :&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install qt5-default qttools5-dev-tools&amp;lt;/pre&amp;gt;&lt;br /&gt;
NB : Version 5 is used here, use &amp;quot;-DWITH_QT4=1&amp;quot; instead if ou have QT v4.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can finally build the sources by launching :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make install -jK&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where K=&amp;quot;number of processor in your computer&amp;quot; (if you are not sure how many cores you have, just write a big number and all of the cores will be used).&lt;br /&gt;
&lt;br /&gt;
==Add MicMac to path==&lt;br /&gt;
We have now to edit the file wich contains environnement path which is located in &amp;quot;/etc/bash.bashrc&amp;quot;. The file is maybe hidden, so press CTRL+H, or activate &amp;quot;Hidden files&amp;quot; in Display (Top bar).&lt;br /&gt;
So open a terminal and type :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo gedit /etc/bash.bashrc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
NB : files in &amp;quot;/etc/&amp;quot; have to be opened in super user mode.&amp;lt;br&amp;gt;&lt;br /&gt;
Add the following lines at the bottom of the file :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;export PATH=/''micmac_install_directory''/micmac/bin:$PATH&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Check Installation==&lt;br /&gt;
===List of MicMac tools===&lt;br /&gt;
To check if MicMac is well installed, you can type in a terminal :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will return the list of all tools available for micmac library.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Check dependencies===&lt;br /&gt;
Sometimes, even when the MicMac installation is good, you can encounter messages in the terminal such as :&lt;br /&gt;
*&amp;quot;Warning Exiftool not installed&amp;quot;&lt;br /&gt;
This warnings means that MicMac can't find an external tools.&lt;br /&gt;
MicMac integrates a module which can check if all dependencies are correctly installed. It can be called by typing :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mm3d CheckDependencies&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:checkdependencies.png|thumb|250px||alt=Exemple d'image en hauteur|Screenshot 1]]&lt;br /&gt;
&lt;br /&gt;
You will get an output like Screenshot 1, with different informations :&lt;br /&gt;
*MicMac revision : micmac source code version number&lt;br /&gt;
*Qt : &amp;quot;enabled&amp;quot; permit you to use graphical interfaces such SaisieAppuisQT&lt;br /&gt;
*Kakadu : Image library for JPEG2000 management&lt;br /&gt;
*MicMac directory : Directory where MicMac is installed&lt;br /&gt;
*make : &lt;br /&gt;
*exiftool : library of image metadata management&lt;br /&gt;
*exiv2 : library of image metadata management&lt;br /&gt;
*convert :&lt;br /&gt;
*proj : library for cartographic projection&lt;br /&gt;
*cs2cs :&lt;br /&gt;
&lt;br /&gt;
== Update sources ==&lt;br /&gt;
To update the sources, go in the installtion directory (&amp;quot;installation_directory/micmac&amp;quot;) and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have now to build again the sources:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd build&lt;br /&gt;
cmake ..&lt;br /&gt;
make install -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
NB : if you want still use QT, don't forget to use &amp;lt;code&amp;gt;cmake -DWITH_QT5=1 ../&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Errors with cmake ===&lt;br /&gt;
*&amp;lt;code&amp;gt;...Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)...&amp;lt;/code&amp;gt; =&amp;gt; Try to install Qt&lt;br /&gt;
*&amp;lt;code&amp;gt;No CMAKE_CXX_COMPILER could be found. &amp;lt;/code&amp;gt; =&amp;gt; install g++ (sudo apt-get install g++)&lt;br /&gt;
*&amp;lt;code&amp;gt;...Could not find a package configuration file provided by &amp;quot;Qt5OpenGL&amp;quot;...&amp;lt;/code&amp;gt; =&amp;gt; install libqt5opengl5-dev&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Install_MicMac_Ubuntu&amp;diff=2536</id>
		<title>Install MicMac Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Install_MicMac_Ubuntu&amp;diff=2536"/>
				<updated>2017-10-13T11:47:15Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Manually */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MicMac is an open source project and you can download the source code and compile the project yourself. This page presents the steps of the installation on a Linux system using apt-get (such as Ubuntu), but similar steps work on other systems.&lt;br /&gt;
&lt;br /&gt;
Beware : the code available in the latest revision might not be stable or might not compile in a given OS.&lt;br /&gt;
&lt;br /&gt;
== Get the source ==&lt;br /&gt;
&lt;br /&gt;
The MicMac project is now hosted on the GitHub platform.&lt;br /&gt;
''On the former Mercuriel server (https://geoportail.forge.ign.fr/hg/culture3d), no source code updates will be applied (7017 is the latest revision).''&lt;br /&gt;
&lt;br /&gt;
=== Install GitHub ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Download the source ===&lt;br /&gt;
Go to the installation directory, where you want to install MicMac.&lt;br /&gt;
&lt;br /&gt;
For “optimisation” reasons, the project files were divided into three GitHub sub-projects:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/micmacIGN/micmac : contains the source code of MicMac&lt;br /&gt;
&lt;br /&gt;
* https://github.com/micmacIGN/Documentation : contains the documentation/manuals&lt;br /&gt;
&lt;br /&gt;
* https://github.com/micmacIGN/Papers : contains some publications and other reports concerning MicMac&lt;br /&gt;
&lt;br /&gt;
To retrieve the source code to micmac folder:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone https://github.com/micmacIGN/micmac.git micmac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Build from sources ==&lt;br /&gt;
===Automatically===&lt;br /&gt;
The script_jenkins.sh available in micmac repository (or here : [https://github.com/micmacIGN/micmac/blob/master/script_jenkins_unix.sh]) can be used for an automatic compilation from sources.&lt;br /&gt;
&lt;br /&gt;
=== Manually ===&lt;br /&gt;
&lt;br /&gt;
From the installation directory, move to the 'micmac' directory :&lt;br /&gt;
&amp;lt;pre&amp;gt;cd micmac/&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then, you have to create a build directory and go in it :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then we have to generate the makefile with the right options. To generate the defaut makefile, run :&lt;br /&gt;
&amp;lt;pre&amp;gt;cmake -DWITH_QT5=1 -DWITH_CPP11=1..&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;background-color: Lavender&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h6 style=&amp;quot;font-family: Helvetica:font-size: 40px&amp;quot;&amp;gt;About option -DWITH_QT5=1&amp;lt;/h6&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use this option if you want to use tools GUI such : SaisieAppuisInitQT, SaisieMasqQT etc... Instead, use :&lt;br /&gt;
&amp;lt;pre&amp;gt;cmake ../&amp;lt;/pre&amp;gt;&lt;br /&gt;
You have perhaps to install QT if it's not done :&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install qt5-default qttools5-dev-tools&amp;lt;/pre&amp;gt;&lt;br /&gt;
NB : Version 5 is used here, use &amp;quot;-DWITH_QT4=1&amp;quot; instead if ou have QT v4.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can finally build the sources by launching :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make install -jK&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where K=&amp;quot;number of processor in your computer&amp;quot; (if you are not sure how many cores you have, just write a big number and all of the cores will be used).&lt;br /&gt;
&lt;br /&gt;
==Add MicMac to path==&lt;br /&gt;
We have now to edit the file wich contains environnement path which is located in &amp;quot;/etc/bash.bashrc&amp;quot;. The file is maybe hidden, so press CTRL+H, or activate &amp;quot;Hidden files&amp;quot; in Display (Top bar).&lt;br /&gt;
So open a terminal and type :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo gedit /etc/bash.bashrc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
NB : files in &amp;quot;/etc/&amp;quot; have to be opened in super user mode.&amp;lt;br&amp;gt;&lt;br /&gt;
Add the following lines at the bottom of the file :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;export PATH=/''micmac_install_directory''/micmac/bin:$PATH&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Check Installation==&lt;br /&gt;
===List of MicMac tools===&lt;br /&gt;
To check if MicMac is well installed, you can type in a terminal :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will return the list of all tools available for micmac library.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Check dependencies===&lt;br /&gt;
Sometimes, even when the MicMac installation is good, you can encounter messages in the terminal such as :&lt;br /&gt;
*&amp;quot;Warning Exiftool not installed&amp;quot;&lt;br /&gt;
This warnings means that MicMac can't find an external tools.&lt;br /&gt;
MicMac integrates a module which can check if all dependencies are correctly installed. It can be called by typing :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mm3d CheckDependencies&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:checkdependencies.png|thumb|250px||alt=Exemple d'image en hauteur|Screenshot 1]]&lt;br /&gt;
&lt;br /&gt;
You will get an output like Screenshot 1, with different informations :&lt;br /&gt;
*MicMac revision : micmac source code version number&lt;br /&gt;
*Qt : &amp;quot;enabled&amp;quot; permit you to use graphical interfaces such SaisieAppuisQT&lt;br /&gt;
*Kakadu : Image library for JPEG2000 management&lt;br /&gt;
*MicMac directory : Directory where MicMac is installed&lt;br /&gt;
*make : &lt;br /&gt;
*exiftool : library of image metadata management&lt;br /&gt;
*exiv2 : library of image metadata management&lt;br /&gt;
*convert :&lt;br /&gt;
*proj : library for cartographic projection&lt;br /&gt;
*cs2cs :&lt;br /&gt;
&lt;br /&gt;
== Update sources ==&lt;br /&gt;
To update the sources, go in the installtion directory (&amp;quot;installation_directory/micmac&amp;quot;) and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have now to build again the sources:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd build&lt;br /&gt;
cmake ..&lt;br /&gt;
make install -j8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
NB : if you want still use QT, don't forget to use &amp;lt;code&amp;gt;cmake -DWITH_QT5=1 ../&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Errors with cmake ===&lt;br /&gt;
*&amp;lt;code&amp;gt;...Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)...&amp;lt;/code&amp;gt; =&amp;gt; Try to install Qt&lt;br /&gt;
*&amp;lt;code&amp;gt;No CMAKE_CXX_COMPILER could be found. &amp;lt;/code&amp;gt; =&amp;gt; install g++ (sudo apt-get install g++)&lt;br /&gt;
*&amp;lt;code&amp;gt;...Could not find a package configuration file provided by &amp;quot;Qt5OpenGL&amp;quot;...&amp;lt;/code&amp;gt; =&amp;gt; install libqt5opengl5-dev&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Malt&amp;diff=2533</id>
		<title>Malt</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Malt&amp;diff=2533"/>
				<updated>2017-08-06T13:18:04Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Notes about DEM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px]] [[Command|List of commands]]&lt;br /&gt;
==Description==&lt;br /&gt;
Malt is a simplified interface to MicMac. Currently it can handle matching in ground geometry and ground-image geometry. Ground geometry is adapted when the scene can be described by a single function Z = f (X, Y ) (with X, Y, Z being euclidean coordinates); this case occurs quite often when the scene is relatively flat and the acquisition is made by photo acquired orthogonally to the main plane. The main use cases are:&lt;br /&gt;
* modelization of facades to generate ortho photo in architecture;&lt;br /&gt;
* modelization of earth surface from aerial acquisition;&lt;br /&gt;
&lt;br /&gt;
Ground image geometry is very general and flexible and can be used in almost all acquisition. Its main drawbacks is that it requires 16 some interaction to select the master images, the mask of these images and the associated secondary images.&lt;br /&gt;
&lt;br /&gt;
===Syntax===&lt;br /&gt;
The basic syntax requires 3 args :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Malt Type Image_Pattern Orientation&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Second arg specifies the subset of images.&lt;br /&gt;
*Third arg specifies the orientation.&lt;br /&gt;
&lt;br /&gt;
===Allowed commands===&lt;br /&gt;
*Ortho&lt;br /&gt;
*UrbanMNE&lt;br /&gt;
*GeomImage&lt;br /&gt;
&lt;br /&gt;
====Ortho====&lt;br /&gt;
For a matching adapted to ortho photo generation.&lt;br /&gt;
====UrbanMNE====&lt;br /&gt;
For a matching adapted to urban digital elevation model.&lt;br /&gt;
====GeomImage====&lt;br /&gt;
For a matching in ground image geometry.&lt;br /&gt;
&lt;br /&gt;
==Help==&lt;br /&gt;
A basic help can be asked with &lt;br /&gt;
&amp;lt;pre&amp;gt; mm3d Malt -help &amp;lt;/pre&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mandatory unnamed args : &lt;br /&gt;
*string :: {Correlation mode (must be in allowed enumerated values)}&lt;br /&gt;
*string :: {Full Name (Dir+Pattern)}&lt;br /&gt;
*string :: {Orientation}&lt;br /&gt;
&lt;br /&gt;
Named args : &lt;br /&gt;
*[Name=Master] string :: { Master image must exist iff Mode=GeomImage, AUTO for Using result of AperoChImSecMM}&lt;br /&gt;
*[Name=SzW] INT :: {Correlation Window Size (1 means 3x3)}&lt;br /&gt;
*[Name=CorMS] bool :: {New Multi Scale correlation option, def=false, available in image geometry}&lt;br /&gt;
*[Name=UseGpu] bool :: {Use Cuda acceleration, def=false}&lt;br /&gt;
*[Name=Regul] REAL :: {Regularization factor}&lt;br /&gt;
*[Name=DirMEC] string :: {Subdirectory where the results will be stored}&lt;br /&gt;
*[Name=DirOF] string :: {Subdirectory for ortho (def in Ortho-${DirMEC}) }&lt;br /&gt;
*[Name=UseTA] INT :: {Use TA as Masq when it exists (Def is true)}&lt;br /&gt;
*[Name=ZoomF] INT :: {Final zoom, (Def 2 in ortho,1 in MNE)}&lt;br /&gt;
*[Name=ZoomI] INT :: {Initial Zoom, (Def depends on number of images)}&lt;br /&gt;
*[Name=ZPas] REAL :: {Quantification step in equivalent pixel (def=0.4)}&lt;br /&gt;
*[Name=Exe] INT :: {Execute command (Def is true !!)}&lt;br /&gt;
*[Name=Repere] string :: {Local system of coordinates}&lt;br /&gt;
*[Name=NbVI] INT :: {Number of Visible Images required (Def = 3)}&lt;br /&gt;
*[Name=HrOr] bool :: {Compute High Resolution Ortho}&lt;br /&gt;
*[Name=LrOr] bool :: {Compute Low Resolution Ortho}&lt;br /&gt;
*[Name=DirTA] string :: {Directory of TA (for mask)}&lt;br /&gt;
*[Name=Purge] bool :: {Purge the directory of Results before compute}&lt;br /&gt;
*[Name=DoMEC] bool :: {Do the Matching}&lt;br /&gt;
*[Name=DoOrtho] bool :: {Do the Ortho (Def=mDoMEC)}&lt;br /&gt;
*[Name=UnAnam] bool :: {Compute the un-anamorphosed DTM and ortho (Def context dependent)}&lt;br /&gt;
*[Name=2Ortho] bool :: {Do both anamorphosed ans un-anamorphosed ortho (when applyable) }&lt;br /&gt;
*[Name=ZInc] REAL :: {Incertitude on Z (in proportion of average depth, def=0.3) }&lt;br /&gt;
*[Name=DefCor] REAL :: {Default Correlation in un correlated pixels (Def=0.2)}&lt;br /&gt;
*[Name=CostTrans] REAL :: {Cost to change from correlation to uncorrelation (Def=2.0) }&lt;br /&gt;
*[Name=Etape0] INT :: {First Step (Def=1) }&lt;br /&gt;
*[Name=AffineLast] bool :: {Affine Last Etape with Step Z/2 (Def=true) }&lt;br /&gt;
*[Name=ResolOrtho] REAL :: {Resolution of ortho, relatively to images (Def=1.0; 0.5 means smaller images) }&lt;br /&gt;
*[Name=ImMNT] string :: {Filter to select images used for matching (Def All, usable with ortho) }&lt;br /&gt;
*[Name=ImOrtho] string :: {Filter to select images used for ortho (Def All) }&lt;br /&gt;
*[Name=ZMoy] REAL :: {Average value of Z}&lt;br /&gt;
*[Name=Spherik] bool :: {If true the surface for rectification is a sphere}&lt;br /&gt;
*[Name=WMI] REAL :: {Mininum width of reduced images (to fix ZoomInit)}&lt;br /&gt;
*[Name=MasqIm] string :: {Masq per Im; Def None; Use &amp;quot;Masq&amp;quot; for standard result of SaisieMasq}&lt;br /&gt;
*[Name=MasqImGlob] string :: {Glob Masq per Im : if uses, give full name of masq (for ex toto.tif) }&lt;br /&gt;
*[Name=IncMax] REAL :: {Maximum incidence of image}&lt;br /&gt;
*[Name=BoxClip] Box2dr :: {To Clip Computation, normalized image coordinates ([0,0,1,1] means full box)}&lt;br /&gt;
*[Name=BoxTerrain] Box2dr :: {([Xmin,Ymin,Xmax,Ymax])}&lt;br /&gt;
*[Name=ResolTerrain] REAL :: {Ground Resol (Def automatically computed)}&lt;br /&gt;
*[Name=RoundResol] bool :: {Use rounding of resolution (def context dependent,tuning purpose)}&lt;br /&gt;
*[Name=GCC] bool :: {Generate export for Cube Correlation}&lt;br /&gt;
*[Name=EZA] bool :: {Export Z Absolute}&lt;br /&gt;
*[Name=Equiv] vector&amp;lt;std::string&amp;gt; :: {Equivalent classes, as a set of pattern, def=None}&lt;br /&gt;
*[Name=MOri] string :: {Mode Orientation (GRID or RTO) if not XML frame camera}&lt;br /&gt;
*[Name=MaxFlow] bool :: {Use MaxFlow(MinCut) instead of 2D ProgDyn (SGM), slower sometime better, Def=false }&lt;br /&gt;
*[Name=SzRec] INT :: {Sz of overlap between computation tiles, Def=50; for some rare side effects}&lt;br /&gt;
*[Name=Masq3D] string :: {Name of 3D Masq}&lt;br /&gt;
*[Name=NbProc] INT :: {Nb Proc Used}&lt;br /&gt;
*[Name=PSIBN] REAL :: {Penal for Automatic Selection of Images to Best Nadir (Def=-1, dont use)}&lt;br /&gt;
*[Name=InternalNoIncid] bool :: {Internal Use}&lt;br /&gt;
*[Name=PtDebug] Pt2di :: {Internal Use (Point of debuging)}&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
An example with data set of Mur Saint Martin :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; mm3d Malt Ortho &amp;quot;./IMGP41((6[7-9])|([7-8][0-9])).JPG&amp;quot; Basc &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Notes about DEM==&lt;br /&gt;
&lt;br /&gt;
Malt generates DEMs which can be retrieve in a folder named MEC-MALT by default :&lt;br /&gt;
&amp;lt;pre&amp;gt; Z_NumA_DeZoomB_STD-MALT.tif &amp;lt;/pre&amp;gt;&lt;br /&gt;
where A B dependens on the step of the computation and of the arguments of the Malt command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generated DEMs elevation values '''are not recorded''' in a metric unit unless you specify the '''EZA=1''' option for Malt. &lt;br /&gt;
&lt;br /&gt;
The conversion values are stored in the file :&lt;br /&gt;
&amp;lt;pre&amp;gt;Z_NumA_DeZoomB_STD-MALT.xml &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Install_MicMac_Windows&amp;diff=2526</id>
		<title>Install MicMac Windows</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Install_MicMac_Windows&amp;diff=2526"/>
				<updated>2017-07-04T09:34:05Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* With Setup (recommended) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;French version below.&lt;br /&gt;
==With Setup (recommended)==&lt;br /&gt;
&lt;br /&gt;
*NEW! Download the binaries from the GitHub:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;https://github.com/micmacIGN/micmac/releases&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Download the setup from :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;http://logiciels.ign.fr/?Telechargement,20&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Choose the 32 or 64bits version according to your Windows system (&amp;quot;Configuration pannel/System&amp;quot;). Then, follow the differents step of the setup.&lt;br /&gt;
*We recommand you to install MicMac in a directory where the path doesn't include any space or special character (i.e.: &amp;quot; &amp;quot;,&amp;quot;&amp;amp;&amp;quot;,&amp;quot;@&amp;quot; etc...). The common error is to install it in &amp;quot;C:\Program Files (x86)&amp;quot; which include space.&lt;br /&gt;
&lt;br /&gt;
==With binaries==&lt;br /&gt;
===Download &amp;amp; Install===&lt;br /&gt;
*Download the binaries from :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;http://logiciels.ign.fr/?Telechargement,20&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Choose the 32 or 64bits version according your Windows system (&amp;quot;Configuration pannel/System&amp;quot;).Then extract the &amp;quot;.zip&amp;quot; file where you want to install MicMac.&lt;br /&gt;
*We recommand you to install MicMac in a directory where the path doesn't include any space or special character (i.e.: &amp;quot; &amp;quot;,&amp;quot;&amp;amp;&amp;quot;,&amp;quot;@&amp;quot; etc...). The common error is to install it in &amp;quot;C:\Program Files (x86)&amp;quot; which include space.&lt;br /&gt;
&lt;br /&gt;
===Set environnemental path===&lt;br /&gt;
It is possible that you should have to indicate to your computer where the MicMac binaries are. You need to open the configuration pannel -&amp;gt; System -&amp;gt; Set parameters (Screenshot 1)&lt;br /&gt;
[[Image:Capture ecran1.png|thumb|250px||alt=Exemple d'image en hauteur|Screenshot 1]]&lt;br /&gt;
&lt;br /&gt;
Then Advanced parameters -&amp;gt; Environnemental variable (Screenshot 2). &lt;br /&gt;
[[Image:Capture ecran2.png|thumb|250px||alt=Exemple d'image en hauteur|Screenshot 2]]&lt;br /&gt;
&lt;br /&gt;
Double-click in the path variable and add at the end (Screenshot 3):&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;;installation_directory\micmac\bin (for example &amp;quot;;C:\micmac\bin&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
[[Image:Capture ecran3.jpg|thumb|250px||alt=Exemple d'image en hauteur|Screenshot 3]]&lt;br /&gt;
&lt;br /&gt;
==Check Installation==&lt;br /&gt;
===List of micmac tools===&lt;br /&gt;
To check if MicMac is well installed, you can type in a terminal :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will return the list of all tools available for micmac library.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Check dependencies===&lt;br /&gt;
Sometimes, even when the MicMac installation is good, you can encounter messages in the terminal such as :&lt;br /&gt;
*&amp;quot;Warning Exiftool not installed&amp;quot;&lt;br /&gt;
This warnings means that MicMac can't find an external tools.&lt;br /&gt;
MicMac integrates a module which can check if all dependencies are correctly installed. It can be called by typing :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mm3d CheckDependencies&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:checkdependencies.png|thumb|250px||alt=Exemple d'image en hauteur|Screenshot 4]]&lt;br /&gt;
&lt;br /&gt;
You will get an output like Screenshot 4, with different informations :&lt;br /&gt;
*MicMac revision : micmac source code version number&lt;br /&gt;
*Qt : &amp;quot;enabled&amp;quot; permit you to use graphical interfaces such SaisieAppuisQT&lt;br /&gt;
*Kakadu : Image library for JPEG2000 management&lt;br /&gt;
*MicMac directory : Directory where MicMac is installed&lt;br /&gt;
*make : &lt;br /&gt;
*exiftool : library of image metadata management&lt;br /&gt;
*exiv2 : library of image metadata management&lt;br /&gt;
*convert :&lt;br /&gt;
*proj : library for cartographic projection&lt;br /&gt;
*cs2cs :&lt;br /&gt;
&lt;br /&gt;
==Option : Install Exiv2==&lt;br /&gt;
*You can download the exe file from :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;http://www.exiv2.org/download.html&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
click on &amp;quot;Download exiv2.exe&amp;quot; &lt;br /&gt;
&lt;br /&gt;
*Move the &amp;quot;exiv2.exe&amp;quot; file in the MicMac binaries directory (&amp;quot;C:\micmac\bin&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==Known problems==&lt;br /&gt;
&lt;br /&gt;
==How to use MicMac with Windows==&lt;br /&gt;
&lt;br /&gt;
This video shows some basic steps on how to use MicMac on Windows.&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://www.youtube.com/watch?v=tezTFRanTYA|500x300px}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=French Version : Installation MicMac pour windows= &lt;br /&gt;
 &lt;br /&gt;
==Avec le setup==&lt;br /&gt;
&lt;br /&gt;
*Cette solution consiste à installer MicMac en téléchargeant le setup proposé sur le site de l’IGN. Attention : L’installation par setup est uniquement recommandée si la version d’installation est la plus récente disponible sur le site.&lt;br /&gt;
&lt;br /&gt;
*Télécharger le setup depuis  http://logiciels.ign.fr/?Micmac. Choisir la version 32 ou 64bits en fonction de son type de système. Suivre les étapes d’installation semblable aux setups des logiciels Windows.&lt;br /&gt;
&lt;br /&gt;
==Avec les binaires==&lt;br /&gt;
&lt;br /&gt;
*Télécharger les binaires précompilés depuis http://logiciels.ign.fr/?Micmac. Choisir la bonne version 32 ou 64 bit selon votre ordinateur. (Pour connaître la version du système de son ordinateur : Démarrer/Panneau de configuration/Système).&lt;br /&gt;
&lt;br /&gt;
*Décompresser le fichier micmac_bin_windows_x86_64_rev3982.zip dans le répertoire voulu. Attention : proscrire les arborescences contenant des espaces ou/et des accents) !&lt;br /&gt;
&lt;br /&gt;
*Aller dans « Panneau de configuration Système », cliquer sur « Modifier les paramètres » &lt;br /&gt;
&lt;br /&gt;
*Cliquer ensuite sur « Paramètres Système Avancés » et enfin sur « Variables d’environnement. »&lt;br /&gt;
&lt;br /&gt;
*Dans « Variables Système » choisir la variable « Path » et cliquer sur « Modifier ».&lt;br /&gt;
&lt;br /&gt;
*Dans « Valeur de la variable », rajouter à la fin un point-virgule suivi du nom du répertoire contenant les binaires ;répertoire_des_binaires. Attention : proscrire les arborescences contenant des espaces ou/et des accents) !&lt;br /&gt;
&lt;br /&gt;
*Quitter le panneau de configuration en cliquant sur OK à chaque fois.&lt;br /&gt;
&lt;br /&gt;
*Lancer une invite de commande (Installation_MicMac_Windows) et taper mm3d pour vérifier que tout est bien installé. La liste des commandes disponibles doit s’afficher.&lt;br /&gt;
&lt;br /&gt;
*Taper ensuite : mm3d CheckDependencies&lt;br /&gt;
&lt;br /&gt;
*Vérifier que tout est installé en vérifiant que chaque paquet est « found ». Si un paquet est manquant, se référer au fichier LisezMoi téléchargé avec les binaires.&lt;br /&gt;
&lt;br /&gt;
==Optionnel : Installation de Exiv2==&lt;br /&gt;
*Se rendre sur http://www.exiv2.org/download.html puis télécharger l’éxecutable Windows en cliquant sur « Download exiv2.exe ». &lt;br /&gt;
&lt;br /&gt;
*Il faut ensuite placer le fichier exiv2.exe à côté des binaires de MicMac (par défaut C:\MicMac64bits\bin)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=AperiCloud&amp;diff=2516</id>
		<title>AperiCloud</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=AperiCloud&amp;diff=2516"/>
				<updated>2017-06-29T14:05:15Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* AperiCloud doesn't support 64 bits ply */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px]] [[Command|List of commands]]&lt;br /&gt;
==Description==&lt;br /&gt;
AperiCloud is used for generating a visualization of and sparse 3D model and cameras position, computed by [[Tapas]] for example.&lt;br /&gt;
&lt;br /&gt;
===Syntax===&lt;br /&gt;
The global syntax for AperiCloud is :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud FullName Orientation NamedArgs&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Results===&lt;br /&gt;
AperiCloud, generate a sparse 3D cloud (&amp;quot;.ply&amp;quot;) with the position and orientation of each camera. If you don't use &amp;quot;Out&amp;quot; option, the file will be stored in your working directory at the name : &amp;lt;i&amp;gt;AperiCloud-Ori_Name.ply&amp;lt;/i&amp;gt;. You can use MeshLab to visualize the file.&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:01_Gravillonn_AO.jpg|x200px]]&lt;br /&gt;
[[Image:Pierrerue2.png|x200px]]&lt;br /&gt;
[[Image:Exercice_Fontaine1.png|x200px]]&lt;br /&gt;
&lt;br /&gt;
===Workflow===&lt;br /&gt;
AperiCloud is a tool dedicated to visualization of orientations. So you can use it every times you process a orientation. When you have processed the final orientation, you can define a 3D mask with the &amp;quot;.ply&amp;quot; file generated by AperiCloud (SaisieMasqQT).&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Picto-previous.png|20px]] Previous Command : [[Tapas]],[[GCPBascule]],[[Campari]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Picto-next.png|20px]] Next Command : [[SaisieMasqQT]].&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&amp;lt;div style=&amp;quot;z-index:1;position:relative;&amp;quot;&amp;gt;[[Image:Pipeline GI.png|x300px]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color:green;width:19px;height:19px;left:477px;top:-94px;position:relative;border-radius:10px&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Help=== &lt;br /&gt;
You can access to the help by typing :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud -help&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mandatory unnamed args :&lt;br /&gt;
*string :: {Full name (Dir+Pattern)}&lt;br /&gt;
*string :: {Orientation directory}&lt;br /&gt;
Named args :&lt;br /&gt;
*[Name=ExpTxt] INT :: {Point in txt format ? (Def=false)}&lt;br /&gt;
*[Name=Out] string :: {Result (Def=AperiCloud.ply)}&lt;br /&gt;
*[Name=Bin] INT :: {Ply in binary mode (Def=true)}&lt;br /&gt;
*[Name=RGB] INT :: {Use RGB image to texturate points (Def=true)}&lt;br /&gt;
*[Name=SeuilEc] REAL :: {Max residual (Def=10)}&lt;br /&gt;
*[Name=LimBsH] REAL :: {Limit ratio base to height (Def=1e-2)}&lt;br /&gt;
*[Name=WithPoints] bool :: {Do we add point cloud? (Def=true) }&lt;br /&gt;
*[Name=CalPerIm] bool :: {If a calibration per image was used (Def=false)}&lt;br /&gt;
*[Name=Focs] Pt2dr :: {Interval of Focal}&lt;br /&gt;
*[Name=WithCam] bool :: {With Camera (Def=true)}&lt;br /&gt;
*[Name=ColCadre] Pt3di :: {Col of camera rect Def= 255 0 0 (Red)}&lt;br /&gt;
*[Name=ColRay] Pt3di :: {Col of camera rect Def= 0 255 0 (Green)}&lt;br /&gt;
*[Name=SH] string :: {Set of Hom, Def=&amp;quot;&amp;quot;, give MasqFiltered for result of HomolFilterMasq}&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
In example, you can launch this command in the Mur Saint Martin dataset :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud «.*JPG » Out=MEP &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Known limitations ==&lt;br /&gt;
=== AperiCloud doesn't support 64 bits ply ===&lt;br /&gt;
Use of AperiCloud with coordinates with many digits generates  models which seeems sliced, or very sparse, because this tool doesn't support 64 bits ply models.&lt;br /&gt;
&lt;br /&gt;
Due to this limitations, it is recommended to use local or truncated coordinate. Or not to use  AperiCloud after georeferencement in a projected coordinates system.&lt;br /&gt;
Look to [http://forum-micmac.forumprod.com/point-cloud-seems-sliced-and-very-sparse-after-coord-chgt-t1270.html| this thread] for an example and further information.&lt;br /&gt;
&lt;br /&gt;
For precision and accuracy reasons, it is anyways always recommended to work in a local system at least until just before the correlation step (after Campari), and use [[ChgSysCo]] to then get to the projected coordinate system.&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=AperiCloud&amp;diff=2515</id>
		<title>AperiCloud</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=AperiCloud&amp;diff=2515"/>
				<updated>2017-06-29T14:04:27Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* AperiCloud doesn't support 64 bits ply */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px]] [[Command|List of commands]]&lt;br /&gt;
==Description==&lt;br /&gt;
AperiCloud is used for generating a visualization of and sparse 3D model and cameras position, computed by [[Tapas]] for example.&lt;br /&gt;
&lt;br /&gt;
===Syntax===&lt;br /&gt;
The global syntax for AperiCloud is :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud FullName Orientation NamedArgs&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Results===&lt;br /&gt;
AperiCloud, generate a sparse 3D cloud (&amp;quot;.ply&amp;quot;) with the position and orientation of each camera. If you don't use &amp;quot;Out&amp;quot; option, the file will be stored in your working directory at the name : &amp;lt;i&amp;gt;AperiCloud-Ori_Name.ply&amp;lt;/i&amp;gt;. You can use MeshLab to visualize the file.&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:01_Gravillonn_AO.jpg|x200px]]&lt;br /&gt;
[[Image:Pierrerue2.png|x200px]]&lt;br /&gt;
[[Image:Exercice_Fontaine1.png|x200px]]&lt;br /&gt;
&lt;br /&gt;
===Workflow===&lt;br /&gt;
AperiCloud is a tool dedicated to visualization of orientations. So you can use it every times you process a orientation. When you have processed the final orientation, you can define a 3D mask with the &amp;quot;.ply&amp;quot; file generated by AperiCloud (SaisieMasqQT).&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Picto-previous.png|20px]] Previous Command : [[Tapas]],[[GCPBascule]],[[Campari]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Picto-next.png|20px]] Next Command : [[SaisieMasqQT]].&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&amp;lt;div style=&amp;quot;z-index:1;position:relative;&amp;quot;&amp;gt;[[Image:Pipeline GI.png|x300px]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color:green;width:19px;height:19px;left:477px;top:-94px;position:relative;border-radius:10px&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Help=== &lt;br /&gt;
You can access to the help by typing :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud -help&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mandatory unnamed args :&lt;br /&gt;
*string :: {Full name (Dir+Pattern)}&lt;br /&gt;
*string :: {Orientation directory}&lt;br /&gt;
Named args :&lt;br /&gt;
*[Name=ExpTxt] INT :: {Point in txt format ? (Def=false)}&lt;br /&gt;
*[Name=Out] string :: {Result (Def=AperiCloud.ply)}&lt;br /&gt;
*[Name=Bin] INT :: {Ply in binary mode (Def=true)}&lt;br /&gt;
*[Name=RGB] INT :: {Use RGB image to texturate points (Def=true)}&lt;br /&gt;
*[Name=SeuilEc] REAL :: {Max residual (Def=10)}&lt;br /&gt;
*[Name=LimBsH] REAL :: {Limit ratio base to height (Def=1e-2)}&lt;br /&gt;
*[Name=WithPoints] bool :: {Do we add point cloud? (Def=true) }&lt;br /&gt;
*[Name=CalPerIm] bool :: {If a calibration per image was used (Def=false)}&lt;br /&gt;
*[Name=Focs] Pt2dr :: {Interval of Focal}&lt;br /&gt;
*[Name=WithCam] bool :: {With Camera (Def=true)}&lt;br /&gt;
*[Name=ColCadre] Pt3di :: {Col of camera rect Def= 255 0 0 (Red)}&lt;br /&gt;
*[Name=ColRay] Pt3di :: {Col of camera rect Def= 0 255 0 (Green)}&lt;br /&gt;
*[Name=SH] string :: {Set of Hom, Def=&amp;quot;&amp;quot;, give MasqFiltered for result of HomolFilterMasq}&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
In example, you can launch this command in the Mur Saint Martin dataset :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d AperiCloud «.*JPG » Out=MEP &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Known limitations ==&lt;br /&gt;
=== AperiCloud doesn't support 64 bits ply ===&lt;br /&gt;
Use of AperiCloud with coordinates with many digits generates  models which seeems sliced, or very sparse, because this tool doesn't support 64 bits ply models.&lt;br /&gt;
&lt;br /&gt;
Due to this limitations, it is recommended to use local or truncated coordinate. Or not to use  AperiCloud after georeferencement in a projected coordinates system.&lt;br /&gt;
Look to [http://forum-micmac.forumprod.com/point-cloud-seems-sliced-and-very-sparse-after-coord-chgt-t1270.html| this thread] for an example and further information.&lt;br /&gt;
&lt;br /&gt;
For precision and accuracy reasons, it is anyways always recommended to work in a local system at least until just before the correlation step (after Campari), and use [[ChgSys]] to then get to the projected coordinate system.&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2504</id>
		<title>MMASTER</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2504"/>
				<updated>2017-05-31T13:52:59Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Processing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This tutorial is there to give the workflow necessary to compute MMASTER DEMs from ASTER L1A data. The method is described in details in an upcoming paper (will be linked here as soon as it is published).&lt;br /&gt;
&lt;br /&gt;
==Requirement==&lt;br /&gt;
Part of the algorithms used in MMASTER rely on the ALGLIB library. Since it is licensed under the GNU GPL license, it cannot be part of the standard MicMac release (under CeCILL-B license). For that reason, it is necessary to compile MicMac from source, getting the IncludeALGLIB branch of the Git repository.&lt;br /&gt;
&lt;br /&gt;
You also need to have Gdal installed on your system.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
Any AST_L1A scene can work here, you can download them from [https://earthdata.nasa.gov/]. When chosing the file format, choose GeoTiff (NOT hdf).&lt;br /&gt;
&lt;br /&gt;
==Preparing the data==&lt;br /&gt;
Examples are given using a scene named ''AST_L1A_00302212004225011_20170204145459_24750'' and the UTM4N cartographic projection.&lt;br /&gt;
&lt;br /&gt;
First extract the GeoTiff L1A to a folder named SceneName/RawData (ex AST_L1A_00302212004225011_20170204145459_24750/RawData).&lt;br /&gt;
&lt;br /&gt;
Then from the folder where **SCENE_FOLDER** (ex AST_L1A_00302212004225011_20170204145459_24750/) is situated run :&lt;br /&gt;
*&amp;lt;pre&amp;gt;WorkFlowMMASTER.sh -s AST_L1A_00302212004225011_20170204145459_24750 -z &amp;quot;4 +north&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*extra options are possible with this file (given here with default values) :  &amp;lt;pre&amp;gt;-t 30 -f 1 -n false -c 0.7&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Processing==&lt;br /&gt;
The following code is the '''WorkflowMMASTER.sh''' file referenced above.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#Fixed symboles&lt;br /&gt;
Nx=&amp;quot;_3N.xml&amp;quot;&lt;br /&gt;
Bx=&amp;quot;_3B.xml&amp;quot;&lt;br /&gt;
Nt=&amp;quot;_3N.tif&amp;quot;&lt;br /&gt;
Bt=&amp;quot;_3B.tif&amp;quot;&lt;br /&gt;
Bcor=&amp;quot;_3B.tif_corrected.tif&amp;quot;&lt;br /&gt;
RPC=&amp;quot;RPC_&amp;quot;&lt;br /&gt;
scene_set=0&lt;br /&gt;
utm_set=0&lt;br /&gt;
# add default values for ZoomF, RESTERR, CorThr and NoCorDEM&lt;br /&gt;
ZoomF=1&lt;br /&gt;
RESTERR=30&lt;br /&gt;
CorThr=0.7&lt;br /&gt;
NoCorDEM=false&lt;br /&gt;
&lt;br /&gt;
while getopts &amp;quot;s:z:c:nf:t:h&amp;quot; opt; do&lt;br /&gt;
	case $opt in&lt;br /&gt;
	h)&lt;br /&gt;
		echo &amp;quot;Run the second step in the MMASTER processing chain.&amp;quot;&lt;br /&gt;
		echo &amp;quot;usage: WorkflowMMASTER.sh -s SCENENAME -z 'UTMZONE' -f ZOOMF -t RASTERRES -h&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -s SCENENAME: Aster scenename/folder where data is located.&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -z UTMZONE  : UTM Zone of area of interest. Takes form 'NN +north(south)'&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -c CorThr   : Correlation Threshold for estimates of Z min and max (optional, default : 0.7)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -n NoCorDEM : Compute DEM with the uncorrected 3B image (computing with correction as well)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -f ZOOMF    : Run with different final resolution   (optional; default: 1)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -t RESTERR  : Run with different terrain resolution (optional; default: 30)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -h	  : displays this message and exits.&amp;quot;&lt;br /&gt;
		echo &amp;quot; &amp;quot;&lt;br /&gt;
		exit 0&lt;br /&gt;
		;;&lt;br /&gt;
	n)&lt;br /&gt;
		NoCorDEM=$OPTARG&lt;br /&gt;
		;;	&lt;br /&gt;
	s)&lt;br /&gt;
		name=$OPTARG&lt;br /&gt;
		scene_set=1&lt;br /&gt;
		;;&lt;br /&gt;
	z)&lt;br /&gt;
		UTM=$OPTARG&lt;br /&gt;
		utm_set=1&lt;br /&gt;
		;;    &lt;br /&gt;
	c)&lt;br /&gt;
		CorThr=$OPTARG&lt;br /&gt;
		echo &amp;quot;CorThr set to $CorThr&amp;quot;&lt;br /&gt;
		;;&lt;br /&gt;
	f)&lt;br /&gt;
		ZoomF=$OPTARG&lt;br /&gt;
		;;&lt;br /&gt;
	t)&lt;br /&gt;
		RESTERR=$OPTARG&lt;br /&gt;
		;;&lt;br /&gt;
	\?)&lt;br /&gt;
		echo &amp;quot;RunMicMacAster.sh: Invalid option: -$OPTARG&amp;quot; &amp;gt;&amp;amp;2&lt;br /&gt;
		exit 1&lt;br /&gt;
		;;&lt;br /&gt;
	:)&lt;br /&gt;
		echo &amp;quot; WorkflowMMASTER.sh: Option -$OPTARG requires an argument.&amp;quot; &amp;gt;&amp;amp;2&lt;br /&gt;
		exit 1&lt;br /&gt;
		;;&lt;br /&gt;
	esac&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
#Variable symboles&lt;br /&gt;
echo $name&lt;br /&gt;
echo $UTM&lt;br /&gt;
cd $name&lt;br /&gt;
pwd&lt;br /&gt;
cd RawData&lt;br /&gt;
pwd&lt;br /&gt;
mm3d SateLib ASTERGT2MM $name&lt;br /&gt;
cd ..&lt;br /&gt;
&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Bx 20 &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=-500 HMax=9000 expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Nx 20 &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=-500 HMax=9000 expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid &amp;quot;FalseColor_$name.xml&amp;quot; 20 &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=-500 HMax=9000 expDIMAP=1 expGrid=1&lt;br /&gt;
&lt;br /&gt;
mm3d Malt Ortho &amp;quot;.*$name(|_3N|_3B).tif&amp;quot; GRIBin ImMNT=&amp;quot;$name(_3N|_3B).tif&amp;quot; MOri=GRID ZMoy=2500 ZInc=2500 ZoomF=8 ZoomI=32 ResolTerrain=30 NbVI=2 EZA=1 Regul=0.1 DefCor=$CorThr DoOrtho=0 DirMEC=MEC-Mini&lt;br /&gt;
&lt;br /&gt;
gdalinfo -nomd -norat -noct -nofl -stats MEC-Mini/Z_Num6_DeZoom8_STD-MALT.tif &amp;gt; gdalinfo.txt&lt;br /&gt;
deminfo=$(grep -P 'Minimum+' gdalinfo.txt)&lt;br /&gt;
Min=$(echo $deminfo | cut -d, -f1 | tr -d ' ' | tr -d 'Minimum=' | xargs printf &amp;quot;%.0f&amp;quot;)&lt;br /&gt;
Max=$(echo $deminfo | cut -d, -f2 | tr -d ' ' | tr -d 'Maximum=' | xargs printf &amp;quot;%.0f&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
echo Min=$Min&lt;br /&gt;
echo Max=$Max&lt;br /&gt;
&lt;br /&gt;
#Filter obvious error in min/max (limit to earth min/max)&lt;br /&gt;
Min=$((($Min)&amp;lt;-420 ? -420 : $Min))&lt;br /&gt;
Max=$((($Max)&amp;gt;8850 ? 8850 : $Max))&lt;br /&gt;
#next 2 lines is basically if the auto min/max function failed / DEM is really bad, happen if a lot of sea or a lot of clouds&lt;br /&gt;
Min=$((($Min)&amp;gt;8850 ? -420 : $Min))&lt;br /&gt;
Max=$((($Max)&amp;lt;-420 ? 8850 : $Max))&lt;br /&gt;
#From min/max, compute the nb of grids needed in Z and the values for ZMoy and Zinc&lt;br /&gt;
DE=$(echo $Max - $Min| bc )&lt;br /&gt;
NbLvl=$(echo $DE/200| bc )&lt;br /&gt;
NbLvl=$((($NbLvl)&amp;lt;10 ? 10 : $NbLvl))&lt;br /&gt;
Mean=$(echo $Max + $Min| bc )&lt;br /&gt;
Mean=$(echo $Mean/2| bc )&lt;br /&gt;
Inc=$(echo $Max - $Mean| bc | xargs printf &amp;quot;%.0f&amp;quot;)&lt;br /&gt;
echo Min=$Min&lt;br /&gt;
echo Max=$Max&lt;br /&gt;
echo NbLvl=$NbLvl&lt;br /&gt;
echo Mean=$Mean&lt;br /&gt;
echo Inc=$Inc&lt;br /&gt;
echo Min Max NbLvl Mean Inc &amp;gt;&amp;gt; Stats.txt&lt;br /&gt;
echo $Min $Max $NbLvl $Mean $Inc &amp;gt;&amp;gt; Stats.txt&lt;br /&gt;
&lt;br /&gt;
#Re compute RPCs with updated min/max&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Bx $NbLvl &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=$Min HMax=$Max expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Nx $NbLvl &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=$Min HMax=$Max expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid &amp;quot;FalseColor_$name.xml&amp;quot; $NbLvl &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=$Min HMax=$Max expDIMAP=1 expGrid=1&lt;br /&gt;
&lt;br /&gt;
mm3d MMTestOrient $name$Bt $name$Nt GRIBin PB=1 MOri=GRID ZoomF=1 ZInc=$Inc ZMoy=$Mean&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# if we want to compute the uncorrected DEM&lt;br /&gt;
if [ &amp;quot;$NoCorDEM&amp;quot; = true ]; then #check variable name!&lt;br /&gt;
	mm3d Malt Ortho &amp;quot;.*$name(|_3N|_3B).tif&amp;quot; GRIBin ImMNT=&amp;quot;$name(_3N|_3B).tif&amp;quot; ImOrtho=&amp;quot;FalseColor_$name.tif&amp;quot; MOri=GRID ZInc=$Inc ZMoy=$Mean ZoomF=1 ZoomI=32 ResolTerrain=30 NbVI=2 EZA=1 DefCor=0 Regul=0.1 ResolOrtho=2 DirMEC=MEC-NoCor&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#Applying correction to the 3B image&lt;br /&gt;
mm3d SateLib ApplyParralaxCor $name$Bt GeoI-Px/Px2_Num16_DeZoom1_Geom-Im.tif FitASTER=1 ExportFitASTER=1&lt;br /&gt;
mkdir ImOrig&lt;br /&gt;
mv $name$Bt ImOrig/$name$Bt&lt;br /&gt;
mv $name$Bcor $name$Bt&lt;br /&gt;
&lt;br /&gt;
# Correlation with corrected image&lt;br /&gt;
mm3d Malt Ortho &amp;quot;.*$name(|_3N|_3B).tif&amp;quot; GRIBin ImMNT=&amp;quot;$name(_3N|_3B).tif&amp;quot; ImOrtho=&amp;quot;FalseColor_$name.tif&amp;quot; MOri=GRID ZInc=$Inc ZMoy=$Mean ZoomF=$ZoomF ZoomI=32 ResolTerrain=$RESTERR NbVI=2 EZA=1 DefCor=0 Regul=0.1 ResolOrtho=2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mm3d GrShade MEC-Malt/Z_Num9_DeZoom1_STD-MALT.tif ModeOmbre=IgnE&lt;br /&gt;
mm3d Tawny Ortho-MEC-Malt/ RadiomEgal=0&lt;br /&gt;
mm3d Nuage2Ply MEC-Malt/NuageImProf_STD-MALT_Etape_9.xml Out=$name.ply Attr=Ortho-MEC-Malt/Orthophotomosaic.tif&lt;br /&gt;
&lt;br /&gt;
#Postprocessing to have easy to use geotifs&lt;br /&gt;
mkdir -p OUTPUT&lt;br /&gt;
outdir=$(pwd)/OUTPUT&lt;br /&gt;
cd MEC-Malt&lt;br /&gt;
finalimgs=($(ls Z_Num*_DeZoom1_STD-MALT.tif))&lt;br /&gt;
finalmsks=($(ls AutoMask_STD-MALT_Num*.tif))&lt;br /&gt;
finalcors=($(ls Correl_STD-MALT_Num*.tif))&lt;br /&gt;
lastimg=${finalimgs[-1]}&lt;br /&gt;
lastmsk=${finalmsks[-1]}&lt;br /&gt;
lastcor=${finalcors[-1]}&lt;br /&gt;
# strip the extension&lt;br /&gt;
laststr=&amp;quot;${lastimg%.*}&amp;quot;&lt;br /&gt;
maskstr=&amp;quot;${lastmsk%.*}&amp;quot;&lt;br /&gt;
corrstr=&amp;quot;${lastcor%.*}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cp -v $laststr.tfw $maskstr.tfw		&lt;br /&gt;
cp -v $laststr.tfw $corrstr.tfw&lt;br /&gt;
# now, assign the CRS we got to the mask, dem, and apply.&lt;br /&gt;
echo &amp;quot;Georeferencing correlation mask&amp;quot;&lt;br /&gt;
gdal_translate -a_nodata 0 -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; $lastcor $dir\_CORR.tif&lt;br /&gt;
echo &amp;quot;Creating temporary georeferenced DEM&amp;quot;&lt;br /&gt;
gdal_translate -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; $lastimg tmp_geo.tif&lt;br /&gt;
echo &amp;quot;Creating temporary georeferenced Mask&amp;quot;&lt;br /&gt;
gdal_translate -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; -a_nodata 0 $lastmsk tmp_msk.tif&lt;br /&gt;
cd ../&lt;br /&gt;
if [ -d &amp;quot;Ortho-MEC-Malt&amp;quot; ]; then &lt;br /&gt;
	cd Ortho-MEC-Malt&lt;br /&gt;
	echo &amp;quot;Creating double size correlation mask for ortho&amp;quot;&lt;br /&gt;
	gdal_translate -tr 15 15 -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; -a_nodata 0 ../MEC-Malt/$lastmsk tmp_mskDouble.tif&lt;br /&gt;
	echo &amp;quot;Creating temporary georeferenced ortho&amp;quot;&lt;br /&gt;
	gdal_translate -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; Orthophotomosaic.tif tmp_V123.tif&lt;br /&gt;
	cd ../&lt;br /&gt;
fi&lt;br /&gt;
cd MEC-Malt&lt;br /&gt;
# apply the mask&lt;br /&gt;
echo &amp;quot;Applying mask to georeferenced DEM&amp;quot;&lt;br /&gt;
gdal_calc.py -A tmp_msk.tif -B tmp_geo.tif --outfile=$dir\_Z.tif --calc=&amp;quot;B*(A&amp;gt;0)&amp;quot; --NoDataValue=-9999&lt;br /&gt;
cp -v $dir\_Z.tif $outdir/$datestr #might be good to code orig. wd here.&lt;br /&gt;
gdaldem hillshade $dir\_Z.tif $outdir/$datestr/$dir\_HS.tif&lt;br /&gt;
gdal_calc.py -A $dir\_CORR.tif --outfile=$outdir/$datestr/$dir\_CORR.tif --calc=&amp;quot;((A.astype(float)-127)/128)*100&amp;quot; --NoDataValue=-9999&lt;br /&gt;
#cp -v $dir\_CORR.tif $outdir/$datestr #might be good to code orig. wd here.&lt;br /&gt;
rm -v tmp_msk.tif tmp_geo.tif&lt;br /&gt;
rm -v $dir\_Z.tif $dir\_CORR.tif&lt;br /&gt;
cd ../&lt;br /&gt;
if [ -d &amp;quot;Ortho-MEC-Malt&amp;quot; ]; then 			&lt;br /&gt;
	cd Ortho-MEC-Malt			&lt;br /&gt;
	gdal_calc.py -B tmp_mskDouble.tif -A tmp_V123.tif --outfile=$dir\_V123.tif --calc=&amp;quot;((A!=255)*(A+1)+(A==255)*A)*(B&amp;gt;0)&amp;quot; --NoDataValue=0 --allBands=A&lt;br /&gt;
	#Expression complicated to solve real 0 values not being NoData and 255 no being +1-ed to 0&lt;br /&gt;
	rm -v tmp_V123.tif tmp_mskDouble.tif&lt;br /&gt;
	cp -v $dir\_V123.tif $outdir/$datestr&lt;br /&gt;
	rm -v $dir\_V123.tif&lt;br /&gt;
	cd ../&lt;br /&gt;
fi&lt;br /&gt;
echo &amp;quot;MMASTER processing is complete.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2503</id>
		<title>MMASTER</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2503"/>
				<updated>2017-05-31T13:52:21Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Preparing the data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This tutorial is there to give the workflow necessary to compute MMASTER DEMs from ASTER L1A data. The method is described in details in an upcoming paper (will be linked here as soon as it is published).&lt;br /&gt;
&lt;br /&gt;
==Requirement==&lt;br /&gt;
Part of the algorithms used in MMASTER rely on the ALGLIB library. Since it is licensed under the GNU GPL license, it cannot be part of the standard MicMac release (under CeCILL-B license). For that reason, it is necessary to compile MicMac from source, getting the IncludeALGLIB branch of the Git repository.&lt;br /&gt;
&lt;br /&gt;
You also need to have Gdal installed on your system.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
Any AST_L1A scene can work here, you can download them from [https://earthdata.nasa.gov/]. When chosing the file format, choose GeoTiff (NOT hdf).&lt;br /&gt;
&lt;br /&gt;
==Preparing the data==&lt;br /&gt;
Examples are given using a scene named ''AST_L1A_00302212004225011_20170204145459_24750'' and the UTM4N cartographic projection.&lt;br /&gt;
&lt;br /&gt;
First extract the GeoTiff L1A to a folder named SceneName/RawData (ex AST_L1A_00302212004225011_20170204145459_24750/RawData).&lt;br /&gt;
&lt;br /&gt;
Then from the folder where **SCENE_FOLDER** (ex AST_L1A_00302212004225011_20170204145459_24750/) is situated run :&lt;br /&gt;
*&amp;lt;pre&amp;gt;WorkFlowMMASTER.sh -s AST_L1A_00302212004225011_20170204145459_24750 -z &amp;quot;4 +north&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*extra options are possible with this file (given here with default values) :  &amp;lt;pre&amp;gt;-t 30 -f 1 -n false -c 0.7&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Processing==&lt;br /&gt;
The following code can be in a bash (.sh) file and directly ran.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#Fixed symboles&lt;br /&gt;
Nx=&amp;quot;_3N.xml&amp;quot;&lt;br /&gt;
Bx=&amp;quot;_3B.xml&amp;quot;&lt;br /&gt;
Nt=&amp;quot;_3N.tif&amp;quot;&lt;br /&gt;
Bt=&amp;quot;_3B.tif&amp;quot;&lt;br /&gt;
Bcor=&amp;quot;_3B.tif_corrected.tif&amp;quot;&lt;br /&gt;
RPC=&amp;quot;RPC_&amp;quot;&lt;br /&gt;
scene_set=0&lt;br /&gt;
utm_set=0&lt;br /&gt;
# add default values for ZoomF, RESTERR, CorThr and NoCorDEM&lt;br /&gt;
ZoomF=1&lt;br /&gt;
RESTERR=30&lt;br /&gt;
CorThr=0.7&lt;br /&gt;
NoCorDEM=false&lt;br /&gt;
&lt;br /&gt;
while getopts &amp;quot;s:z:c:nf:t:h&amp;quot; opt; do&lt;br /&gt;
	case $opt in&lt;br /&gt;
	h)&lt;br /&gt;
		echo &amp;quot;Run the second step in the MMASTER processing chain.&amp;quot;&lt;br /&gt;
		echo &amp;quot;usage: WorkflowMMASTER.sh -s SCENENAME -z 'UTMZONE' -f ZOOMF -t RASTERRES -h&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -s SCENENAME: Aster scenename/folder where data is located.&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -z UTMZONE  : UTM Zone of area of interest. Takes form 'NN +north(south)'&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -c CorThr   : Correlation Threshold for estimates of Z min and max (optional, default : 0.7)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -n NoCorDEM : Compute DEM with the uncorrected 3B image (computing with correction as well)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -f ZOOMF    : Run with different final resolution   (optional; default: 1)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -t RESTERR  : Run with different terrain resolution (optional; default: 30)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -h	  : displays this message and exits.&amp;quot;&lt;br /&gt;
		echo &amp;quot; &amp;quot;&lt;br /&gt;
		exit 0&lt;br /&gt;
		;;&lt;br /&gt;
	n)&lt;br /&gt;
		NoCorDEM=$OPTARG&lt;br /&gt;
		;;	&lt;br /&gt;
	s)&lt;br /&gt;
		name=$OPTARG&lt;br /&gt;
		scene_set=1&lt;br /&gt;
		;;&lt;br /&gt;
	z)&lt;br /&gt;
		UTM=$OPTARG&lt;br /&gt;
		utm_set=1&lt;br /&gt;
		;;    &lt;br /&gt;
	c)&lt;br /&gt;
		CorThr=$OPTARG&lt;br /&gt;
		echo &amp;quot;CorThr set to $CorThr&amp;quot;&lt;br /&gt;
		;;&lt;br /&gt;
	f)&lt;br /&gt;
		ZoomF=$OPTARG&lt;br /&gt;
		;;&lt;br /&gt;
	t)&lt;br /&gt;
		RESTERR=$OPTARG&lt;br /&gt;
		;;&lt;br /&gt;
	\?)&lt;br /&gt;
		echo &amp;quot;RunMicMacAster.sh: Invalid option: -$OPTARG&amp;quot; &amp;gt;&amp;amp;2&lt;br /&gt;
		exit 1&lt;br /&gt;
		;;&lt;br /&gt;
	:)&lt;br /&gt;
		echo &amp;quot; WorkflowMMASTER.sh: Option -$OPTARG requires an argument.&amp;quot; &amp;gt;&amp;amp;2&lt;br /&gt;
		exit 1&lt;br /&gt;
		;;&lt;br /&gt;
	esac&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
#Variable symboles&lt;br /&gt;
echo $name&lt;br /&gt;
echo $UTM&lt;br /&gt;
cd $name&lt;br /&gt;
pwd&lt;br /&gt;
cd RawData&lt;br /&gt;
pwd&lt;br /&gt;
mm3d SateLib ASTERGT2MM $name&lt;br /&gt;
cd ..&lt;br /&gt;
&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Bx 20 &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=-500 HMax=9000 expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Nx 20 &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=-500 HMax=9000 expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid &amp;quot;FalseColor_$name.xml&amp;quot; 20 &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=-500 HMax=9000 expDIMAP=1 expGrid=1&lt;br /&gt;
&lt;br /&gt;
mm3d Malt Ortho &amp;quot;.*$name(|_3N|_3B).tif&amp;quot; GRIBin ImMNT=&amp;quot;$name(_3N|_3B).tif&amp;quot; MOri=GRID ZMoy=2500 ZInc=2500 ZoomF=8 ZoomI=32 ResolTerrain=30 NbVI=2 EZA=1 Regul=0.1 DefCor=$CorThr DoOrtho=0 DirMEC=MEC-Mini&lt;br /&gt;
&lt;br /&gt;
gdalinfo -nomd -norat -noct -nofl -stats MEC-Mini/Z_Num6_DeZoom8_STD-MALT.tif &amp;gt; gdalinfo.txt&lt;br /&gt;
deminfo=$(grep -P 'Minimum+' gdalinfo.txt)&lt;br /&gt;
Min=$(echo $deminfo | cut -d, -f1 | tr -d ' ' | tr -d 'Minimum=' | xargs printf &amp;quot;%.0f&amp;quot;)&lt;br /&gt;
Max=$(echo $deminfo | cut -d, -f2 | tr -d ' ' | tr -d 'Maximum=' | xargs printf &amp;quot;%.0f&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
echo Min=$Min&lt;br /&gt;
echo Max=$Max&lt;br /&gt;
&lt;br /&gt;
#Filter obvious error in min/max (limit to earth min/max)&lt;br /&gt;
Min=$((($Min)&amp;lt;-420 ? -420 : $Min))&lt;br /&gt;
Max=$((($Max)&amp;gt;8850 ? 8850 : $Max))&lt;br /&gt;
#next 2 lines is basically if the auto min/max function failed / DEM is really bad, happen if a lot of sea or a lot of clouds&lt;br /&gt;
Min=$((($Min)&amp;gt;8850 ? -420 : $Min))&lt;br /&gt;
Max=$((($Max)&amp;lt;-420 ? 8850 : $Max))&lt;br /&gt;
#From min/max, compute the nb of grids needed in Z and the values for ZMoy and Zinc&lt;br /&gt;
DE=$(echo $Max - $Min| bc )&lt;br /&gt;
NbLvl=$(echo $DE/200| bc )&lt;br /&gt;
NbLvl=$((($NbLvl)&amp;lt;10 ? 10 : $NbLvl))&lt;br /&gt;
Mean=$(echo $Max + $Min| bc )&lt;br /&gt;
Mean=$(echo $Mean/2| bc )&lt;br /&gt;
Inc=$(echo $Max - $Mean| bc | xargs printf &amp;quot;%.0f&amp;quot;)&lt;br /&gt;
echo Min=$Min&lt;br /&gt;
echo Max=$Max&lt;br /&gt;
echo NbLvl=$NbLvl&lt;br /&gt;
echo Mean=$Mean&lt;br /&gt;
echo Inc=$Inc&lt;br /&gt;
echo Min Max NbLvl Mean Inc &amp;gt;&amp;gt; Stats.txt&lt;br /&gt;
echo $Min $Max $NbLvl $Mean $Inc &amp;gt;&amp;gt; Stats.txt&lt;br /&gt;
&lt;br /&gt;
#Re compute RPCs with updated min/max&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Bx $NbLvl &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=$Min HMax=$Max expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Nx $NbLvl &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=$Min HMax=$Max expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid &amp;quot;FalseColor_$name.xml&amp;quot; $NbLvl &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=$Min HMax=$Max expDIMAP=1 expGrid=1&lt;br /&gt;
&lt;br /&gt;
mm3d MMTestOrient $name$Bt $name$Nt GRIBin PB=1 MOri=GRID ZoomF=1 ZInc=$Inc ZMoy=$Mean&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# if we want to compute the uncorrected DEM&lt;br /&gt;
if [ &amp;quot;$NoCorDEM&amp;quot; = true ]; then #check variable name!&lt;br /&gt;
	mm3d Malt Ortho &amp;quot;.*$name(|_3N|_3B).tif&amp;quot; GRIBin ImMNT=&amp;quot;$name(_3N|_3B).tif&amp;quot; ImOrtho=&amp;quot;FalseColor_$name.tif&amp;quot; MOri=GRID ZInc=$Inc ZMoy=$Mean ZoomF=1 ZoomI=32 ResolTerrain=30 NbVI=2 EZA=1 DefCor=0 Regul=0.1 ResolOrtho=2 DirMEC=MEC-NoCor&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#Applying correction to the 3B image&lt;br /&gt;
mm3d SateLib ApplyParralaxCor $name$Bt GeoI-Px/Px2_Num16_DeZoom1_Geom-Im.tif FitASTER=1 ExportFitASTER=1&lt;br /&gt;
mkdir ImOrig&lt;br /&gt;
mv $name$Bt ImOrig/$name$Bt&lt;br /&gt;
mv $name$Bcor $name$Bt&lt;br /&gt;
&lt;br /&gt;
# Correlation with corrected image&lt;br /&gt;
mm3d Malt Ortho &amp;quot;.*$name(|_3N|_3B).tif&amp;quot; GRIBin ImMNT=&amp;quot;$name(_3N|_3B).tif&amp;quot; ImOrtho=&amp;quot;FalseColor_$name.tif&amp;quot; MOri=GRID ZInc=$Inc ZMoy=$Mean ZoomF=$ZoomF ZoomI=32 ResolTerrain=$RESTERR NbVI=2 EZA=1 DefCor=0 Regul=0.1 ResolOrtho=2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mm3d GrShade MEC-Malt/Z_Num9_DeZoom1_STD-MALT.tif ModeOmbre=IgnE&lt;br /&gt;
mm3d Tawny Ortho-MEC-Malt/ RadiomEgal=0&lt;br /&gt;
mm3d Nuage2Ply MEC-Malt/NuageImProf_STD-MALT_Etape_9.xml Out=$name.ply Attr=Ortho-MEC-Malt/Orthophotomosaic.tif&lt;br /&gt;
&lt;br /&gt;
#Postprocessing to have easy to use geotifs&lt;br /&gt;
mkdir -p OUTPUT&lt;br /&gt;
outdir=$(pwd)/OUTPUT&lt;br /&gt;
cd MEC-Malt&lt;br /&gt;
finalimgs=($(ls Z_Num*_DeZoom1_STD-MALT.tif))&lt;br /&gt;
finalmsks=($(ls AutoMask_STD-MALT_Num*.tif))&lt;br /&gt;
finalcors=($(ls Correl_STD-MALT_Num*.tif))&lt;br /&gt;
lastimg=${finalimgs[-1]}&lt;br /&gt;
lastmsk=${finalmsks[-1]}&lt;br /&gt;
lastcor=${finalcors[-1]}&lt;br /&gt;
# strip the extension&lt;br /&gt;
laststr=&amp;quot;${lastimg%.*}&amp;quot;&lt;br /&gt;
maskstr=&amp;quot;${lastmsk%.*}&amp;quot;&lt;br /&gt;
corrstr=&amp;quot;${lastcor%.*}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cp -v $laststr.tfw $maskstr.tfw		&lt;br /&gt;
cp -v $laststr.tfw $corrstr.tfw&lt;br /&gt;
# now, assign the CRS we got to the mask, dem, and apply.&lt;br /&gt;
echo &amp;quot;Georeferencing correlation mask&amp;quot;&lt;br /&gt;
gdal_translate -a_nodata 0 -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; $lastcor $dir\_CORR.tif&lt;br /&gt;
echo &amp;quot;Creating temporary georeferenced DEM&amp;quot;&lt;br /&gt;
gdal_translate -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; $lastimg tmp_geo.tif&lt;br /&gt;
echo &amp;quot;Creating temporary georeferenced Mask&amp;quot;&lt;br /&gt;
gdal_translate -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; -a_nodata 0 $lastmsk tmp_msk.tif&lt;br /&gt;
cd ../&lt;br /&gt;
if [ -d &amp;quot;Ortho-MEC-Malt&amp;quot; ]; then &lt;br /&gt;
	cd Ortho-MEC-Malt&lt;br /&gt;
	echo &amp;quot;Creating double size correlation mask for ortho&amp;quot;&lt;br /&gt;
	gdal_translate -tr 15 15 -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; -a_nodata 0 ../MEC-Malt/$lastmsk tmp_mskDouble.tif&lt;br /&gt;
	echo &amp;quot;Creating temporary georeferenced ortho&amp;quot;&lt;br /&gt;
	gdal_translate -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; Orthophotomosaic.tif tmp_V123.tif&lt;br /&gt;
	cd ../&lt;br /&gt;
fi&lt;br /&gt;
cd MEC-Malt&lt;br /&gt;
# apply the mask&lt;br /&gt;
echo &amp;quot;Applying mask to georeferenced DEM&amp;quot;&lt;br /&gt;
gdal_calc.py -A tmp_msk.tif -B tmp_geo.tif --outfile=$dir\_Z.tif --calc=&amp;quot;B*(A&amp;gt;0)&amp;quot; --NoDataValue=-9999&lt;br /&gt;
cp -v $dir\_Z.tif $outdir/$datestr #might be good to code orig. wd here.&lt;br /&gt;
gdaldem hillshade $dir\_Z.tif $outdir/$datestr/$dir\_HS.tif&lt;br /&gt;
gdal_calc.py -A $dir\_CORR.tif --outfile=$outdir/$datestr/$dir\_CORR.tif --calc=&amp;quot;((A.astype(float)-127)/128)*100&amp;quot; --NoDataValue=-9999&lt;br /&gt;
#cp -v $dir\_CORR.tif $outdir/$datestr #might be good to code orig. wd here.&lt;br /&gt;
rm -v tmp_msk.tif tmp_geo.tif&lt;br /&gt;
rm -v $dir\_Z.tif $dir\_CORR.tif&lt;br /&gt;
cd ../&lt;br /&gt;
if [ -d &amp;quot;Ortho-MEC-Malt&amp;quot; ]; then 			&lt;br /&gt;
	cd Ortho-MEC-Malt			&lt;br /&gt;
	gdal_calc.py -B tmp_mskDouble.tif -A tmp_V123.tif --outfile=$dir\_V123.tif --calc=&amp;quot;((A!=255)*(A+1)+(A==255)*A)*(B&amp;gt;0)&amp;quot; --NoDataValue=0 --allBands=A&lt;br /&gt;
	#Expression complicated to solve real 0 values not being NoData and 255 no being +1-ed to 0&lt;br /&gt;
	rm -v tmp_V123.tif tmp_mskDouble.tif&lt;br /&gt;
	cp -v $dir\_V123.tif $outdir/$datestr&lt;br /&gt;
	rm -v $dir\_V123.tif&lt;br /&gt;
	cd ../&lt;br /&gt;
fi&lt;br /&gt;
echo &amp;quot;MMASTER processing is complete.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2502</id>
		<title>MMASTER</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2502"/>
				<updated>2017-05-31T13:51:48Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Preparing the data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This tutorial is there to give the workflow necessary to compute MMASTER DEMs from ASTER L1A data. The method is described in details in an upcoming paper (will be linked here as soon as it is published).&lt;br /&gt;
&lt;br /&gt;
==Requirement==&lt;br /&gt;
Part of the algorithms used in MMASTER rely on the ALGLIB library. Since it is licensed under the GNU GPL license, it cannot be part of the standard MicMac release (under CeCILL-B license). For that reason, it is necessary to compile MicMac from source, getting the IncludeALGLIB branch of the Git repository.&lt;br /&gt;
&lt;br /&gt;
You also need to have Gdal installed on your system.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
Any AST_L1A scene can work here, you can download them from [https://earthdata.nasa.gov/]. When chosing the file format, choose GeoTiff (NOT hdf).&lt;br /&gt;
&lt;br /&gt;
==Preparing the data==&lt;br /&gt;
Examples are given using a scene named ''AST_L1A_00302212004225011_20170204145459_24750'' and the UTM4N cartographic projection.&lt;br /&gt;
&lt;br /&gt;
First extract the GeoTiff L1A to a folder named SceneName/RawData (ex AST_L1A_00302212004225011_20170204145459_24750/RawData).&lt;br /&gt;
&lt;br /&gt;
Then from the folder where **SCENE_FOLDER** (ex AST_L1A_00302212004225011_20170204145459_24750/) is situated run :&lt;br /&gt;
*&amp;lt;pre&amp;gt;WorkFlowMMASTER.sh -s AST_L1A_00302212004225011_20170204145459_24750 -z &amp;quot;4 +north&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*extra options (given here with default values) :  &amp;lt;pre&amp;gt;-t 30 -f 1 -n false -c 0.7&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Processing==&lt;br /&gt;
The following code can be in a bash (.sh) file and directly ran.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#Fixed symboles&lt;br /&gt;
Nx=&amp;quot;_3N.xml&amp;quot;&lt;br /&gt;
Bx=&amp;quot;_3B.xml&amp;quot;&lt;br /&gt;
Nt=&amp;quot;_3N.tif&amp;quot;&lt;br /&gt;
Bt=&amp;quot;_3B.tif&amp;quot;&lt;br /&gt;
Bcor=&amp;quot;_3B.tif_corrected.tif&amp;quot;&lt;br /&gt;
RPC=&amp;quot;RPC_&amp;quot;&lt;br /&gt;
scene_set=0&lt;br /&gt;
utm_set=0&lt;br /&gt;
# add default values for ZoomF, RESTERR, CorThr and NoCorDEM&lt;br /&gt;
ZoomF=1&lt;br /&gt;
RESTERR=30&lt;br /&gt;
CorThr=0.7&lt;br /&gt;
NoCorDEM=false&lt;br /&gt;
&lt;br /&gt;
while getopts &amp;quot;s:z:c:nf:t:h&amp;quot; opt; do&lt;br /&gt;
	case $opt in&lt;br /&gt;
	h)&lt;br /&gt;
		echo &amp;quot;Run the second step in the MMASTER processing chain.&amp;quot;&lt;br /&gt;
		echo &amp;quot;usage: WorkflowMMASTER.sh -s SCENENAME -z 'UTMZONE' -f ZOOMF -t RASTERRES -h&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -s SCENENAME: Aster scenename/folder where data is located.&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -z UTMZONE  : UTM Zone of area of interest. Takes form 'NN +north(south)'&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -c CorThr   : Correlation Threshold for estimates of Z min and max (optional, default : 0.7)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -n NoCorDEM : Compute DEM with the uncorrected 3B image (computing with correction as well)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -f ZOOMF    : Run with different final resolution   (optional; default: 1)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -t RESTERR  : Run with different terrain resolution (optional; default: 30)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -h	  : displays this message and exits.&amp;quot;&lt;br /&gt;
		echo &amp;quot; &amp;quot;&lt;br /&gt;
		exit 0&lt;br /&gt;
		;;&lt;br /&gt;
	n)&lt;br /&gt;
		NoCorDEM=$OPTARG&lt;br /&gt;
		;;	&lt;br /&gt;
	s)&lt;br /&gt;
		name=$OPTARG&lt;br /&gt;
		scene_set=1&lt;br /&gt;
		;;&lt;br /&gt;
	z)&lt;br /&gt;
		UTM=$OPTARG&lt;br /&gt;
		utm_set=1&lt;br /&gt;
		;;    &lt;br /&gt;
	c)&lt;br /&gt;
		CorThr=$OPTARG&lt;br /&gt;
		echo &amp;quot;CorThr set to $CorThr&amp;quot;&lt;br /&gt;
		;;&lt;br /&gt;
	f)&lt;br /&gt;
		ZoomF=$OPTARG&lt;br /&gt;
		;;&lt;br /&gt;
	t)&lt;br /&gt;
		RESTERR=$OPTARG&lt;br /&gt;
		;;&lt;br /&gt;
	\?)&lt;br /&gt;
		echo &amp;quot;RunMicMacAster.sh: Invalid option: -$OPTARG&amp;quot; &amp;gt;&amp;amp;2&lt;br /&gt;
		exit 1&lt;br /&gt;
		;;&lt;br /&gt;
	:)&lt;br /&gt;
		echo &amp;quot; WorkflowMMASTER.sh: Option -$OPTARG requires an argument.&amp;quot; &amp;gt;&amp;amp;2&lt;br /&gt;
		exit 1&lt;br /&gt;
		;;&lt;br /&gt;
	esac&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
#Variable symboles&lt;br /&gt;
echo $name&lt;br /&gt;
echo $UTM&lt;br /&gt;
cd $name&lt;br /&gt;
pwd&lt;br /&gt;
cd RawData&lt;br /&gt;
pwd&lt;br /&gt;
mm3d SateLib ASTERGT2MM $name&lt;br /&gt;
cd ..&lt;br /&gt;
&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Bx 20 &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=-500 HMax=9000 expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Nx 20 &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=-500 HMax=9000 expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid &amp;quot;FalseColor_$name.xml&amp;quot; 20 &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=-500 HMax=9000 expDIMAP=1 expGrid=1&lt;br /&gt;
&lt;br /&gt;
mm3d Malt Ortho &amp;quot;.*$name(|_3N|_3B).tif&amp;quot; GRIBin ImMNT=&amp;quot;$name(_3N|_3B).tif&amp;quot; MOri=GRID ZMoy=2500 ZInc=2500 ZoomF=8 ZoomI=32 ResolTerrain=30 NbVI=2 EZA=1 Regul=0.1 DefCor=$CorThr DoOrtho=0 DirMEC=MEC-Mini&lt;br /&gt;
&lt;br /&gt;
gdalinfo -nomd -norat -noct -nofl -stats MEC-Mini/Z_Num6_DeZoom8_STD-MALT.tif &amp;gt; gdalinfo.txt&lt;br /&gt;
deminfo=$(grep -P 'Minimum+' gdalinfo.txt)&lt;br /&gt;
Min=$(echo $deminfo | cut -d, -f1 | tr -d ' ' | tr -d 'Minimum=' | xargs printf &amp;quot;%.0f&amp;quot;)&lt;br /&gt;
Max=$(echo $deminfo | cut -d, -f2 | tr -d ' ' | tr -d 'Maximum=' | xargs printf &amp;quot;%.0f&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
echo Min=$Min&lt;br /&gt;
echo Max=$Max&lt;br /&gt;
&lt;br /&gt;
#Filter obvious error in min/max (limit to earth min/max)&lt;br /&gt;
Min=$((($Min)&amp;lt;-420 ? -420 : $Min))&lt;br /&gt;
Max=$((($Max)&amp;gt;8850 ? 8850 : $Max))&lt;br /&gt;
#next 2 lines is basically if the auto min/max function failed / DEM is really bad, happen if a lot of sea or a lot of clouds&lt;br /&gt;
Min=$((($Min)&amp;gt;8850 ? -420 : $Min))&lt;br /&gt;
Max=$((($Max)&amp;lt;-420 ? 8850 : $Max))&lt;br /&gt;
#From min/max, compute the nb of grids needed in Z and the values for ZMoy and Zinc&lt;br /&gt;
DE=$(echo $Max - $Min| bc )&lt;br /&gt;
NbLvl=$(echo $DE/200| bc )&lt;br /&gt;
NbLvl=$((($NbLvl)&amp;lt;10 ? 10 : $NbLvl))&lt;br /&gt;
Mean=$(echo $Max + $Min| bc )&lt;br /&gt;
Mean=$(echo $Mean/2| bc )&lt;br /&gt;
Inc=$(echo $Max - $Mean| bc | xargs printf &amp;quot;%.0f&amp;quot;)&lt;br /&gt;
echo Min=$Min&lt;br /&gt;
echo Max=$Max&lt;br /&gt;
echo NbLvl=$NbLvl&lt;br /&gt;
echo Mean=$Mean&lt;br /&gt;
echo Inc=$Inc&lt;br /&gt;
echo Min Max NbLvl Mean Inc &amp;gt;&amp;gt; Stats.txt&lt;br /&gt;
echo $Min $Max $NbLvl $Mean $Inc &amp;gt;&amp;gt; Stats.txt&lt;br /&gt;
&lt;br /&gt;
#Re compute RPCs with updated min/max&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Bx $NbLvl &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=$Min HMax=$Max expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Nx $NbLvl &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=$Min HMax=$Max expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid &amp;quot;FalseColor_$name.xml&amp;quot; $NbLvl &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=$Min HMax=$Max expDIMAP=1 expGrid=1&lt;br /&gt;
&lt;br /&gt;
mm3d MMTestOrient $name$Bt $name$Nt GRIBin PB=1 MOri=GRID ZoomF=1 ZInc=$Inc ZMoy=$Mean&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# if we want to compute the uncorrected DEM&lt;br /&gt;
if [ &amp;quot;$NoCorDEM&amp;quot; = true ]; then #check variable name!&lt;br /&gt;
	mm3d Malt Ortho &amp;quot;.*$name(|_3N|_3B).tif&amp;quot; GRIBin ImMNT=&amp;quot;$name(_3N|_3B).tif&amp;quot; ImOrtho=&amp;quot;FalseColor_$name.tif&amp;quot; MOri=GRID ZInc=$Inc ZMoy=$Mean ZoomF=1 ZoomI=32 ResolTerrain=30 NbVI=2 EZA=1 DefCor=0 Regul=0.1 ResolOrtho=2 DirMEC=MEC-NoCor&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#Applying correction to the 3B image&lt;br /&gt;
mm3d SateLib ApplyParralaxCor $name$Bt GeoI-Px/Px2_Num16_DeZoom1_Geom-Im.tif FitASTER=1 ExportFitASTER=1&lt;br /&gt;
mkdir ImOrig&lt;br /&gt;
mv $name$Bt ImOrig/$name$Bt&lt;br /&gt;
mv $name$Bcor $name$Bt&lt;br /&gt;
&lt;br /&gt;
# Correlation with corrected image&lt;br /&gt;
mm3d Malt Ortho &amp;quot;.*$name(|_3N|_3B).tif&amp;quot; GRIBin ImMNT=&amp;quot;$name(_3N|_3B).tif&amp;quot; ImOrtho=&amp;quot;FalseColor_$name.tif&amp;quot; MOri=GRID ZInc=$Inc ZMoy=$Mean ZoomF=$ZoomF ZoomI=32 ResolTerrain=$RESTERR NbVI=2 EZA=1 DefCor=0 Regul=0.1 ResolOrtho=2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mm3d GrShade MEC-Malt/Z_Num9_DeZoom1_STD-MALT.tif ModeOmbre=IgnE&lt;br /&gt;
mm3d Tawny Ortho-MEC-Malt/ RadiomEgal=0&lt;br /&gt;
mm3d Nuage2Ply MEC-Malt/NuageImProf_STD-MALT_Etape_9.xml Out=$name.ply Attr=Ortho-MEC-Malt/Orthophotomosaic.tif&lt;br /&gt;
&lt;br /&gt;
#Postprocessing to have easy to use geotifs&lt;br /&gt;
mkdir -p OUTPUT&lt;br /&gt;
outdir=$(pwd)/OUTPUT&lt;br /&gt;
cd MEC-Malt&lt;br /&gt;
finalimgs=($(ls Z_Num*_DeZoom1_STD-MALT.tif))&lt;br /&gt;
finalmsks=($(ls AutoMask_STD-MALT_Num*.tif))&lt;br /&gt;
finalcors=($(ls Correl_STD-MALT_Num*.tif))&lt;br /&gt;
lastimg=${finalimgs[-1]}&lt;br /&gt;
lastmsk=${finalmsks[-1]}&lt;br /&gt;
lastcor=${finalcors[-1]}&lt;br /&gt;
# strip the extension&lt;br /&gt;
laststr=&amp;quot;${lastimg%.*}&amp;quot;&lt;br /&gt;
maskstr=&amp;quot;${lastmsk%.*}&amp;quot;&lt;br /&gt;
corrstr=&amp;quot;${lastcor%.*}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cp -v $laststr.tfw $maskstr.tfw		&lt;br /&gt;
cp -v $laststr.tfw $corrstr.tfw&lt;br /&gt;
# now, assign the CRS we got to the mask, dem, and apply.&lt;br /&gt;
echo &amp;quot;Georeferencing correlation mask&amp;quot;&lt;br /&gt;
gdal_translate -a_nodata 0 -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; $lastcor $dir\_CORR.tif&lt;br /&gt;
echo &amp;quot;Creating temporary georeferenced DEM&amp;quot;&lt;br /&gt;
gdal_translate -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; $lastimg tmp_geo.tif&lt;br /&gt;
echo &amp;quot;Creating temporary georeferenced Mask&amp;quot;&lt;br /&gt;
gdal_translate -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; -a_nodata 0 $lastmsk tmp_msk.tif&lt;br /&gt;
cd ../&lt;br /&gt;
if [ -d &amp;quot;Ortho-MEC-Malt&amp;quot; ]; then &lt;br /&gt;
	cd Ortho-MEC-Malt&lt;br /&gt;
	echo &amp;quot;Creating double size correlation mask for ortho&amp;quot;&lt;br /&gt;
	gdal_translate -tr 15 15 -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; -a_nodata 0 ../MEC-Malt/$lastmsk tmp_mskDouble.tif&lt;br /&gt;
	echo &amp;quot;Creating temporary georeferenced ortho&amp;quot;&lt;br /&gt;
	gdal_translate -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; Orthophotomosaic.tif tmp_V123.tif&lt;br /&gt;
	cd ../&lt;br /&gt;
fi&lt;br /&gt;
cd MEC-Malt&lt;br /&gt;
# apply the mask&lt;br /&gt;
echo &amp;quot;Applying mask to georeferenced DEM&amp;quot;&lt;br /&gt;
gdal_calc.py -A tmp_msk.tif -B tmp_geo.tif --outfile=$dir\_Z.tif --calc=&amp;quot;B*(A&amp;gt;0)&amp;quot; --NoDataValue=-9999&lt;br /&gt;
cp -v $dir\_Z.tif $outdir/$datestr #might be good to code orig. wd here.&lt;br /&gt;
gdaldem hillshade $dir\_Z.tif $outdir/$datestr/$dir\_HS.tif&lt;br /&gt;
gdal_calc.py -A $dir\_CORR.tif --outfile=$outdir/$datestr/$dir\_CORR.tif --calc=&amp;quot;((A.astype(float)-127)/128)*100&amp;quot; --NoDataValue=-9999&lt;br /&gt;
#cp -v $dir\_CORR.tif $outdir/$datestr #might be good to code orig. wd here.&lt;br /&gt;
rm -v tmp_msk.tif tmp_geo.tif&lt;br /&gt;
rm -v $dir\_Z.tif $dir\_CORR.tif&lt;br /&gt;
cd ../&lt;br /&gt;
if [ -d &amp;quot;Ortho-MEC-Malt&amp;quot; ]; then 			&lt;br /&gt;
	cd Ortho-MEC-Malt			&lt;br /&gt;
	gdal_calc.py -B tmp_mskDouble.tif -A tmp_V123.tif --outfile=$dir\_V123.tif --calc=&amp;quot;((A!=255)*(A+1)+(A==255)*A)*(B&amp;gt;0)&amp;quot; --NoDataValue=0 --allBands=A&lt;br /&gt;
	#Expression complicated to solve real 0 values not being NoData and 255 no being +1-ed to 0&lt;br /&gt;
	rm -v tmp_V123.tif tmp_mskDouble.tif&lt;br /&gt;
	cp -v $dir\_V123.tif $outdir/$datestr&lt;br /&gt;
	rm -v $dir\_V123.tif&lt;br /&gt;
	cd ../&lt;br /&gt;
fi&lt;br /&gt;
echo &amp;quot;MMASTER processing is complete.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2501</id>
		<title>MMASTER</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MMASTER&amp;diff=2501"/>
				<updated>2017-05-31T13:51:32Z</updated>
		
		<summary type="html">&lt;p&gt;Luc Girod : /* Preparing the data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This tutorial is there to give the workflow necessary to compute MMASTER DEMs from ASTER L1A data. The method is described in details in an upcoming paper (will be linked here as soon as it is published).&lt;br /&gt;
&lt;br /&gt;
==Requirement==&lt;br /&gt;
Part of the algorithms used in MMASTER rely on the ALGLIB library. Since it is licensed under the GNU GPL license, it cannot be part of the standard MicMac release (under CeCILL-B license). For that reason, it is necessary to compile MicMac from source, getting the IncludeALGLIB branch of the Git repository.&lt;br /&gt;
&lt;br /&gt;
You also need to have Gdal installed on your system.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
Any AST_L1A scene can work here, you can download them from [https://earthdata.nasa.gov/]. When chosing the file format, choose GeoTiff (NOT hdf).&lt;br /&gt;
&lt;br /&gt;
==Preparing the data==&lt;br /&gt;
Ecaples are given using a scenenamed ''AST_L1A_00302212004225011_20170204145459_24750'' and the UTM4N cartographic projection.&lt;br /&gt;
&lt;br /&gt;
First extract the GeoTiff L1A to a folder named SceneName/RawData (ex AST_L1A_00302212004225011_20170204145459_24750/RawData).&lt;br /&gt;
&lt;br /&gt;
Then from the folder where **SCENE_FOLDER** (ex AST_L1A_00302212004225011_20170204145459_24750/) is situated run :&lt;br /&gt;
*&amp;lt;pre&amp;gt;WorkFlowMMASTER.sh -s AST_L1A_00302212004225011_20170204145459_24750 -z &amp;quot;4 +north&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*extra options (given here with default values) :  &amp;lt;pre&amp;gt;-t 30 -f 1 -n false -c 0.7&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Processing==&lt;br /&gt;
The following code can be in a bash (.sh) file and directly ran.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#Fixed symboles&lt;br /&gt;
Nx=&amp;quot;_3N.xml&amp;quot;&lt;br /&gt;
Bx=&amp;quot;_3B.xml&amp;quot;&lt;br /&gt;
Nt=&amp;quot;_3N.tif&amp;quot;&lt;br /&gt;
Bt=&amp;quot;_3B.tif&amp;quot;&lt;br /&gt;
Bcor=&amp;quot;_3B.tif_corrected.tif&amp;quot;&lt;br /&gt;
RPC=&amp;quot;RPC_&amp;quot;&lt;br /&gt;
scene_set=0&lt;br /&gt;
utm_set=0&lt;br /&gt;
# add default values for ZoomF, RESTERR, CorThr and NoCorDEM&lt;br /&gt;
ZoomF=1&lt;br /&gt;
RESTERR=30&lt;br /&gt;
CorThr=0.7&lt;br /&gt;
NoCorDEM=false&lt;br /&gt;
&lt;br /&gt;
while getopts &amp;quot;s:z:c:nf:t:h&amp;quot; opt; do&lt;br /&gt;
	case $opt in&lt;br /&gt;
	h)&lt;br /&gt;
		echo &amp;quot;Run the second step in the MMASTER processing chain.&amp;quot;&lt;br /&gt;
		echo &amp;quot;usage: WorkflowMMASTER.sh -s SCENENAME -z 'UTMZONE' -f ZOOMF -t RASTERRES -h&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -s SCENENAME: Aster scenename/folder where data is located.&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -z UTMZONE  : UTM Zone of area of interest. Takes form 'NN +north(south)'&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -c CorThr   : Correlation Threshold for estimates of Z min and max (optional, default : 0.7)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -n NoCorDEM : Compute DEM with the uncorrected 3B image (computing with correction as well)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -f ZOOMF    : Run with different final resolution   (optional; default: 1)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -t RESTERR  : Run with different terrain resolution (optional; default: 30)&amp;quot;&lt;br /&gt;
		echo &amp;quot;    -h	  : displays this message and exits.&amp;quot;&lt;br /&gt;
		echo &amp;quot; &amp;quot;&lt;br /&gt;
		exit 0&lt;br /&gt;
		;;&lt;br /&gt;
	n)&lt;br /&gt;
		NoCorDEM=$OPTARG&lt;br /&gt;
		;;	&lt;br /&gt;
	s)&lt;br /&gt;
		name=$OPTARG&lt;br /&gt;
		scene_set=1&lt;br /&gt;
		;;&lt;br /&gt;
	z)&lt;br /&gt;
		UTM=$OPTARG&lt;br /&gt;
		utm_set=1&lt;br /&gt;
		;;    &lt;br /&gt;
	c)&lt;br /&gt;
		CorThr=$OPTARG&lt;br /&gt;
		echo &amp;quot;CorThr set to $CorThr&amp;quot;&lt;br /&gt;
		;;&lt;br /&gt;
	f)&lt;br /&gt;
		ZoomF=$OPTARG&lt;br /&gt;
		;;&lt;br /&gt;
	t)&lt;br /&gt;
		RESTERR=$OPTARG&lt;br /&gt;
		;;&lt;br /&gt;
	\?)&lt;br /&gt;
		echo &amp;quot;RunMicMacAster.sh: Invalid option: -$OPTARG&amp;quot; &amp;gt;&amp;amp;2&lt;br /&gt;
		exit 1&lt;br /&gt;
		;;&lt;br /&gt;
	:)&lt;br /&gt;
		echo &amp;quot; WorkflowMMASTER.sh: Option -$OPTARG requires an argument.&amp;quot; &amp;gt;&amp;amp;2&lt;br /&gt;
		exit 1&lt;br /&gt;
		;;&lt;br /&gt;
	esac&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
#Variable symboles&lt;br /&gt;
echo $name&lt;br /&gt;
echo $UTM&lt;br /&gt;
cd $name&lt;br /&gt;
pwd&lt;br /&gt;
cd RawData&lt;br /&gt;
pwd&lt;br /&gt;
mm3d SateLib ASTERGT2MM $name&lt;br /&gt;
cd ..&lt;br /&gt;
&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Bx 20 &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=-500 HMax=9000 expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Nx 20 &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=-500 HMax=9000 expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid &amp;quot;FalseColor_$name.xml&amp;quot; 20 &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=-500 HMax=9000 expDIMAP=1 expGrid=1&lt;br /&gt;
&lt;br /&gt;
mm3d Malt Ortho &amp;quot;.*$name(|_3N|_3B).tif&amp;quot; GRIBin ImMNT=&amp;quot;$name(_3N|_3B).tif&amp;quot; MOri=GRID ZMoy=2500 ZInc=2500 ZoomF=8 ZoomI=32 ResolTerrain=30 NbVI=2 EZA=1 Regul=0.1 DefCor=$CorThr DoOrtho=0 DirMEC=MEC-Mini&lt;br /&gt;
&lt;br /&gt;
gdalinfo -nomd -norat -noct -nofl -stats MEC-Mini/Z_Num6_DeZoom8_STD-MALT.tif &amp;gt; gdalinfo.txt&lt;br /&gt;
deminfo=$(grep -P 'Minimum+' gdalinfo.txt)&lt;br /&gt;
Min=$(echo $deminfo | cut -d, -f1 | tr -d ' ' | tr -d 'Minimum=' | xargs printf &amp;quot;%.0f&amp;quot;)&lt;br /&gt;
Max=$(echo $deminfo | cut -d, -f2 | tr -d ' ' | tr -d 'Maximum=' | xargs printf &amp;quot;%.0f&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
echo Min=$Min&lt;br /&gt;
echo Max=$Max&lt;br /&gt;
&lt;br /&gt;
#Filter obvious error in min/max (limit to earth min/max)&lt;br /&gt;
Min=$((($Min)&amp;lt;-420 ? -420 : $Min))&lt;br /&gt;
Max=$((($Max)&amp;gt;8850 ? 8850 : $Max))&lt;br /&gt;
#next 2 lines is basically if the auto min/max function failed / DEM is really bad, happen if a lot of sea or a lot of clouds&lt;br /&gt;
Min=$((($Min)&amp;gt;8850 ? -420 : $Min))&lt;br /&gt;
Max=$((($Max)&amp;lt;-420 ? 8850 : $Max))&lt;br /&gt;
#From min/max, compute the nb of grids needed in Z and the values for ZMoy and Zinc&lt;br /&gt;
DE=$(echo $Max - $Min| bc )&lt;br /&gt;
NbLvl=$(echo $DE/200| bc )&lt;br /&gt;
NbLvl=$((($NbLvl)&amp;lt;10 ? 10 : $NbLvl))&lt;br /&gt;
Mean=$(echo $Max + $Min| bc )&lt;br /&gt;
Mean=$(echo $Mean/2| bc )&lt;br /&gt;
Inc=$(echo $Max - $Mean| bc | xargs printf &amp;quot;%.0f&amp;quot;)&lt;br /&gt;
echo Min=$Min&lt;br /&gt;
echo Max=$Max&lt;br /&gt;
echo NbLvl=$NbLvl&lt;br /&gt;
echo Mean=$Mean&lt;br /&gt;
echo Inc=$Inc&lt;br /&gt;
echo Min Max NbLvl Mean Inc &amp;gt;&amp;gt; Stats.txt&lt;br /&gt;
echo $Min $Max $NbLvl $Mean $Inc &amp;gt;&amp;gt; Stats.txt&lt;br /&gt;
&lt;br /&gt;
#Re compute RPCs with updated min/max&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Bx $NbLvl &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=$Min HMax=$Max expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid $name$Nx $NbLvl &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=$Min HMax=$Max expDIMAP=1 expGrid=1&lt;br /&gt;
mm3d SateLib Aster2Grid &amp;quot;FalseColor_$name.xml&amp;quot; $NbLvl &amp;quot;+proj=utm +zone=$UTM +datum=WGS84 +units=m +no_defs&amp;quot; HMin=$Min HMax=$Max expDIMAP=1 expGrid=1&lt;br /&gt;
&lt;br /&gt;
mm3d MMTestOrient $name$Bt $name$Nt GRIBin PB=1 MOri=GRID ZoomF=1 ZInc=$Inc ZMoy=$Mean&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# if we want to compute the uncorrected DEM&lt;br /&gt;
if [ &amp;quot;$NoCorDEM&amp;quot; = true ]; then #check variable name!&lt;br /&gt;
	mm3d Malt Ortho &amp;quot;.*$name(|_3N|_3B).tif&amp;quot; GRIBin ImMNT=&amp;quot;$name(_3N|_3B).tif&amp;quot; ImOrtho=&amp;quot;FalseColor_$name.tif&amp;quot; MOri=GRID ZInc=$Inc ZMoy=$Mean ZoomF=1 ZoomI=32 ResolTerrain=30 NbVI=2 EZA=1 DefCor=0 Regul=0.1 ResolOrtho=2 DirMEC=MEC-NoCor&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#Applying correction to the 3B image&lt;br /&gt;
mm3d SateLib ApplyParralaxCor $name$Bt GeoI-Px/Px2_Num16_DeZoom1_Geom-Im.tif FitASTER=1 ExportFitASTER=1&lt;br /&gt;
mkdir ImOrig&lt;br /&gt;
mv $name$Bt ImOrig/$name$Bt&lt;br /&gt;
mv $name$Bcor $name$Bt&lt;br /&gt;
&lt;br /&gt;
# Correlation with corrected image&lt;br /&gt;
mm3d Malt Ortho &amp;quot;.*$name(|_3N|_3B).tif&amp;quot; GRIBin ImMNT=&amp;quot;$name(_3N|_3B).tif&amp;quot; ImOrtho=&amp;quot;FalseColor_$name.tif&amp;quot; MOri=GRID ZInc=$Inc ZMoy=$Mean ZoomF=$ZoomF ZoomI=32 ResolTerrain=$RESTERR NbVI=2 EZA=1 DefCor=0 Regul=0.1 ResolOrtho=2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mm3d GrShade MEC-Malt/Z_Num9_DeZoom1_STD-MALT.tif ModeOmbre=IgnE&lt;br /&gt;
mm3d Tawny Ortho-MEC-Malt/ RadiomEgal=0&lt;br /&gt;
mm3d Nuage2Ply MEC-Malt/NuageImProf_STD-MALT_Etape_9.xml Out=$name.ply Attr=Ortho-MEC-Malt/Orthophotomosaic.tif&lt;br /&gt;
&lt;br /&gt;
#Postprocessing to have easy to use geotifs&lt;br /&gt;
mkdir -p OUTPUT&lt;br /&gt;
outdir=$(pwd)/OUTPUT&lt;br /&gt;
cd MEC-Malt&lt;br /&gt;
finalimgs=($(ls Z_Num*_DeZoom1_STD-MALT.tif))&lt;br /&gt;
finalmsks=($(ls AutoMask_STD-MALT_Num*.tif))&lt;br /&gt;
finalcors=($(ls Correl_STD-MALT_Num*.tif))&lt;br /&gt;
lastimg=${finalimgs[-1]}&lt;br /&gt;
lastmsk=${finalmsks[-1]}&lt;br /&gt;
lastcor=${finalcors[-1]}&lt;br /&gt;
# strip the extension&lt;br /&gt;
laststr=&amp;quot;${lastimg%.*}&amp;quot;&lt;br /&gt;
maskstr=&amp;quot;${lastmsk%.*}&amp;quot;&lt;br /&gt;
corrstr=&amp;quot;${lastcor%.*}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cp -v $laststr.tfw $maskstr.tfw		&lt;br /&gt;
cp -v $laststr.tfw $corrstr.tfw&lt;br /&gt;
# now, assign the CRS we got to the mask, dem, and apply.&lt;br /&gt;
echo &amp;quot;Georeferencing correlation mask&amp;quot;&lt;br /&gt;
gdal_translate -a_nodata 0 -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; $lastcor $dir\_CORR.tif&lt;br /&gt;
echo &amp;quot;Creating temporary georeferenced DEM&amp;quot;&lt;br /&gt;
gdal_translate -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; $lastimg tmp_geo.tif&lt;br /&gt;
echo &amp;quot;Creating temporary georeferenced Mask&amp;quot;&lt;br /&gt;
gdal_translate -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; -a_nodata 0 $lastmsk tmp_msk.tif&lt;br /&gt;
cd ../&lt;br /&gt;
if [ -d &amp;quot;Ortho-MEC-Malt&amp;quot; ]; then &lt;br /&gt;
	cd Ortho-MEC-Malt&lt;br /&gt;
	echo &amp;quot;Creating double size correlation mask for ortho&amp;quot;&lt;br /&gt;
	gdal_translate -tr 15 15 -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; -a_nodata 0 ../MEC-Malt/$lastmsk tmp_mskDouble.tif&lt;br /&gt;
	echo &amp;quot;Creating temporary georeferenced ortho&amp;quot;&lt;br /&gt;
	gdal_translate -a_srs &amp;quot;+proj=utm +zone=$UTM +ellps=WGS84 +datum=WGS84 +units=m +no_defs&amp;quot; Orthophotomosaic.tif tmp_V123.tif&lt;br /&gt;
	cd ../&lt;br /&gt;
fi&lt;br /&gt;
cd MEC-Malt&lt;br /&gt;
# apply the mask&lt;br /&gt;
echo &amp;quot;Applying mask to georeferenced DEM&amp;quot;&lt;br /&gt;
gdal_calc.py -A tmp_msk.tif -B tmp_geo.tif --outfile=$dir\_Z.tif --calc=&amp;quot;B*(A&amp;gt;0)&amp;quot; --NoDataValue=-9999&lt;br /&gt;
cp -v $dir\_Z.tif $outdir/$datestr #might be good to code orig. wd here.&lt;br /&gt;
gdaldem hillshade $dir\_Z.tif $outdir/$datestr/$dir\_HS.tif&lt;br /&gt;
gdal_calc.py -A $dir\_CORR.tif --outfile=$outdir/$datestr/$dir\_CORR.tif --calc=&amp;quot;((A.astype(float)-127)/128)*100&amp;quot; --NoDataValue=-9999&lt;br /&gt;
#cp -v $dir\_CORR.tif $outdir/$datestr #might be good to code orig. wd here.&lt;br /&gt;
rm -v tmp_msk.tif tmp_geo.tif&lt;br /&gt;
rm -v $dir\_Z.tif $dir\_CORR.tif&lt;br /&gt;
cd ../&lt;br /&gt;
if [ -d &amp;quot;Ortho-MEC-Malt&amp;quot; ]; then 			&lt;br /&gt;
	cd Ortho-MEC-Malt			&lt;br /&gt;
	gdal_calc.py -B tmp_mskDouble.tif -A tmp_V123.tif --outfile=$dir\_V123.tif --calc=&amp;quot;((A!=255)*(A+1)+(A==255)*A)*(B&amp;gt;0)&amp;quot; --NoDataValue=0 --allBands=A&lt;br /&gt;
	#Expression complicated to solve real 0 values not being NoData and 255 no being +1-ed to 0&lt;br /&gt;
	rm -v tmp_V123.tif tmp_mskDouble.tif&lt;br /&gt;
	cp -v $dir\_V123.tif $outdir/$datestr&lt;br /&gt;
	rm -v $dir\_V123.tif&lt;br /&gt;
	cd ../&lt;br /&gt;
fi&lt;br /&gt;
echo &amp;quot;MMASTER processing is complete.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luc Girod</name></author>	</entry>

	</feed>