Module imgproc_rs::util[][src]

A module for image utility functions

Modules

constants

A module for useful image constants

Functions

apply_1d_kernel

Applies a 1D kernel

apply_2d_kernel

Applies a 2D kernel

clamp_zero

Returns 0 if x is less than 0; x if not

cubic_weighting_fn

Cubic weighting function for bicubic interpolation

distance

Calculates the distance between two points

gaussian_fn

Calculates the Gaussian function for G_sigma(x)

generate_gaussian_kernel

Generates a Gaussian kernel

generate_histogram_percentiles

A helper function for histogram equalization

generate_log_kernel

Generates a Laplacian of Gaussian kernel

generate_lookup_table

Populates table with the appropriate values based on function f

generate_spatial_mat

Generates a matrix of distances relative to the center of the matrix

generate_summed_area_table

Generates a summed-area table in the format of another Image of the same type and dimensions as input

get_2d_coords

Converts 1D vector index to 2D matrix coordinates

lab_to_xyz_fn

A helper function for the colorspace conversion from CIELAB to CIE XYZ

lanczos_kernel

Lanczos kernel

max_3

Returns the maximum of three f64 values

max_4

Returns the maximum of four f64 values

min_3

Returns the minimum of three f64 values

min_4

Returns the minimum of four f64 values

rectangular_intensity_sum

Computes the sum of pixel intensities over a rectangular region with top left corner located at (x_0, y_0) and bottom right corner located at (x_1, y_1)

separate_kernel

If kernel is separable, returns the (vertical kernel, horizontal kernel); otherwise returns None

sinc_norm

Normalized sinc function

vector_mul

Returns the result of the multiplication of a square matrix by a vector

vector_mul_mut

Returns the result of the multiplication of a square matrix by a vector in output

xyz_to_lab_fn

A helper function for the colorspace conversion from CIE XYZ to CIELAB

xyz_tristimulus_vals

Returns a tuple representing the XYZ tristimulus values for a given reference white value