Unwarp an Image
An EWorldShape object In a general content, the term object should be understood with the meaning of a class instance. In EasyObject, an object is a maximally-sized area of adjacent connected pixels belonging to the layer foreground. 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. |
Single model versus multiple viewing conditions
● | To correct some distortion related to the imaging process (perspective effect, optical aberrations, ...). |
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 Geometrical property of a coded element. points. These values are called sensor coordinates.
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.
Reference frame in world space
Unwarp
Unwarping an image is the application of the image calibration model to create a rectified, distortion-free image.
□ | To unwarp an image, use the method EWorldShape.Unwarp. |
□ | If the calibration model is fixed, it is possible to speed up the unwarping process by first computing a Look-Up-Table with EWorldShape.SetupUnwarp. |
Distorted vs. Unwarped image