<?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=Lilacandolle</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=Lilacandolle"/>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php/Sp%C3%A9cial:Contributions/Lilacandolle"/>
		<updated>2026-04-15T07:25:58Z</updated>
		<subtitle>Contributions de l’utilisateur</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MicMacRoom_Tutorial:_03_Pierrerue&amp;diff=3287</id>
		<title>MicMacRoom Tutorial: 03 Pierrerue</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MicMacRoom_Tutorial:_03_Pierrerue&amp;diff=3287"/>
				<updated>2024-05-15T16:53:02Z</updated>
		
		<summary type="html">&lt;p&gt;Lilacandolle : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px|link=Tutorials]] [[MicMacRoom Tutorials|Tutorials index]]&lt;br /&gt;
==Description==&lt;br /&gt;
In this tutorial, we will approach general concepts, basics tools, and how to process an image dataset with MicMacRoom in order to obtain a georeferenced orthophoto. The integration of MicMac in the Meshroom graphic interface can be downloaded following the tutorial at &amp;lt;code&amp;gt;https://github.com/alicevision/MeshroomMicMac&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;. This tutorial is based on the content of the [[Pierrerue tutorial]].&lt;br /&gt;
==Download==&lt;br /&gt;
You can find this dataset at &amp;lt;code&amp;gt;https://micmac.ensg.eu/data/pierrerue_dataset.zip&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Once you have downloaded it, you have to unzip the &amp;quot;.zip&amp;quot; archive.&lt;br /&gt;
==Tutorial==&lt;br /&gt;
===From the set up of the images to the visualization of relative orientation===&lt;br /&gt;
With this pipeline, &lt;br /&gt;
Open the 'File' tab in MicMac and launch a new pipeline with the template &amp;quot;pierrerue_part1&amp;quot;. Check if the pipeline is empty. If not, you can erase the old dataset with &amp;quot;Remove All Images&amp;quot;. Don't forget to save your new project: MicMac will give to your project a default name that you cannot change. Then drop all your images and dataset on the file of the project, and drop at least one image on the interface.&lt;br /&gt;
Then, press on the start button, you should obtain a .ply file in the Apericloud folder. It is possible to open this file with a software like CloudCompare to visualize the relative orientation.&lt;br /&gt;
===Set up the images into the coordinates system of the support points===&lt;br /&gt;
This step cannot be completed with MicMac Meshroom, you have to follow instructions at &amp;lt;code&amp;gt;https://micmac.ensg.eu/index.php/Pierrerue_tutorial#Measurement_process&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;. Then, launch a new pipeline with the template &amp;quot;pierrerue_part2&amp;quot;. It will first run the computation of 3D similarity and open a window where you have to validate the points left, following the same method as for SaisieAppuisInitQT. When this step is completed, you can launch the end of the pipeline, which will compute absolute orientation and final adjustment.&lt;br /&gt;
The third pipeline, namesd &amp;quot;pierrerue_part3&amp;quot; allows to create a 3D mask and launch 3D reconstruction.&lt;/div&gt;</summary>
		<author><name>Lilacandolle</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MicMacRoom_Tutorial:_03_Pierrerue&amp;diff=3286</id>
		<title>MicMacRoom Tutorial: 03 Pierrerue</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MicMacRoom_Tutorial:_03_Pierrerue&amp;diff=3286"/>
				<updated>2024-05-15T16:27:02Z</updated>
		
		<summary type="html">&lt;p&gt;Lilacandolle : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px|link=Tutorials]] [[MicMacRoom Tutorials|Tutorials index]]&lt;br /&gt;
