Image processing (sunpy.image)

sunpy.image contains routines to process images (i.e. numpy arrays). The routines in this submodule are generally exposed through map-specific functions in other places.

sunpy.image Package

sunpy.image.resample Module

Image resampling methods.

Functions

resample(orig, dimensions[, method, center, ...])

Returns a new numpy.ndarray that has been resampled up or down.

reshape_image_to_4d_superpixel(img, ...)

Re-shape the two dimension input image into a a four dimensional array whose first and third dimensions express the number of original pixels in the "x" and "y" directions that form one superpixel.

sunpy.image.transform Module

Functions for geometrical image transformation and warping.

Functions

add_rotation_function(name, *, ...)

Decorator to add a rotation function to the registry of selectable implementations.

affine_transform(image, rmatrix[, order, ...])

Rotates, shifts and scales an image.

sunpy.image.coalignment Module

Deprecated since version 4.0: Use sunkit_image.coalignment instead. This module will be removed in sunpy 4.1.

This module provides routines for the co-alignment of images and MapSequence.

Currently this module provides image co-alignment by template matching. Which is partially inspired by the SSWIDL routine tr_get_disp.pro.

In this implementation, the template matching is handled via the scikit-image routine skimage.feature.match_template.

References

Functions

calculate_shift(this_layer, template)

Deprecated since version 4.0.

clip_edges(data, yclips, xclips)

Deprecated since version 4.0.

calculate_clipping(y, x)

Deprecated since version 4.0.

match_template_to_layer(layer, template)

Deprecated since version 4.0.

find_best_match_location(corr)

Deprecated since version 4.0.

get_correlation_shifts(array)

Deprecated since version 4.0.

parabolic_turning_point(y)

Deprecated since version 4.0.

check_for_nonfinite_entries(layer_image, ...)

Deprecated since version 4.0.

apply_shifts(mc, yshift, xshift[, clip])

Deprecated since version 4.0.

mapsequence_coalign_by_match_template(mc[, ...])

Deprecated since version 4.0.

calculate_match_template_shift(mc[, ...])

Deprecated since version 4.0.