1) Generalities and general functions of image manipulation.

Links to position yourself on the right Chapter:


MG02
MG03
MG04
MG04a
MG05
M05
M06
P01
P02
P03
P04
P05
LI01
LI02
LI03
TR01
TR02
OC01
OC02
P07
O 01
O 02
O 03
O 04
O 05
O 06
O 07
O 08
DL02
MRC 01
C01
IM01
IM02
IM03
IM04
IM05

In order to be able to manipulate and visualize comfortably hundreds of images --.TIF of several hundreds of mega bytes each under Autocad, PMS3D has developed display drivers based on standard Autodesk tools (See ATIL Drivers).
These features are only active on Tiled and Pyramid TIF Images (PMS3D Base Files). JPEG compression is an option that allows to reduce the size of the files but makes partial modification impossible. As a result, the image merge function applied to compressed files requires a complete recalculation of the TIF file and is therefore slower.
When loading an image, the PMS3D module creates :

It is important to know that, in addition to the speed and image quantity capabilities, the "PMS_Images" have color correction features adapted to our orthophoto problems.
All these color compensation settings are stored in the DWG.
For DWG deliveries to third parties who do not have PMS3D software, you can convert these images to Autocad standard.
Conversely, you can convert standard images into PMS3D images:


Or by the general menu below or by the command: "PMS_CONVIMG".


In the menu above a whole series of useful functions for importing, exporting and displaying images have been grouped together.
Some of them are Autocad commands, others are not or do not react exactly the same way.
In particular the image quality in draft mode, when it is a PMS3D image it reverses the overwriting of the Images while in AUTOCAD mode it decreases the quality. In PMS3D mode this feature improves the display speed because it does not overwrite on a pixel already drawn.
In the same way, in Adjust Image, the variable 'Blur ' is replaced by 'Transparency' when it is a PMS3D image.
This notion of transparency is sometimes useful when images are superimposed. It is not applicable when printing (PLOT).

Most of the functions are also found in this menu:
MI01
MI02
MI03
MI04
MI05
MI06
MI07

(MI01 ) To change the UCS and make it conform to a selected Object or Image.
(MI02 ) To manage the visibility of an Image.
(MI03 ) To manage the transparency of an Image. This function is important because it allows to make visible the image from below, where above the ortho was hidden. In the case of terrestrial ortho, makes appear zones masked by poles, chimneys or doghouses
(MI04)Regen by placing the Ortho images under the vectors.

(MI05 ) Loading images by selecting INSERT or files.
(MI06 ) Change directory of image files or 'FILE' attribute of image 'INSERT'. Do not forget to update the default directory of the images
(MI07)Rename Images in order to place them at the good level (case of sorting according to the names of images).

2) Input and output data.
COL 02





3)Launching the ORTHO module and general parameters.

You start this module via the menu or command: PMS_ORTHOor
via the following menus:


The following general parameters will be used by almost all ortho functions.
These parameters are stored in the same file as the Aerotriangulation: Chantier. Model.
P01
P02
P03
P04
P05
P07
C01

(P01 ) Defines the DTM integration method.
(P02 ) Defines the directory in which the new ORTHO Images will be stored.
(P03 ) Prototype the Name of the new ortho images. Leave blank to take the default names. As the order in which the images are displayed generally depends on the Names, it is sometimes interesting to impose them with this Option. The "Manage Image-Rename" menu function can also be used to change the display order
(P04) Defines the type of image to create. For Ortho and intermediate images, the Tiled and Uncompressed version is the most effective.
(P05 ) Sets the pixel size of the Final Ortho. It is not recommended to change this value during processing; mixing images with different pixel sizes results in a loss of Quality. All Insert or Image calculation and positioning is linked to a grid passing through the 0,0 point and linked to this size.
(P07) allows you to filter the selectable images. This is useful when you have overlapping images. See the "SELECT" command in Autocad.

4)Creation/definition of Ortho to be calculated.

The definition of the parameters relating to the orthos to be calculated is done by creating an INSERT named "3AEOTHO".
Its position and size define the position and size of the image to be calculated.
Its attributes :
CLICK >> Link of this No with the image No of the Aerotriangulation file ---.model. It contains the original image and its orientation elements.
FILE: >> Name of the RECTIFIED ORTHO file that will be created by calculation.
MNTFILE >> Name of the DTM file (DWG faces file) to be used for the calculation (see chapter DTM for the association).

Be sure to check the Parameters for creating these inserts(P02, P03 and C01):
P02
P03
C01

