Unwarp an Image

An EWorldShape object manages a field-of-view calibration context. Such an object is able to represent the relationship between world coordinates (physical units) and sensor coordinates (pixels), and account for the distortions inherent in the image formation process.

Image calibration is an important process in quantitative measurement applications. It establishes the relation between the location of points in an image (pixel indices) and the actual positions of those points in the real world, on the inspected item.

Calibration can be setup by providing explicit calibration parameters of the calibration model, or a set of known points (landmarks), or a calibration target.

The goal of calibration is twofold:

  • To gain independence with respect to the viewing conditions (part placement in the field of view, lens magnification, sensor resolution, …), letting you describe the inspected item once for all using absolute measurements.

../../../../_images/singlemodelvsmultipleviewingconditions.webp

Single model versus multiple viewing conditions

  • To correct some distortion related to the imaging process (perspective effect, optical aberrations, …).

../../../../_images/removalofimagedistortion.webp

Removal of image distortion

The pixel indices in an image are usually integer numbers, but fractional values can occur when using sub-pixel methods. They are normally obtained by processing an image and locating known feature points. These values are called sensor coordinates.

../../../../_images/featurepointinsensorspace.webp

Feature point in sensor space

The world coordinates describe the location of points on the inspected item are expressed in an appropriate length measurement unit.
The world coordinates are actual dimensions, usually gathered from design drawings or by mechanical measurements.
They require a reference frame to be defined.

../../../../_images/referenceframeinworldspace.webp

Reference frame in world space

Unwarp

Unwarping an image is the application of the image calibration model to create a rectified, distortion-free image.

Distorted vs. Unwarped image