==Description==&lt;br /&gt;
In this tutorial, we will approach general concepts, basics tools, and how to process an image dataset with MicMacRoom in order to obtain a georeferenced orthophoto. The integration of MicMac in the Meshroom graphic interface can be downloaded following the tutorial at &amp;lt;code&amp;gt;https://github.com/alicevision/MeshroomMicMac&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;. This tutorial is based on the content of the [[Pierrerue tutorial]].&lt;br /&gt;
==Download==&lt;br /&gt;
You can find this dataset at &amp;lt;code&amp;gt;https://micmac.ensg.eu/data/pierrerue_dataset.zip&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Once you have downloaded it, you have to unzip the &amp;quot;.zip&amp;quot; archive.&lt;br /&gt;
==Tutorial==&lt;br /&gt;
===From the set up of the images to the visualization of relative orientation===&lt;br /&gt;
With this pipeline, &lt;br /&gt;
Open the 'File' tab in MicMac and launch a new pipeline with the template &amp;quot;pierrerue_part1&amp;quot;. Check if the pipeline is empty. If not, you can erase the old dataset with &amp;quot;Remove All Images&amp;quot;. Don't forget to save your new project: MicMac will give to your project a default name that you cannot change. Then drop all your images and dataset on the file of the project, and drop at least one image on the interface.&lt;br /&gt;
Then, press on the start button, you should obtain a .ply file in the Apericloud folder. It is possible to open this file with a software like CloudCompare to visualize the relative orientation.&lt;br /&gt;
===Set up the images into the coordinates system of the support points===&lt;/div&gt;</summary>
		<author><name>Lilacandolle</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=MicMacRoom_Tutorial:_03_Pierrerue&amp;diff=3276</id>
		<title>MicMacRoom Tutorial: 03 Pierrerue</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=MicMacRoom_Tutorial:_03_Pierrerue&amp;diff=3276"/>
				<updated>2024-05-14T12:52:24Z</updated>
		
		<summary type="html">&lt;p&gt;Lilacandolle : Page créée avec « link=Tutorials Tutorials index ==Description== In this tutorial, we will approach general concepts, basics tools, a... »&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:picto-liste.png|25px|link=Tutorials]] [[MicMacRoom Tutorials|Tutorials index]]&lt;br /&gt;
==Description==&lt;br /&gt;
In this tutorial, we will approach general concepts, basics tools, and how to process an image dataset with MicMacRoom in order to obtain a georeferenced orthophoto. This tutorial is based on the content of the [[Pierrerue tutorial]]&lt;/div&gt;</summary>
		<author><name>Lilacandolle</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=RepLocBascule&amp;diff=3201</id>
		<title>RepLocBascule</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=RepLocBascule&amp;diff=3201"/>
				<updated>2024-04-24T11:46:27Z</updated>
		
		<summary type="html">&lt;p&gt;Lilacandolle : /* Syntax */&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;
RepLocBascule is a tool useful to define a local repair without changing the orientation.&lt;br /&gt;
&lt;br /&gt;
===Syntax===&lt;br /&gt;
The global syntax for RepLocBascule is &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d RepLocBascule FullName InputOrientation XMLMeasuresFile OutputXMLFile NamedArgs&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Help=== &lt;br /&gt;
You can access to the help by typing :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d RepLocBascule -help&amp;lt;/pre&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mandatory unnamed args : &lt;br /&gt;
*string :: {Full name (Dir+Pat)}&lt;br /&gt;
*string :: {Input orientation}&lt;br /&gt;
*string :: {Image measures xml file, set &amp;quot;HOR&amp;quot; if horizontal line is wanted, &amp;quot;NONE&amp;quot; if unused }&lt;br /&gt;
*string :: {Output xml file}&lt;br /&gt;
&lt;br /&gt;
Named args : &lt;br /&gt;
*[Name=ExpTxt] bool :: {Are tie points in ascii mode ? (Def=false)}&lt;br /&gt;
*[Name=PostPlan] string :: {Postfix for plane name, (Def=_Masq)}&lt;br /&gt;
*[Name=OrthoCyl] bool :: {Is the coordinate system in ortho-cylindric mode?}&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
In the data set of Mur Saint Martin, we can type : &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;RepLocBascule &amp;quot;IMGP41((6[7-9])|([7-8][0-9])).JPG&amp;quot; Ground MesureBasc.xml RepCorr.xml PostPlan=_MasqPlan&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lilacandolle</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Pierrerue_tutorial&amp;diff=3182</id>
		<title>Pierrerue tutorial</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Pierrerue_tutorial&amp;diff=3182"/>
				<updated>2024-04-03T11:49:00Z</updated>
		
		<summary type="html">&lt;p&gt;Lilacandolle : &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 dataset allow you to process a georeferenced orthophoto from a front. This dataset was acquired by student of ENSG during their summer internship in Forcalquier. They have use targets surveyed with total station.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