(C01 ) Fixes the bearing and scales of the inserts you will create.
After creation, you can readjust the created inserts by Autocad commands or by changing the properties of these INSERT.

(MRC01) You create these INSERTs by right-clicking on the list of images you need to select:
CR01
CR02
CR03
MR01
MR02


Values
(CR01) Is interesting in the case of vertical ORTHO. Case of aerial images.
An insert is created for each selected image. The values relative to (C01) are used
(CR02) Creates a frame using the position of the selected images. It creates these frames according to the current UCS. Used in the case of Land Photos.
(CR03 ) Creates a frame in the current UCS by asking you the 2 corners of the window. The associated frame is the current frame (GETCORNER).

Results:


 
Don't forget to save your work by saving your Current DWG.

5)Calculation and handling of the DTM. The PMS3D module requires 3DFACES or POLYMAILLE to ortho rectify the plates.
If you have the "LRA" module or that of another supplier, you will have no problem to mesh and have a terrain model in the form of faces.

M01
M02
M03
M04
M05
M06
You define the origin of the current DTM by the drop-down list.
(M01 ) This option requires the 'LRA' software. With [VINIT+VMAIL] you mesh the current DTM which remains in memory as Current DTM for any horto calculation.
(M02 ) You can integrate the DTM from Autocad objects (3DPoly, PMS3DPOLY, POLYMAILLE).
These objects can come from a selection set or from a DXF or DWG file.
(M03 ) You can integrate the DTM from an ASCII file. Export some Autocad objects in ASCII to see the Format.
(M04 ) The software can use a LIDAR point cloud. It exploits the '.LAS' files. You can transform a '.TXT' file into a '.LAS' file using the function in the DTM/CALCULATION menu. Don't forget to set the maximum distance between points of the Cloud (Ortho calculation parameters of the menu below)
(M05) You have to load your DTM. Your DTM is ready to use.
(M06 ) You can save it in a .DWG file.

If you have a large file, you can associate the useful faces of this DTM to each CLICHES to be Ortho rectified.
At your choice, a single DWG file will be associated to several SLIDES or one DWG per SLIDE can be created.

(MG03)This DTM manipulation is found in the following menus:
M10
M11
M12
M13
M14
M15
(M10) You can Export and Import a DTM via ASCII files.
(M11 ) You can Import a Point Cloud file. If you select an ASCII file, its extension sets the column list of this ASCII file. It is then converted to a '.LAS' file.
(M12 ) To associate and dissociate DTM files with certain Images.
This allows, when ortho rectifying an image, to work on a more restricted DTM; only the interesting faces of the image are saved.
This is interesting for large files.
(M13 ) When you have associated DTM files to some Images, you can change the directory.
(M14 ) Default settings for image calculation and display are defined.
(M15 ) Small extrusion function to create 3DMAILS from Polylines or closed 3DPOLY. This allows to complete DTM for chimneys or other objects. You must provide an extrusion vector

Don't forget to save your work by saving your Current DWG.

6)Orthorectification of images.

You trigger a calculation with the ORTHO CALCULATION button:

Now that the calculation is complete, you can see the result by loading the images with [Load Images]


You can view and manipulate the RECTIFIED ORTHO images using the Functions:
(LI01 ) To load the last automatically rectified ORTHO image
(LI02 ) To load the last calculated image.
(LI03 ) To load images by selecting the associated INSERTs or to unload them.

Don't forget to save your work with a backup of your Current DWG.
For more comfort, it is interesting to delete all the INSERT 3AEORTHO. You don't need them anymore.

7)Brightness and color correction.

General

If the colours seem to be correct and the changes in the images are not too noticeable, go to the next step.

You can change the luminance and contrast values using the classic Autocad commands.
Grab a whole series of images and change these luminance and contrast properties serially.

Another method is to use the automatic correction of PMS3D according to the least squares.
To do this, you must block the images that are to be used as references (at least the 4 corners of the site).
You just have to force the color of these reference images to 1 (Red).

Start the calculation with the menu "Processing/Delim" of the dialog box "ORTHO" and the following commands, corresponding to three steps:
Ortho Def
Ortho Auto
CO_03
CO_04
Ortho Save
  1. The definition of the parameters for the calculation of the Ortho Def
  2. The least squares calculation of the color compensation settings for each selected Ortho Auto
  3. (CO 03) To edit, Export as ASCII or Import the luminance parameters of selected images
  4. (CO 04) To list the luminance information of images to be selected
  5. The least squares calculation of the color compensation settings for each selected Ortho Auto
  6. Saving the new images corrected by the previously calculated compensation. Ortho Save
