Transform image¶
Transforms and image into another shape
Documentation¶
Algorithms¶
- crop
Crops the image to the given rectanglular area
- x:
Left edge of image
- y:
Top edge of image
- width:
Width of image
- height:
Height of image
- pad to size
Inserts the image into a larger canvas of given size with specified alignment and padding value
- width:
Width of the resulting image
- height:
Height of the resulting image
- alignment:
Alignment of the original image within the new canvas: top left, top center, top right, center left, center, center right, bottom left, bottom center, bottom right
- k:
Constant value used in padded areas
- padding
Adds independent padding to all four sides of an image
- left:
Amount of padding to add on the left side
- right:
Amount of padding to add on the right side
- top:
Amount of padding to add on the top side
- bottom:
Amount of padding to add on the bottom side
- k:
Constant value used in padded areas
- add alpha:
Adds an alpha with value 1.0 inside image, 0.0 outside
- rescale
Rescales an image by a given factor
- interpolation degree:
Degree of polynomial (0 - 5) used for interpolation. 0 - no interpolation, 1 - bi-linear interpolation, 3 - bi-cubic interpolation
- scale x:
Scale factor along X direction (horizontal)
- scale y:
Scale factor along Y direction (vertical)
More info: http://scikit-image.org/docs/0.13.x/api/skimage.transform.html#skimage.transform.rescale
- resize
Resizes an image to match the given dimensions
- width:
The new width of the image
- height:
The new height of the image
- padding:
Adds padding to fill out full width/height after aspect-correct scaling
- aspect:
Preserve aspect ratio (gives smaller size on one axis)
- interpolation degree:
Degree of polynomial (0 - 5) used for interpolation. 0 - no interpolation, 1 - bi-linear interpolation, 3 - bi-cubic interpolation
More info: http://scikit-image.org/docs/0.13.x/api/skimage.transform.html#skimage.transform.resize
- rotate
Rotates an image
- angle:
Angular degrees to rotate counterclockwise
- resize:
If true new image dimensions are calculated to exactly fit the image
More info: http://scikit-image.org/docs/0.13.x/api/skimage.transform.html#skimage.transform.rotate
Definition¶
Input ports¶
- source
Type: imageDescription: source image to filter
Output ports¶
- result
Type: imageDescription: result after filtering
Configuration¶
- add alpha (add alpha)
(no description)
- Algorithm (algorithm)
(no description)
- alignment (alignment)
(no description)
- angle (angle)
(no description)
- aspect (aspect)
(no description)
- bottom (bottom)
(no description)
- height (height)
(no description)
- interpolation degree (interpolation degree)
(no description)
- k (k)
(no description)
- left (left)
(no description)
- padding (padding)
(no description)
- resize (resize)
(no description)
- right (right)
(no description)
- scale x (scale x)
(no description)
- scale y (scale y)
(no description)
- top (top)
(no description)
- width (width)
(no description)
- x (x)
(no description)
- y (y)
(no description)
Examples¶
The node can be found in:
Implementation¶
- class node_transform.TransformFilter[source]