20.8.2 Image Transformations


Geometric Transformation

Geometric transformation is widely used in geometric distortion adjustment and thus considered an important pre-process. Besides, some transfer can also be used in image creation, such as Flip and Shear. Origin supports many geometric transformations including:

Transform Description Illustration
Crop Crop image to a rectangle region.

It is useful when dealing with large size image and only a small region is interested.

Image transform 01.png
Trim[1] Trim the "blank" space around the edge(s) of image detected by a specified threshold setting

It is commonly used to cut off a single or multiple edges from an image with intensity change at the edge(s).

Image transform 02.png
Resize[2] Resize image by the specified width and/or height. Image transform 03.png
Flip Flip image horizontally, vertically or both.

It can be used to create a "mirror image".

Image transform 04.png
Offset and Translate translates (moves) the image in the x and y directions by a specified number of pixels.

It can be used when comparing a pair of images with an offset between each other.

Image transform 05.png
Rotation Rotate image region by a specified angle Image transform 06.png
Rotation Shear/Affine Shear/Affine image by a specified angle。

It can be used in creating a 3D projection in a 2D image.

Image transform 07.png
[1] Is there any difference between Crop and Trim?

In most cases, you can choose to crop an interested part of an image or trim out the space outside the interested part. However, you may find Trim extremely useful when working on an image with a transparent background and gradually faded out edges. In this case, it is tricky to identify the exact edge to crop. However, Trim can detect it automatically, see a simple example here.


[2] What's the difference between Transformation: Resize Image and Conversion: Image Scale?

Resize Image changes the image size by the specified width and height. In other words, Resize Image resizes width and height independently and won't keep the original aspect ratio, so it may lead to distortion. Image Scale on the other hand, keeps the aspect ratio and be "cut off" if the rescaled image is expanded outside the layer.

Other Transform

Besides, for image color, Origin also allows you to invert colors which is popular in film processing.

Transform Description Illustration
Invert Invert colors inside ROI Image transform 08.png