Definition of Luminance calculation parameters (Ortho Def)
PCO 01
PCO 02
PCO 03
PCO 04
PCO 05
PCO 06
PCO 07
PCO 08
PCO 09
PCO 10
PCO 11
PCO 12
PCO 13

Each color of each image will be compensated by the formula: Color = Start Color + kX * X + kY * Y + kXY * X * Y + Cte;
X and Y varying between -0.5 and 0.5 according to the position of the pixel;
kX, kY, kXY and Cte being coefficients to be calculated. kXY corresponds to a kind of torsion
We consider that we stay as close as possible to the colors of the original images. Otherwise, the best way to avoid seeing any transition between the images would be to put them all in black or white.
The more the original images have weight, and the less we allow the change of colors. This adjustment is done thanks to the coefficients (PCO 05).

It is generally interesting to focus on the color correlation at the image changes, where the boundary lines are.
This is done by the variable (PCO 06), the boundary width to be used (in image pixels). In case this value is not zero, the color compensation must be done after the delimitation of the images.
In all cases, the points taken into account by the correlation are the visible points, and if the image is delimited, only the displayable points are taken into account.
This allows you, for example, to exclude water surfaces from the image or to limit the overlap between bands, to eliminate areas that disturb the color calculations.

Definition of Luminance calculation parameters (Ortho Auto)

This function allows for least squares color compensation calculations.
You have to start by defining images that will be used as reference; images that will remain unchanged.
To do this, you must assign them the color RED
. These images are generally the 4 corners of a block or the ends of the strips. A good compromise is to put about 1 Image out of 10 in red.
You just have to run the calculation on a selection of images.
After seeing the results, you can change the weight of the coefficients, impose other images, delimit disturbing areas and run the calculation again.
Do not forget to save your work by saving your current DWG. The compensation coefficients are stored in the DWG

Save images corrected for the current brightness. (Ortho Save)

This function allows you to modify your original image by correcting it with the current color compensation.
During the whole calculation phase, this is not necessary. It is preferable to work with a real time calculation at the time of the display.
The display is a bit longer but you keep your original images.
This function is interesting for the delivery of the compensated images to the final customer because he does not have this module which compensates at the time of display.
The general color compensation as well as the Autocad brightness and contrast coefficients are also taken into account by this module.
As the images are modified, the compensation coefficients are automatically set to zero.

General color correction.

Before the final delivery, it is sometimes necessary to correct the colors globally. Forcing green or reducing red for example.
You can
adjust in real time the "RGB" colors of all images on which the color correction flag is active .

For a more precise adjustment, you can, via an ASCII file "PmsRgb" define a very precise graph of the corrections to be brought.
This import/export to an ASCII file is executed by the buttons : (PCO 08) (PCO 09).
The file contains lines of the form:
[R and/or G and/or B]xxx=yyy. whereR
for Red, G for Green, B for Blue.
xxx = value of the color of the pixelyy
= New value for this pixel.




For example:
R128=120 to create a pass point attenuating red from value 128 to 120.
RGB128=120 to create a pass point attenuating all 3 colors from value 128 to 120.
You thus create pass points for each color.



The intermediate points are interpolated.
At the beginning, for each color, 2 points are automatically created, R0=0 and R255=255.
The buttons (PCO 10)make it possible to select/deselect the plates concerned by this color correction.

Input tools, manual editing and quick access to color correction functions.

(PCO 11 ) To enable and disable the color and luminance change flag relative to each image.
The function (PMS_LUMACTIVE) is called. This function is also in the PMS3D/Images drop-down menu.

(PCO 12 ) To manually edit or import/export corrections for each selected image.
The corresponding function is (PMS_LUMEDIT). This function is also in the PMS3D/Images drop down menu.
command:PMS_LUMEDIT. It offers 4 Options :
/Change /Reset /Export /Import :

(PCO 13) launches the command (PMS_LUMINFO) which allows to list the correction coefficients of an image. It can also be found in the PMS3D/Images drop-down menu.

(PMS_LUMGEN) Enables/disables the taking into account of Brightness and Color corrections.
This global variable allows to visualize immediately the display with and without luminosity and color corrections.
In order for the brightness and color corrections to be taken into account on an image, this flag PMS_LUMGEN and the image flags PMS_LUMEDIT must be active

8)Delimitation of the Images.

In the case of simple ortho photos (no built-up area and uniform vegetation), this can be dispensed with.

Otherwise:
TR01
TR02
DL02