You can find this dataset at &amp;lt;code&amp;gt;https://micmac.ensg.eu/data/pierrerue_dataset.zip&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Once you have downloaded it, you have to unzip the &amp;quot;.zip&amp;quot; archive.&lt;br /&gt;
&lt;br /&gt;
==Presentation==&lt;br /&gt;
[[Image:Pierrerue1.png|thumb|180px||alt=Pierrerue|Pierrerue Chapel]]&lt;br /&gt;
*31 JPG images&lt;br /&gt;
*1 file containing the support points (Pierrerue.xml)&lt;br /&gt;
*We will use the folder 001_Elements-de-georeferencement&lt;br /&gt;
&lt;br /&gt;
==About the data==&lt;br /&gt;
The shooting contain 31 images, taken with the Sony alpha850 with a 244mm lens.&lt;br /&gt;
Check that the folder contains images recovering :&lt;br /&gt;
*facade n°1&lt;br /&gt;
*facade n°2&lt;br /&gt;
* the corner between these 2 façade (images link).&lt;br /&gt;
Support points are available and allows to georeference the readings (see the folder 001_Elements-de-georeferencement).&lt;br /&gt;
&lt;br /&gt;
==Tutorial==&lt;br /&gt;
===Set up the images===&lt;br /&gt;
====Tie-Points search====&lt;br /&gt;
All the images should be set up simultaneously, in order that the georeference process will be expressed into one only cordinate system. First, we can run the tie-points search : &amp;lt;pre&amp;gt;mm3d Tapioca MulScale &amp;quot;.*JPG&amp;quot; 600 2000&amp;lt;/pre&amp;gt;&lt;br /&gt;
====Internal orientation and relative orientation====&lt;br /&gt;
Then, we have to define the settings of the camera used from the images covering the corner between the 2 facades (more suitable than the others, because of the depth). &amp;lt;pre&amp;gt;mm3d Tapas RadialStd &amp;quot;angle.*JPG&amp;quot; Out=Calib24mm&amp;lt;/pre&amp;gt; Into the command prompt, we can check if the residual from the images is admissible (around the half pixel). We can check also the number of connection points, aswell as the percentage of points keeped (&amp;quot;99.8258 of 28466&amp;quot; : 99.8% of the connection points kept from 38466 points calculated). We can process yet the setting up of all the images. starting from the camera we calculated before. &amp;lt;pre&amp;gt;mm3d Tapas RadialStd &amp;quot;.*JPG&amp;quot; InCal=Calib24mm Out=MEP&amp;lt;/pre&amp;gt; Into the command prompt, we can control residual during the process. At the last step, we can see that the image residual are, for all the images, less than a half-pixel. We control also the number of support points, aswell that the percentage of points keeped (&amp;quot;99.8258 of 38466&amp;quot; : 99.8% of the support points keeped from the 38466 points calculated).&lt;br /&gt;
&lt;br /&gt;
====Visualization of relative orientation====&lt;br /&gt;
The [[AperiCloud]] command allows to generate 3D clouds, containing all the support points obtained with [[Tapioca]], and the position of the cameras obtained from the [[Tapas]] output.&lt;br /&gt;
[[Image:Pierrerue2.png|thumb|180px||alt=Pierrerue|Meshlab visualization]] &lt;br /&gt;
 &amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;.*JPG&amp;quot; MEP&amp;lt;/pre&amp;gt;The result of this command can be seen for example with the meshlab software.&lt;br /&gt;
