IOsetTransformation

Top  Previous  Next

If the co-ordinate transformation of the Digitizers activates.

The transformation of the Digitizers can or be switched off arbitrarily one. The transformation points, with IOsetTransformParams are put, are also preserved after switching off the transformation. There are two transformations.

Helmert

The real transformation consists of a movement, a dimensions change and a rotation around small corners. The transformation works on a picture regulation which contains a number of is and Sollpunkten. The number of the points is at least 2.

The movement illustrates the main focus of the Istpunkte on the main focus of the Sollpunkte. The main focus is transformed precisely. All the other points of the transformation can show mistake. These mistakes hot Restklaffung.

The dimensions change is based on the distance the should and Istpunkte of the respective main focus. Points have a higher weight in the transformation if they are further from the main focus remotely than others.

The rotation functions only for small corners, because it assumes sin (x) =x.

Affin

In addition to the Helmerttransformation the distortion length / width is also compensated here.

Restklaffungsausgleich

Both transformation kinds also exist with Restklaffungsausgleich. Then the authoritative points of the transformation are weighted after the distance to the input point. The closer an authoritative point lies, the greater becomes his weight.

Parametre

pipes (PIOPIPES) [IN]

The trading pipes gives the issue canal.

transformation (int) [IN]

With this parametre it is given which kind of the transformation should be applied from now on to the co-ordinates which are given with the Digitizer. The co-ordinates which will give about the command line are not influenced from this. Possible co-ordinate transformations are Helmerttransformation and Affintransformation. Besides, Helmert realises a dimensions change, movement and rotation. Affin realises a dimensions change with movement. Furthermore it is possible to switch off the transformation. Then the physical co-ordinates of the Digitizers are delivered.

Result

---

Constants

#define TRANSFORM_TYPE_NO 0

#define TRANSFORM_TYPE_HELMERT 2

#define TRANSFORM_TYPE_AFFIN 4

#define TRANSFORM_TYPE_HELMERT_RESTKLAFFUNG 3

#define TRANSFORM_TYPE_AFFIN_RESTKLAFFUNG 5

#define TRANSFORM_TYPE_POLAR 6

Declaration

#include "ausgabe.h"

 

void DLLENTRY IOsetTransformation (

PIOPIPES pipes,

int transformation

);