(TR01 ) Launches a regeneration of the drawing by respecting the order of display of the images according to the selected criterion (in general Increasing names)
(TR02 ) Allows to choose a criterion of SORT of the images. In general Ascending Names. This sorting is important because only the visible parts of the Images are delimited.
It is useless or even penalizing to delimit the parts covered by other images of higher rank

DL01
DL02
DL03
DL04
DL05
DL06
DL07
(DL01) Starts the automatic delimitation calculation. The current order of the images is taken into account. Red PICTURES are not processed.
This function roughs up the work. Modifications can be made by the functions described below.
(DL02 ) Allows the modification of existing boundaries by adding and deleting points or sections.
A point can be deleted by snapping it in End mode.
(DL03 ) Activate and deactivate the delimitation of one or more Images
(DL04) Complete deletion of the delimitation of one or more Images
(DL05) Autocad function of image delimitation
(DL06) Delimitation from a polyline
(DL07)You can Export then modify and import these delimitation contours as polylines
You get something out of the form:

Don't forget to save your work by saving your Current DWG.


9) Definition of the final images to be created.

At this stage you can already make good quality Autocad prints.
Compared to the following treatments, the printout does not include an image fusion calculation (width defined in pixels).


You should start by checking the main settings for image extraction and merging:
P02
P03
P04
TR01
TR02
IM01
IM02
IM03
IM04
IM05
P07

As with the creation of orthorectified images, we use INSERTs to create these final images in series.
The name of these INSERTs must begin with MEP (Page Setup). We use "MEP_IMG".
Two functions exist: and another for its duplication in series:
MM01
MM02
IM03
IM04

(MM01) One for the creation of the first Insert "MEP_IMG". It defines the prototyping of the Name and the future MEP_IMGs which will result from it by duplication.
As soon as you insert the first "MEP_IMG" check all these parameters before duplicating it in L rows and C columns:

This Menu calls the command: "PMS_INSERT" which is interesting for the creation of INSERT in spatial mode.
Be careful, the points clings are spatial. Don't forget that PMS3D software is 3D oriented.
Ortho rectification works with 3D rotation matrices.

The FORMAT attribute defines how the future images will be named according to their Line/Column position.
In this case, "R10_%02d_%02d;1;1;1;-1" means that the image shifted by 2 lines above and 3 columns to the right will have the name: "R10_02_03
". The '%02d' format the writing of the Numbers. We also have Digit1= 1 + 1 * [N° Col] ; Digit2= 1 - 1 * [N° Line].
This formatting is of the form: FORMAT; CteCol; KCol; CteLigne; KLigne. This first MEP_IMG being checked, you duplicate it so as to cover all your project.
(MM02 ) Starting from a prototype MEP_IMG, this function allows its duplication in 'C' columns (positive to the right) and 'L' lines (positive to the TOP).
The sign of 'C' and 'L' is interpreted and allows to choose the duplication direction.
If the answer to the question "Number of columns" is negative, the duplication will be to the right.
If the answer to the question "Number of rows" is a negative number, the duplication will be downwards.
The duplication function can be run several times.
If you want an overlap of your images, change the X and Y SCALE properties of the INSERT objects (GRIPPER these entities and change the properties).

Result:


10)Creation of the final images.

To create the final images, or Extracts, the solutions are :

Once the calculation is done, you load these images : [Load Images] on a selection set of "MEP_IMG".

Don't forget to save your work as a .DWG Current.


11)Final Image Editing Tools.

To work comfortably, it is interesting to work on at least 2 windows in paper space.
In the first window, the ortho rectified images with their delimitation contours are displayed, and in the other, the final images.
For this purpose, in each window, some 'LAYERs' are frozen.
The concerned layers are "I_O10.." for Ortho images, "MEP_IMG" for MEP images, "I_O10.." for Final images; This way, you will have more ease
when selecting images and you will have a real time view of the result.

We get:

The principle of the changes is as follows:

Detail:

 
12)Tools/Miscellaneous buttons to activate/deactivate the right objects.

O 01
O 02
O 03
O 04
O 05
O 06
O 07
O 08

(O 01 ) Enables disables IMAGES FRAMES.
(O 02 ) Enables disables the brightness and color correction by the general variable (PMS_LUMGEN). This allows you to quickly see the difference in color correction.
(O 03 ) Activates all Autocad layers.
(O 04 ) Deactivates all Autocad layers.
(O 05 ) On/Off of ORTHO INSERT images.
(O 06 ) On/Off of ORTHO images.
(O 07 ) On/Off of MEP final images.
(O 08 ) On/Off of definitive images