&lt;br /&gt;
===Set up the images into the coordinates system of the support points===&lt;br /&gt;
Now we have to measure the support points available to georeference the images, and so the incoming products, into the reference coordinate system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Explaining the process====&lt;br /&gt;
*1. We measure 3 support points well distributed ([[SaisieAppuisInit]] command) ;&lt;br /&gt;
*2. We can now create a 3D similarity (transformation from 7 settings containing one scale coefficient, one translation into space and one space rotation) between the arbitary system calculated while the setting up and the coordinate system chosen ([[GCPBascule]] command) ; &lt;br /&gt;
*3. We have now to measure the remaining points : the absolute orientation calculated from the previous step, allows to suggest an approximated position for each points ([[SaisieAppuisPredic]] command) ; &lt;br /&gt;
*4. We affine the absolute orientation ([[GCPBascule]] command) ; &lt;br /&gt;
*5. We start the final computation for the setting up (this offset allows to find the best position/orientation of the cameras while using the points measurements on the linking points and on the support points) ; ([[Campari]] command).&lt;br /&gt;
&lt;br /&gt;
====Measurement process====&lt;br /&gt;
*1. Measurements of almost 3 support points on the facade n°1 (At least one point should be measured to be valid on at least two images). To set the points, you need to get to know the position of the 3 points thanks to the folder 001_Elements-de-georeferencement. &amp;lt;pre&amp;gt;mm3d SaisieAppuisInitQT &amp;quot;facade1DSC0589[8|9].JPG&amp;quot; MEP 1001 MesureFacade.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
To validate two other support points (on two images each) : &amp;lt;pre&amp;gt;mm3d SaisieAppuisInitQT &amp;quot;facade1DSC0588[3|5].JPG&amp;quot; MEP 1002 MesureFacade.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisInitQT &amp;quot;facade1DSC0589[3|6].JPG&amp;quot; MEP 1121 MesureFacade.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
*2. Computation of the 3D similarity (absolute orientation) &amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;.*JPG&amp;quot; MEP MEP-Basc Pierrerue.xml MesureFacade-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
*3. Measurement of all available points : &amp;lt;pre&amp;gt;mm3d SaisieAppuisPredicQT &amp;quot;facade.*JPG&amp;quot; MEP-Basc Pierrerue.xml MesureFacade-Final.xml&amp;lt;/pre&amp;gt; We must now validate the points left. &lt;br /&gt;
*4. Update computation of the absolute orientation.&lt;br /&gt;
This time, we need all the support points to calclulate the 3D similarity of the absolute orientation.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;.*JPG&amp;quot; MEP MEP-Basc2 Pierrerue.xml MesureFacade-Final-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
*5. Final adjustement&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari &amp;quot;.*JPG&amp;quot; MEP-Basc2 MEP-Terrain GCP=[Pierrerue.xml,0.02,MesureFacade-Final-S2D.xml,0.5]&amp;lt;/pre&amp;gt;&lt;br /&gt;
This computation adjustement use to find the best position/orientation of the cameras when the shooting was made assuming that the support points have a 0.02m accuracy, and the linking points have a 0.5 pixel accuracy. This values allows to ponderate the measurements.  It suits, at the end of the process, to control the residues on the support points and on the images residuals.&lt;br /&gt;
The residual images look like this :&lt;br /&gt;
&amp;lt;pre&amp;gt;| |  RESIDU LIAISON MOYENS = 0.547721 pour Id_Pastis_Hom Evol, Moy=2.38308e-07 ,Max=0.00295916&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===3D Reconstruction===&lt;br /&gt;
As we did for the Fountain exercise, we have to do the 3D reconstruction with the image geometry with the [[C3DC]] tools. First, we have to limit the reconstruction area. To process it, we have to create a mask on the cloud points ([[AperiCloud]]), that we have to recalculate in the new set up. &amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;.*JPG&amp;quot; MEP-Terrain&amp;lt;/pre&amp;gt;&lt;br /&gt;
To limit the computation area, we will create a 3D mask :&amp;lt;pre&amp;gt;mm3d SaisieMasqQT AperiCloud_MEP-Terrain.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
Once the mask is created, we can launch the 3D reconstruction : &amp;lt;pre&amp;gt;mm3d C3DC MicMac &amp;quot;facade.*JPG&amp;quot; MEP-Terrain Masq3D=AperiCloud_MEP-Terrain.ply Out=C3DC_MicMac_Pierrerue.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
The C3DC_MicMac_Pierrerue.ply file can be open with Meshlab.&lt;br /&gt;
&lt;br /&gt;
===Orthorectification===&lt;br /&gt;
To realize orthorectifications of the Pierrerue facade, we have to define a temporary landmark for each facade, where the Z axis will be perpendicular to the facade. In the first time, we will work on facade n°1. We processing it in 2 steps : &lt;br /&gt;
&lt;br /&gt;
1. Mask creation into the facade : &amp;lt;pre&amp;gt;mm3d SaisieMasqQT facade1DSC05893.JPG Attr=Facade1&amp;lt;/pre&amp;gt;&lt;br /&gt;
2. Computation of a local landmark where the Z axis is perpendicular and going through the support points included into the masks : &amp;lt;pre&amp;gt;mm3d RepLocBascule &amp;quot;facade1.*JPG&amp;quot; Ori-MEP-Terrain HOR Repere-Facade1.xml PostPlan=_MasqFacade1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HOR setting show that for the Ox axis of our orthoimage, we use the horizontal of our worksite. It can be done here, because the set up MEP-Terrain was obtained from support points. The orthoimage will be calculated from new landmark. It is necessary here to reproject the 3D reconstruction process into this new landmark. Normally, a depthmap will be calculated into the orthorectification map : it's about an image applied on the object, where the pixels show the distance from map. We describe it as 2.5D (3D information isn't available only for a finite number of positions). &lt;br /&gt;
&lt;br /&gt;
The [[PIMs2MNT]] command allows to create a depth map into the map of the facade n°1 (the one calculated before : ''Repere-Facade1.xml'') : &lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Pims2MNT MicMac DoOrtho=1 Repere=Repere-Facade1.xml Pat=&amp;quot;facade1.*JPG&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
The correlation map resulting, calculated into the facade n°1, can be found into the folder ''PIMs-TmpBasc'' with the name ''PIMs-Merged_Correl.tif''. This file contains the correlation results : white is corresponding to a very good correlation scores ; more the grey is dark, less the matching process went well. &lt;br /&gt;
&lt;br /&gt;
Once the depth map processed, MicMac compute into the PIMs-ORTHO repertory the orthoimages for each image, aswell as incidence pictures, with the angle between the facade and the perspective ray (images Incid_facade1DSC###.tif) and images with hidden parts, that show in white the hidden parts into the image (imgaes PC_facade1DSC###.tif).&lt;br /&gt;
[[Image:Pierrerue1.png|thumb|180px||alt=Pierrerue|Pierrerue Chapel]]&lt;br /&gt;
After the calculation, each orthoimages should be mosaiced. The choice of the image to use for each pixel is done with these specificity : no hidden parts, best angle of attack, continuity in the choice of images :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tawny PIMs-ORTHO/&amp;lt;/pre&amp;gt;&lt;br /&gt;
The result is an image created into ''PIMs-ORTHO'' folder, called Orthophotomosaic.tif. Metadatas associated are available into the file Orthophotomosaic.tfw. We can see the resolution chosen for the orthoimage computation here (1.1mm).&lt;br /&gt;
&lt;br /&gt;
[[Image:Pierrerue5.png|thumb|180px||alt=Pierrerue|Meshlab visualization]]&lt;br /&gt;
We can now create a faded image relief, this image allows to evaluate the quality of the reconstruction, especially in detecting the noise existing on the reconstructed surface.&lt;br /&gt;
 &amp;lt;pre&amp;gt;mm3d GrShade PIMs-TmpBasc/PIMs-Merged_Prof.tif ModeOmbre=IgnE Mask=PIMs-TmpBasc/PIMs-Merged_Masq.tif Out=Facade1_Shade.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
Another product can be created, it's an colorized image into the facade depth (each colour is corresponding to a  scale of depth) :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d to8Bits PIMs-TmpBasc/PIMs-Merged_Prof.tif Coul=1 Circ=1 Mask=PIMs-TmpBasc/PIMs-Merged_Masq.tif Out=Facade1_8Bits.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
Files ''Facade1_Shade.tif'' and ''Facade1_8bits'' can be seen with any image viewer software. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, it can be helpful to regenerate a 3D cloud points from the depth map, by colorizing it with the orthoimage. The advantage is to use radiometric equalization calculated on the orthoimage (during the [[Tawny]]) to have an equalized 3D cloud points. The disadvantage is that the 3D area is only 2,5D and that the perpendicular object from the facade map aren't showed on the cloud. &lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Nuage2Ply PIMs-TmpBasc/PIMs-Merged.xml Attr=PIMs-ORTHO/Orthophotomosaic.tif Out=Facade1.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
The file ''Facade1.ply'' can be seen with Meshlab, and can be compared to the file ''C3DC_MicMac_Pierrerue.ply''. &lt;br /&gt;
&lt;br /&gt;
Everything executed on the facade n°1 can be done now on facade n°2.&lt;/div&gt;</summary>
		<author><name>Lilacandolle</name></author>	</entry>

	<entry>
		<id>http://micmac.ensg.eu/index.php?title=Pierrerue_tutorial&amp;diff=3181</id>
		<title>Pierrerue tutorial</title>
		<link rel="alternate" type="text/html" href="http://micmac.ensg.eu/index.php?title=Pierrerue_tutorial&amp;diff=3181"/>
				<updated>2024-04-03T11:48:41Z</updated>
		
		<summary type="html">&lt;p&gt;Lilacandolle : &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 dataset allow you to process a georeferenced orthophoto from a front. This dataset was acquired by student of ENSG during their summer internship in Forcalquier. They have use targets surveyed with total station.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
You can find this dataset at &amp;lt;code&amp;gt;https://micmac.ensg.eu/data/pierrerue_dataset.zip&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Once you have downloaded it, you have to unzip the &amp;quot;.zip&amp;quot; archive.&lt;br /&gt;
&lt;br /&gt;
==Presentation==&lt;br /&gt;
[[Image:Pierrerue1.png|thumb|180px||alt=Pierrerue|Pierrerue Chapel]]&lt;br /&gt;
*31 JPG images&lt;br /&gt;
*1 file containing the support points (Pierrerue.xml)&lt;br /&gt;
*We will use the folder 001_Elements-de-georeferencement&lt;br /&gt;
&lt;br /&gt;
==About the data==&lt;br /&gt;
The shooting contain 31 images, taken with the Sony alpha850 with a 244mm lens.&lt;br /&gt;
Check that the folder contains images recovering :&lt;br /&gt;
*facade n°1&lt;br /&gt;
*facade n°2&lt;br /&gt;
* the corner between these 2 façade (images link).&lt;br /&gt;
Support points are available and allows to georeference the readings (see the folder 001_Elements-de-georeferencement).&lt;br /&gt;
&lt;br /&gt;
==Tutorial==&lt;br /&gt;
===Set up the images===&lt;br /&gt;
====Tie-Points search====&lt;br /&gt;
All the images should be set up simultaneously, in order that the georeference process will be expressed into one only cordinate system. First, we can run the tie-points search : &amp;lt;pre&amp;gt;mm3d Tapioca MulScale &amp;quot;.*JPG&amp;quot; 600 2000&amp;lt;/pre&amp;gt;&lt;br /&gt;
====Internal orientation and relative orientation====&lt;br /&gt;
Then, we have to define the settings of the camera used from the images covering the corner between the 2 facades (more suitable than the others, because of the depth). &amp;lt;pre&amp;gt;mm3d Tapas RadialStd &amp;quot;angle.*JPG&amp;quot; Out=Calib24mm&amp;lt;/pre&amp;gt; Into the command prompt, we can check if the residual from the images is admissible (around the half pixel). We can check also the number of connection points, aswell as the percentage of points keeped (&amp;quot;99.8258 of 28466&amp;quot; : 99.8% of the connection points kept from 38466 points calculated). We can process yet the setting up of all the images. starting from the camera we calculated before. &amp;lt;pre&amp;gt;mm3d Tapas RadialStd &amp;quot;.*JPG&amp;quot; InCal=Calib24mm Out=MEP&amp;lt;/pre&amp;gt; Into the command prompt, we can control residual during the process. At the last step, we can see that the image residual are, for all the images, less than a half-pixel. We control also the number of support points, aswell that the percentage of points keeped (&amp;quot;99.8258 of 38466&amp;quot; : 99.8% of the support points keeped from the 38466 points calculated).&lt;br /&gt;
&lt;br /&gt;
====Visualization of relative orientation====&lt;br /&gt;
The [[AperiCloud]] command allows to generate 3D clouds, containing all the support points obtained with [[Tapioca]], and the position of the cameras obtained from the [[Tapas]] output.&lt;br /&gt;
[[Image:Pierrerue2.png|thumb|180px||alt=Pierrerue|Meshlab visualization]] &lt;br /&gt;
 &amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;.*JPG&amp;quot; MEP&amp;lt;/pre&amp;gt;The result of this command can be seen for example with the meshlab software.&lt;br /&gt;
&lt;br /&gt;
===Set up the images into the coordinates system of the support points===&lt;br /&gt;
Now we have to measure the support points available to georeference the images, and so the incoming products, into the reference coordinate system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Explaining the process====&lt;br /&gt;
*1. We measure 3 support points well distributed ([[SaisieAppuisInit]] command) ;&lt;br /&gt;
*2. We can now create a 3D similarity (transformation from 7 settings containing one scale coefficient, one translation into space and one space rotation) between the arbitary system calculated while the setting up and the coordinate system chosen ([[GCPBascule]] command) ; &lt;br /&gt;
*3. We have now to measure the remaining points : the absolute orientation calculated from the previous step, allows to suggest an approximated position for each points ([[SaisieAppuisPredic]] command) ; &lt;br /&gt;
*4. We affine the absolute orientation ([[GCPBascule]] command) ; &lt;br /&gt;
*5. We start the final computation for the setting up (this offset allows to find the best position/orientation of the cameras while using the points measurements on the linking points and on the support points) ; ([[Campari]] command).&lt;br /&gt;
&lt;br /&gt;
====Measurement process====&lt;br /&gt;
*1. Measurements of almost 3 support points on the facade n°1 (At least one point should be measured to be valid on at least two images). To set the points, you need to get to know the position of the 3 points thanks to the folder 001_Elements-de-georeferencement. &amp;lt;pre&amp;gt;mm3d SaisieAppuisInitQT &amp;quot;facade1DSC0589[8|9].JPG&amp;quot; MEP 1001 MesureFacade.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
To validate two other support points (on two images each) : &amp;lt;pre&amp;gt;mm3d SaisieAppuisInitQT &amp;quot;facade1DSC0588[3|5].JPG&amp;quot; MEP 1002 MesureFacade.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d SaisieAppuisInitQT &amp;quot;facade1DSC0589[3|6].JPG&amp;quot; MEP 1121 MesureFacade.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
*2. Computation of the 3D similarity (absolute orientation) &amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;.*JPG&amp;quot; MEP MEP-Basc Pierrerue.xml MesureFacade-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
*3. Measurement of all available points : &amp;lt;pre&amp;gt;mm3d SaisieAppuisPredicQT &amp;quot;facade.*JPG&amp;quot; MEP-Basc Pierrerue.xml MesureFacade-Final.xml&amp;lt;/pre&amp;gt; We must now validate the points left. &lt;br /&gt;
*4. Update computation of the absolute orientation.&lt;br /&gt;
This time, we need all the support points to calclulate the 3D similarity of the absolute orientation.&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d GCPBascule &amp;quot;.*JPG&amp;quot; MEP MEP-Basc2 Pierrerue.xml MesureFacade-Final-S2D.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
*5. Final adjustement&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Campari &amp;quot;.*JPG&amp;quot; MEP-Basc2 MEP-Terrain GCP=[Pierrerue.xml,0.02,MesureFacade-Final-S2D.xml,0.5]&amp;lt;/pre&amp;gt;&lt;br /&gt;
This computation adjustement use to find the best position/orientation of the cameras when the shooting was made assuming that the support points have a 0.02m accuracy, and the linking points have a 0.5 pixel accuracy. This values allows to ponderate the measurements.  It suits, at the end of the process, to control the residues on the support points and on the images residuals.&lt;br /&gt;
The residual images look like this :&lt;br /&gt;
&amp;lt;pre&amp;gt;| |  RESIDU LIAISON MOYENS = 0.547721 pour Id_Pastis_Hom Evol, Moy=2.38308e-07 ,Max=0.00295916&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===3D Reconstruction===&lt;br /&gt;
As we did for the Fountain exercise, we have to do the 3D reconstruction with the image geometry with the [[C3DC]] tools. First, we have to limit the reconstruction area. To process it, we have to create a mask on the cloud points ([[AperiCloud]]), that we have to recalculate in the new set up. &amp;lt;pre&amp;gt;mm3d AperiCloud &amp;quot;.*JPG&amp;quot; MEP-Terrain&amp;lt;/pre&amp;gt;&lt;br /&gt;
To limit the computation area, we will create a 3D mask :&amp;lt;pre&amp;gt;mm3d SaisieMasqQT AperiCloud_MEP-Terrain.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
Once the mask is created, we can launch the 3D reconstruction : &amp;lt;pre&amp;gt;mm3d C3DC MicMac &amp;quot;facade.*JPG&amp;quot; MEP-Terrain Masq3D=AperiCloud_MEP-Terrain.ply Out=C3DC_MicMac_Pierrerue.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
The C3DC_MicMac_Pierrerue.ply file can be open with Meshlab.&lt;br /&gt;
&lt;br /&gt;
===Orthorectification===&lt;br /&gt;
To realize orthorectifications of the Pierrerue facade, we have to define a temporary landmark for each facade, where the Z axis will be perpendicular to the facade. In the first time, we will work on facade n°1. We processing it in 2 steps : &lt;br /&gt;
&lt;br /&gt;
1. Mask creation into the facade : &amp;lt;pre&amp;gt;mm3d SaisieMasqQT facade1DSC05893.JPG Attr=Facade1&amp;lt;/pre&amp;gt;&lt;br /&gt;
2. Computation of a local landmark where the Z axis is perpendicular and going through the support points included into the masks : &amp;lt;pre&amp;gt;mm3d RepLocBascule &amp;quot;facade1.*JPG&amp;quot; Ori-MEP-Terrain HOR Repere-Facade1.xml PostPlan=_MasqFacade1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HOR setting show that for the Ox axis of our orthoimage, we use the horizontal of our worksite. It can be done here, because the set up MEP-Terrain was obtained from support points. The orthoimage will be calculated from new landmark. It is necessary here to reproject the 3D reconstruction process into this new landmark. Normally, a depthmap will be calculated into the orthorectification map : it's about an image applied on the object, where the pixels show the distance from map. We describe it as 2.5D (3D information isn't available only for a finite number of positions). &lt;br /&gt;
&lt;br /&gt;
The [[PIMs2MNT]] command allows to create a depth map into the map of the facade n°1 (the one calculated before : ''Repere-Facade1.xml'') : &lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Pims2MNT MicMac DoOrtho=1 Repere=Repere-Facade1.xml Pat=&amp;quot;facade1.*JPG&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
The correlation map resulting, calculated into the facade n°1, can be found into the folder ''PIMs-TmpBasc'' with the name ''PIMs-Merged_Correl.tif''. This file contains the correlation results : white is corresponding to a very good correlation scores ; more the grey is dark, less the matching process went well. &lt;br /&gt;
&lt;br /&gt;
Once the depth map processed, MicMac compute into the PIMs-ORTHO repertory the orthoimages for each image, aswell as incidence pictures, with the angle between the facade and the perspective ray (images Incid_facade1DSC###.tif) and images with hidden parts, that show in white the hidden parts into the image (imgaes PC_facade1DSC###.tif).&lt;br /&gt;
[[Image:Pierrerue1.png|thumb|180px||alt=Pierrerue|Pierrerue Chapel]]&lt;br /&gt;
After the calculation, each orthoimages should be mosaiced. The choice of the image to use for each pixel is done with these specificity : no hidden parts, best angle of attack, continuity in the choice of images :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Tawny PIMs-ORTHO/&amp;lt;/pre&amp;gt;&lt;br /&gt;
The result is an image created into ''PIMs-ORTHO'' folder, called Orthophotomosaic.tif. Metadatas associated are available into the file Orthophotomosaic.tfw. We can see the resolution chosen for the orthoimage computation here (1.1mm).&lt;br /&gt;
&lt;br /&gt;
[[Image:Pierrerue5.png|thumb|180px||alt=Pierrerue|Meshlab visualization]]&lt;br /&gt;
We can now create a faded image relief, this image allows to evaluate the quality of the reconstruction, especially in detecting the noise existing on the reconstructed surface.&lt;br /&gt;
 &amp;lt;pre&amp;gt;mm3d GrShade PIMs-TmpBasc/PIMs-Merged_Prof.tif ModeOmbre=IgnE Mask=PIMs-TmpBasc/PIMs-Merged_Masq.tif Out=Facade1_Shade.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
Another product can be created, it's an colorized image into the facade depth (each colour is corresponding to a  scale of depth) :&lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d to8Bits PIMs-TmpBasc/PIMs-Merged_Prof.tif Coul=1 Circ=1 Mask=PIMs-TmpBasc/PIMs-Merged_Masq.tif Out=Facade1_8Bits.tif&amp;lt;/pre&amp;gt;&lt;br /&gt;
Files ''Facade1_Shade.tif'' and ''Facade1_8bits'' can be seen with any image viewer software. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, it can be helpful to regenerate a 3D cloud points from the depth map, by colorizing it with the orthoimage. The advantage is to use radiometric equalization calculated on the orthoimage (during the [[Tawny]]) to have an equalized 3D cloud points. The disadvantage is that the 3D area is only 2,5D and that the perpendicular object from the facade map aren't showed on the cloud. &lt;br /&gt;
&amp;lt;pre&amp;gt;mm3d Nuage2Ply PIMs-TmpBasc/PIMs-Merged.xml Attr=PIMs-ORTHO/Orthophotomosaic.tif Out=Facade1.ply&amp;lt;/pre&amp;gt;&lt;br /&gt;
The file ''Facade1.ply'' can be seen with Meshlab, and can be compared to the file ''C3DC_MicMac_Pierrerue.ply''. &lt;br /&gt;
&lt;br /&gt;
Everything executed on the facade n°1 can be done now on facade n°2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Meshroom==&lt;/div&gt;</summary>
		<author><name>Lilacandolle</name></author>	</entry>

	</feed>