ImageTransformations.jl
Introduction
Image Transformation is the process of changing the coordinate system of an image by resizing, rotating, etc. These operations have various applications, e.g, medical image registration.
Installation
(v1.0) pkg> add ImageTransformationsKey functions
The exported functions in this package include
restrictfor 2-fold down samplingimresizefor arbitrary resizingimrotatefor image rotationwarpfor general image warping, and related functionsWarpedViewwarpedviewInvWarpedViewinvwarpedview
These functions all have docstrings that give more details about their usage.
There are in-place version of many of the functions, e.g., imresize! etc.
Examples
- Resize
using ImageTransformations, TestImages
img = testimage("mandrill")
img_small = imresize(img, ratio=1/8)
img_medium = imresize(img_small, size(img_small).*2)Resulting images (small and medium):

- Warping
using ImageTransformations, TestImages, CoordinateTransformations, Rotations
img = testimage("camera");
# define transformation
trfm = recenter(RotMatrix(pi/8), center(img));
imgw = warp(img, trfm);Resulting image: 