use crate::image::{
AutoThreshold, BorderMode, ColorConversion, ColorMap, Connectivity, CornerScore, DistanceType,
ImageFormat, InterpolationMode, MatchTemplate, NormalizationConfig, PolarMode,
};
use crate::{Image, Matrix, Result};
impl Image {
pub fn resize(
&self,
target_width: u32,
target_height: u32,
interpolation: InterpolationMode,
) -> Result<Self> {
crate::image::resize(self, target_width, target_height, interpolation)
}
pub fn crop(&self, x: u32, y: u32, width: u32, height: u32) -> Result<Self> {
crate::image::crop(self, x, y, width, height)
}
pub fn flip(&self, horizontal: bool, vertical: bool) -> Result<Self> {
crate::image::flip(self, horizontal, vertical)
}
pub fn rotate(&self, degrees: u32) -> Result<Self> {
crate::image::rotate(self, degrees)
}
pub fn pad(
&self,
left: u32,
right: u32,
top: u32,
bottom: u32,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::pad(self, left, right, top, bottom, border, border_value)
}
pub fn center_crop(&self, width: u32, height: u32) -> Result<Self> {
crate::image::center_crop(self, width, height)
}
pub fn remap(
&self,
map: &Matrix,
interpolation: InterpolationMode,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::remap(self, map, interpolation, border, border_value)
}
pub fn warp_affine(
&self,
transform: &Matrix,
width: u32,
height: u32,
interpolation: InterpolationMode,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::warp_affine(
self,
transform,
width,
height,
interpolation,
border,
border_value,
)
}
pub fn warp_perspective(
&self,
transform: &Matrix,
width: u32,
height: u32,
interpolation: InterpolationMode,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::warp_perspective(
self,
transform,
width,
height,
interpolation,
border,
border_value,
)
}
pub fn threshold_binary(&self, threshold: f32, max_value: f32) -> Result<Self> {
crate::image::threshold_binary(self, threshold, max_value)
}
pub fn threshold_binary_inv(&self, threshold: f32, max_value: f32) -> Result<Self> {
crate::image::threshold_binary_inv(self, threshold, max_value)
}
pub fn threshold_truncate(&self, threshold: f32) -> Result<Self> {
crate::image::threshold_truncate(self, threshold)
}
pub fn threshold_to_zero(&self, threshold: f32) -> Result<Self> {
crate::image::threshold_to_zero(self, threshold)
}
pub fn threshold_to_zero_inv(&self, threshold: f32) -> Result<Self> {
crate::image::threshold_to_zero_inv(self, threshold)
}
pub fn in_range(&self, low: f32, high: f32, true_value: f32) -> Result<Self> {
crate::image::in_range(self, low, high, true_value)
}
pub fn clamp(&self, low: f32, high: f32) -> Result<Self> {
crate::image::clamp(self, low, high)
}
pub fn invert(&self, max_value: f32) -> Result<Self> {
crate::image::invert(self, max_value)
}
pub fn brightness_contrast(&self, brightness: f32, contrast: f32) -> Result<Self> {
crate::image::brightness_contrast(self, brightness, contrast)
}
pub fn gamma_contrast(&self, gamma: f32, gain: f32) -> Result<Self> {
crate::image::gamma_contrast(self, gamma, gain)
}
pub fn solarize(&self, threshold: f32, max_value: f32) -> Result<Self> {
crate::image::solarize(self, threshold, max_value)
}
pub fn posterize(&self, levels: u32, low: f32, high: f32) -> Result<Self> {
crate::image::posterize(self, levels, low, high)
}
pub fn grayscale(&self) -> Result<Self> {
crate::image::grayscale(self)
}
pub fn alpha_blend(&self, right: &Image, alpha: f32) -> Result<Self> {
crate::image::alpha_blend(self, right, alpha)
}
pub fn composite(&self, right: &Image, mask: &Image) -> Result<Self> {
crate::image::composite(self, right, mask)
}
pub fn erase(&self, x: u32, y: u32, width: u32, height: u32, value: f32) -> Result<Self> {
crate::image::erase(self, x, y, width, height, value)
}
pub fn color_twist(&self, transform: &Matrix) -> Result<Self> {
crate::image::color_twist(self, transform)
}
pub fn channel_reorder(&self, order: [u32; 4], output_format: ImageFormat) -> Result<Self> {
crate::image::channel_reorder(self, order, output_format)
}
pub fn gaussian_noise(&self, mean: f32, stddev: f32, seed: u64) -> Result<Self> {
crate::image::gaussian_noise(self, mean, stddev, seed)
}
pub fn salt_pepper_noise(
&self,
probability: f32,
salt_value: f32,
pepper_value: f32,
seed: u64,
) -> Result<Self> {
crate::image::salt_pepper_noise(self, probability, salt_value, pepper_value, seed)
}
pub fn convolve_2d(
&self,
kernel: &Matrix,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::convolve_2d(self, kernel, border, border_value)
}
pub fn separable_convolve_2d(
&self,
kernel_x: &Matrix,
kernel_y: &Matrix,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::separable_convolve_2d(self, kernel_x, kernel_y, border, border_value)
}
pub fn average_blur(&self, width: u32, height: u32, border: BorderMode) -> Result<Self> {
crate::image::average_blur(self, width, height, border)
}
pub fn sobel(&self, dx: u32, dy: u32, border: BorderMode) -> Result<Self> {
crate::image::sobel(self, dx, dy, border)
}
pub fn scharr(&self, dx: u32, dy: u32, border: BorderMode) -> Result<Self> {
crate::image::scharr(self, dx, dy, border)
}
pub fn laplacian(&self, border: BorderMode) -> Result<Self> {
crate::image::laplacian(self, border)
}
pub fn erode(
&self,
width: u32,
height: u32,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::erode(self, width, height, border, border_value)
}
pub fn dilate(
&self,
width: u32,
height: u32,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::dilate(self, width, height, border, border_value)
}
pub fn morphology_open(
&self,
width: u32,
height: u32,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::morphology_open(self, width, height, border, border_value)
}
pub fn morphology_close(
&self,
width: u32,
height: u32,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::morphology_close(self, width, height, border, border_value)
}
pub fn morphology_gradient(
&self,
width: u32,
height: u32,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::morphology_gradient(self, width, height, border, border_value)
}
pub fn gaussian_blur(&self, sigma: f32, kernel_size: u32) -> Result<Self> {
crate::image::gaussian_blur(self, sigma, kernel_size)
}
pub fn sharpen(&self, amount: f32, border: BorderMode) -> Result<Self> {
crate::image::sharpen(self, amount, border)
}
pub fn median_blur(&self, kernel_size: u32, border: BorderMode) -> Result<Self> {
crate::image::median_blur(self, kernel_size, border)
}
pub fn bilateral_filter(
&self,
kernel_size: u32,
sigma_color: f32,
sigma_space: f32,
border: BorderMode,
) -> Result<Self> {
crate::image::bilateral_filter(self, kernel_size, sigma_color, sigma_space, border)
}
pub fn unsharp_mask(&self, sigma: f32, amount: f32, kernel_size: u32) -> Result<Self> {
crate::image::unsharp_mask(self, sigma, amount, kernel_size)
}
pub fn morphology_top_hat(
&self,
width: u32,
height: u32,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::morphology_top_hat(self, width, height, border, border_value)
}
pub fn morphology_black_hat(
&self,
width: u32,
height: u32,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::morphology_black_hat(self, width, height, border, border_value)
}
pub fn adaptive_threshold_mean(
&self,
kernel_size: u32,
c: f32,
max_value: f32,
border: BorderMode,
) -> Result<Self> {
crate::image::adaptive_threshold_mean(self, kernel_size, c, max_value, border)
}
pub fn adaptive_threshold_gaussian(
&self,
kernel_size: u32,
c: f32,
max_value: f32,
sigma: f32,
border: BorderMode,
) -> Result<Self> {
crate::image::adaptive_threshold_gaussian(self, kernel_size, c, max_value, sigma, border)
}
pub fn normalize(&self, parameters: NormalizationConfig) -> Result<Self> {
crate::image::normalize(self, parameters)
}
pub fn convert_color(&self, destination_format: crate::ImageFormat) -> Result<Self> {
crate::image::convert_color(self, destination_format)
}
pub fn resize_normalize(
&self,
width: u32,
height: u32,
parameters: NormalizationConfig,
) -> Result<Self> {
crate::image::resize_normalize(self, width, height, parameters)
}
pub fn segmentation_overlay(&self, mask: &Matrix, palette: &Matrix, alpha: f32) -> Result<Self> {
crate::image::segmentation_overlay(self, mask, palette, alpha)
}
pub fn calc_hist(&self, bins: u32, lower: f32, upper: f32) -> Result<Matrix> {
crate::image::calc_hist(self, bins, lower, upper)
}
pub fn equalize_hist(&self) -> Result<Self> {
crate::image::equalize_hist(self)
}
pub fn pyr_down(&self) -> Result<Self> {
crate::image::pyr_down(self)
}
pub fn pyr_up(&self) -> Result<Self> {
crate::image::pyr_up(self)
}
pub fn threshold_auto(&self, method: AutoThreshold, max_value: f32) -> Result<(Image, Matrix)> {
crate::image::threshold_auto(self, method, max_value)
}
pub fn integral(&self) -> Result<Matrix> {
crate::image::integral(self)
}
pub fn cvt_color(&self, conversion: ColorConversion) -> Result<Self> {
crate::image::cvt_color(self, conversion)
}
pub fn apply_color_map(&self, colormap: ColorMap) -> Result<Self> {
crate::image::apply_color_map(self, colormap)
}
pub fn calc_back_project(&self, histogram: &Matrix, lower: f32, upper: f32) -> Result<Self> {
crate::image::calc_back_project(self, histogram, lower, upper)
}
pub fn clahe(&self, clip_limit: f32, tile_width: u32, tile_height: u32) -> Result<Self> {
crate::image::clahe(self, clip_limit, tile_width, tile_height)
}
pub fn accumulate(&self, accumulator: &Image) -> Result<Self> {
crate::image::accumulate(self, accumulator)
}
pub fn accumulate_weighted(&self, accumulator: &Image, alpha: f32) -> Result<Self> {
crate::image::accumulate_weighted(self, accumulator, alpha)
}
pub fn moments(&self) -> Result<Matrix> {
crate::image::moments(self)
}
pub fn psnr(&self, second: &Image, peak_value: f32) -> Result<Matrix> {
crate::image::psnr(self, second, peak_value)
}
pub fn ssim(&self, second: &Image) -> Result<Matrix> {
crate::image::ssim(self, second)
}
pub fn match_template(&self, template: &Image, method: MatchTemplate) -> Result<Matrix> {
crate::image::match_template(self, template, method)
}
#[allow(clippy::too_many_arguments)]
pub fn warp_polar(
&self,
center_x: f32,
center_y: f32,
max_radius: f32,
out_width: u32,
out_height: u32,
mode: PolarMode,
interpolation: InterpolationMode,
border: BorderMode,
border_value: f32,
) -> Result<Self> {
crate::image::warp_polar(
self,
center_x,
center_y,
max_radius,
out_width,
out_height,
mode,
interpolation,
border,
border_value,
)
}
pub fn canny(
&self,
low_threshold: f32,
high_threshold: f32,
hysteresis_passes: u32,
) -> Result<Self> {
crate::image::canny(self, low_threshold, high_threshold, hysteresis_passes)
}
pub fn connected_components(
&self,
threshold: f32,
connectivity: Connectivity,
propagation_passes: u32,
) -> Result<Matrix> {
crate::image::connected_components(self, threshold, connectivity, propagation_passes)
}
pub fn distance_transform(
&self,
threshold: f32,
distance: DistanceType,
propagation_passes: u32,
) -> Result<Matrix> {
crate::image::distance_transform(self, threshold, distance, propagation_passes)
}
pub fn hough_lines(
&self,
edge_threshold: f32,
rho_step: f32,
theta_step: f32,
threshold: u32,
max_lines: u32,
) -> Result<Matrix> {
crate::image::hough_lines(
self,
edge_threshold,
rho_step,
theta_step,
threshold,
max_lines,
)
}
#[allow(clippy::too_many_arguments)]
pub fn hough_lines_p(
&self,
edge_threshold: f32,
rho_step: f32,
theta_step: f32,
threshold: u32,
max_lines: u32,
min_line_length: f32,
max_line_gap: u32,
) -> Result<Matrix> {
crate::image::hough_lines_p(
self,
edge_threshold,
rho_step,
theta_step,
threshold,
max_lines,
min_line_length,
max_line_gap,
)
}
pub fn find_contours(
&self,
threshold: f32,
connectivity: Connectivity,
max_contours: u32,
max_points: u32,
propagation_passes: u32,
) -> Result<(Matrix, Matrix)> {
crate::image::find_contours(
self,
threshold,
connectivity,
max_contours,
max_points,
propagation_passes,
)
}
#[allow(clippy::too_many_arguments)]
pub fn flood_fill(
&self,
seed_x: u32,
seed_y: u32,
value: f32,
lo_diff: f32,
up_diff: f32,
connectivity: Connectivity,
propagation_passes: u32,
) -> Result<Self> {
crate::image::flood_fill(
self,
seed_x,
seed_y,
value,
lo_diff,
up_diff,
connectivity,
propagation_passes,
)
}
pub fn draw_line(
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
color: f32,
thickness: f32,
) -> Result<Self> {
crate::image::draw_line(self, x1, y1, x2, y2, color, thickness)
}
pub fn draw_rectangle(
&self,
x: f32,
y: f32,
width: f32,
height: f32,
color: f32,
thickness: f32,
) -> Result<Self> {
crate::image::draw_rectangle(self, x, y, width, height, color, thickness)
}
pub fn draw_circle(
&self,
cx: f32,
cy: f32,
radius: f32,
color: f32,
thickness: f32,
) -> Result<Self> {
crate::image::draw_circle(self, cx, cy, radius, color, thickness)
}
pub fn fill_polygon(&self, points: &Matrix, color: f32) -> Result<Self> {
crate::image::fill_polygon(self, points, color)
}
pub fn corner_score(&self, block_size: u32, k: f32, score_type: CornerScore) -> Result<Self> {
crate::image::corner_score(self, block_size, k, score_type)
}
pub fn corner_fast(&self, arc_length: u32) -> Result<Self> {
crate::image::corner_fast(self, arc_length)
}
pub fn good_features_to_track(
&self,
max_corners: u32,
quality: f32,
min_distance: f32,
) -> Result<(Matrix, Matrix)> {
crate::image::good_features_to_track(self, max_corners, quality, min_distance)
}
pub fn orb(
&self,
max_features: u32,
quality: f32,
min_distance: f32,
levels: u32,
edge: u32,
) -> Result<(Matrix, Matrix, Matrix)> {
crate::image::orb(self, max_features, quality, min_distance, levels, edge)
}
}
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, InterpolationMode) -> Result<Image> = crate::image::resize;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, InterpolationMode) -> Result<Image> = Image::resize;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, u32, u32) -> Result<Image> = crate::image::crop;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, u32, u32) -> Result<Image> = Image::crop;
#[allow(clippy::type_complexity)]
const _: fn(&Image, bool, bool) -> Result<Image> = crate::image::flip;
#[allow(clippy::type_complexity)]
const _: fn(&Image, bool, bool) -> Result<Image> = Image::flip;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32) -> Result<Image> = crate::image::rotate;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32) -> Result<Image> = Image::rotate;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, u32, u32, BorderMode, f32) -> Result<Image> = crate::image::pad;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, u32, u32, BorderMode, f32) -> Result<Image> = Image::pad;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32) -> Result<Image> = crate::image::center_crop;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32) -> Result<Image> = Image::center_crop;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, InterpolationMode, BorderMode, f32) -> Result<Image> =
crate::image::remap;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, InterpolationMode, BorderMode, f32) -> Result<Image> = Image::remap;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, u32, u32, InterpolationMode, BorderMode, f32) -> Result<Image> =
crate::image::warp_affine;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, u32, u32, InterpolationMode, BorderMode, f32) -> Result<Image> =
Image::warp_affine;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, u32, u32, InterpolationMode, BorderMode, f32) -> Result<Image> =
crate::image::warp_perspective;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, u32, u32, InterpolationMode, BorderMode, f32) -> Result<Image> =
Image::warp_perspective;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32) -> Result<Image> = crate::image::threshold_binary;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32) -> Result<Image> = Image::threshold_binary;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32) -> Result<Image> = crate::image::threshold_binary_inv;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32) -> Result<Image> = Image::threshold_binary_inv;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32) -> Result<Image> = crate::image::threshold_truncate;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32) -> Result<Image> = Image::threshold_truncate;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32) -> Result<Image> = crate::image::threshold_to_zero;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32) -> Result<Image> = Image::threshold_to_zero;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32) -> Result<Image> = crate::image::threshold_to_zero_inv;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32) -> Result<Image> = Image::threshold_to_zero_inv;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32) -> Result<Image> = crate::image::in_range;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32) -> Result<Image> = Image::in_range;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32) -> Result<Image> = crate::image::clamp;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32) -> Result<Image> = Image::clamp;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32) -> Result<Image> = crate::image::invert;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32) -> Result<Image> = Image::invert;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32) -> Result<Image> = crate::image::brightness_contrast;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32) -> Result<Image> = Image::brightness_contrast;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32) -> Result<Image> = crate::image::gamma_contrast;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32) -> Result<Image> = Image::gamma_contrast;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32) -> Result<Image> = crate::image::solarize;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32) -> Result<Image> = Image::solarize;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32) -> Result<Image> = crate::image::posterize;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32) -> Result<Image> = Image::posterize;
#[allow(clippy::type_complexity)]
const _: fn(&Image) -> Result<Image> = crate::image::grayscale;
#[allow(clippy::type_complexity)]
const _: fn(&Image) -> Result<Image> = Image::grayscale;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image, f32) -> Result<Image> = crate::image::alpha_blend;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image, f32) -> Result<Image> = Image::alpha_blend;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image, &Image) -> Result<Image> = crate::image::composite;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image, &Image) -> Result<Image> = Image::composite;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, u32, u32, f32) -> Result<Image> = crate::image::erase;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, u32, u32, f32) -> Result<Image> = Image::erase;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix) -> Result<Image> = crate::image::color_twist;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix) -> Result<Image> = Image::color_twist;
#[allow(clippy::type_complexity)]
const _: fn(&Image, [u32; 4], ImageFormat) -> Result<Image> = crate::image::channel_reorder;
#[allow(clippy::type_complexity)]
const _: fn(&Image, [u32; 4], ImageFormat) -> Result<Image> = Image::channel_reorder;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, u64) -> Result<Image> = crate::image::gaussian_noise;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, u64) -> Result<Image> = Image::gaussian_noise;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32, u64) -> Result<Image> = crate::image::salt_pepper_noise;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32, u64) -> Result<Image> = Image::salt_pepper_noise;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, BorderMode, f32) -> Result<Image> = crate::image::convolve_2d;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, BorderMode, f32) -> Result<Image> = Image::convolve_2d;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, &Matrix, BorderMode, f32) -> Result<Image> =
crate::image::separable_convolve_2d;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, &Matrix, BorderMode, f32) -> Result<Image> =
Image::separable_convolve_2d;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode) -> Result<Image> = crate::image::average_blur;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode) -> Result<Image> = Image::average_blur;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode) -> Result<Image> = crate::image::sobel;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode) -> Result<Image> = Image::sobel;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode) -> Result<Image> = crate::image::scharr;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode) -> Result<Image> = Image::scharr;
#[allow(clippy::type_complexity)]
const _: fn(&Image, BorderMode) -> Result<Image> = crate::image::laplacian;
#[allow(clippy::type_complexity)]
const _: fn(&Image, BorderMode) -> Result<Image> = Image::laplacian;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> = crate::image::erode;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> = Image::erode;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> = crate::image::dilate;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> = Image::dilate;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> = crate::image::morphology_open;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> = Image::morphology_open;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> = crate::image::morphology_close;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> = Image::morphology_close;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> = crate::image::morphology_gradient;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> = Image::morphology_gradient;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, u32) -> Result<Image> = crate::image::gaussian_blur;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, u32) -> Result<Image> = Image::gaussian_blur;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, BorderMode) -> Result<Image> = crate::image::sharpen;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, BorderMode) -> Result<Image> = Image::sharpen;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, BorderMode) -> Result<Image> = crate::image::median_blur;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, BorderMode) -> Result<Image> = Image::median_blur;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32, BorderMode) -> Result<Image> = crate::image::bilateral_filter;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32, BorderMode) -> Result<Image> = Image::bilateral_filter;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, u32) -> Result<Image> = crate::image::unsharp_mask;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, u32) -> Result<Image> = Image::unsharp_mask;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> = crate::image::morphology_top_hat;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> = Image::morphology_top_hat;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> =
crate::image::morphology_black_hat;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, BorderMode, f32) -> Result<Image> = Image::morphology_black_hat;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32, BorderMode) -> Result<Image> =
crate::image::adaptive_threshold_mean;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32, BorderMode) -> Result<Image> = Image::adaptive_threshold_mean;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32, f32, BorderMode) -> Result<Image> =
crate::image::adaptive_threshold_gaussian;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32, f32, BorderMode) -> Result<Image> =
Image::adaptive_threshold_gaussian;
#[allow(clippy::type_complexity)]
const _: fn(&Image, NormalizationConfig) -> Result<Image> = crate::image::normalize;
#[allow(clippy::type_complexity)]
const _: fn(&Image, NormalizationConfig) -> Result<Image> = Image::normalize;
#[allow(clippy::type_complexity)]
const _: fn(&Image, crate::ImageFormat) -> Result<Image> = crate::image::convert_color;
#[allow(clippy::type_complexity)]
const _: fn(&Image, crate::ImageFormat) -> Result<Image> = Image::convert_color;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, NormalizationConfig) -> Result<Image> =
crate::image::resize_normalize;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, NormalizationConfig) -> Result<Image> = Image::resize_normalize;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, &Matrix, f32) -> Result<Image> = crate::image::segmentation_overlay;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, &Matrix, f32) -> Result<Image> = Image::segmentation_overlay;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32) -> Result<Matrix> = crate::image::calc_hist;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32) -> Result<Matrix> = Image::calc_hist;
#[allow(clippy::type_complexity)]
const _: fn(&Image) -> Result<Image> = crate::image::equalize_hist;
#[allow(clippy::type_complexity)]
const _: fn(&Image) -> Result<Image> = Image::equalize_hist;
#[allow(clippy::type_complexity)]
const _: fn(&Image) -> Result<Image> = crate::image::pyr_down;
#[allow(clippy::type_complexity)]
const _: fn(&Image) -> Result<Image> = Image::pyr_down;
#[allow(clippy::type_complexity)]
const _: fn(&Image) -> Result<Image> = crate::image::pyr_up;
#[allow(clippy::type_complexity)]
const _: fn(&Image) -> Result<Image> = Image::pyr_up;
#[allow(clippy::type_complexity)]
const _: fn(&Image, AutoThreshold, f32) -> Result<(Image, Matrix)> = crate::image::threshold_auto;
#[allow(clippy::type_complexity)]
const _: fn(&Image, AutoThreshold, f32) -> Result<(Image, Matrix)> = Image::threshold_auto;
#[allow(clippy::type_complexity)]
const _: fn(&Image) -> Result<Matrix> = crate::image::integral;
#[allow(clippy::type_complexity)]
const _: fn(&Image) -> Result<Matrix> = Image::integral;
#[allow(clippy::type_complexity)]
const _: fn(&Image, ColorConversion) -> Result<Image> = crate::image::cvt_color;
#[allow(clippy::type_complexity)]
const _: fn(&Image, ColorConversion) -> Result<Image> = Image::cvt_color;
#[allow(clippy::type_complexity)]
const _: fn(&Image, ColorMap) -> Result<Image> = crate::image::apply_color_map;
#[allow(clippy::type_complexity)]
const _: fn(&Image, ColorMap) -> Result<Image> = Image::apply_color_map;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, f32, f32) -> Result<Image> = crate::image::calc_back_project;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, f32, f32) -> Result<Image> = Image::calc_back_project;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, u32, u32) -> Result<Image> = crate::image::clahe;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, u32, u32) -> Result<Image> = Image::clahe;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image) -> Result<Image> = crate::image::accumulate;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image) -> Result<Image> = Image::accumulate;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image, f32) -> Result<Image> = crate::image::accumulate_weighted;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image, f32) -> Result<Image> = Image::accumulate_weighted;
#[allow(clippy::type_complexity)]
const _: fn(&Image) -> Result<Matrix> = crate::image::moments;
#[allow(clippy::type_complexity)]
const _: fn(&Image) -> Result<Matrix> = Image::moments;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image, f32) -> Result<Matrix> = crate::image::psnr;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image, f32) -> Result<Matrix> = Image::psnr;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image) -> Result<Matrix> = crate::image::ssim;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image) -> Result<Matrix> = Image::ssim;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image, MatchTemplate) -> Result<Matrix> = crate::image::match_template;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Image, MatchTemplate) -> Result<Matrix> = Image::match_template;
#[allow(clippy::type_complexity)]
const _: fn(
&Image,
f32,
f32,
f32,
u32,
u32,
PolarMode,
InterpolationMode,
BorderMode,
f32,
) -> Result<Image> = crate::image::warp_polar;
#[allow(clippy::type_complexity)]
const _: fn(
&Image,
f32,
f32,
f32,
u32,
u32,
PolarMode,
InterpolationMode,
BorderMode,
f32,
) -> Result<Image> = Image::warp_polar;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, u32) -> Result<Image> = crate::image::canny;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, u32) -> Result<Image> = Image::canny;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, Connectivity, u32) -> Result<Matrix> = crate::image::connected_components;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, Connectivity, u32) -> Result<Matrix> = Image::connected_components;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, DistanceType, u32) -> Result<Matrix> = crate::image::distance_transform;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, DistanceType, u32) -> Result<Matrix> = Image::distance_transform;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32, u32, u32) -> Result<Matrix> = crate::image::hough_lines;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32, u32, u32) -> Result<Matrix> = Image::hough_lines;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32, u32, u32, f32, u32) -> Result<Matrix> =
crate::image::hough_lines_p;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32, u32, u32, f32, u32) -> Result<Matrix> = Image::hough_lines_p;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, Connectivity, u32, u32, u32) -> Result<(Matrix, Matrix)> =
crate::image::find_contours;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, Connectivity, u32, u32, u32) -> Result<(Matrix, Matrix)> =
Image::find_contours;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, f32, f32, f32, Connectivity, u32) -> Result<Image> =
crate::image::flood_fill;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, u32, f32, f32, f32, Connectivity, u32) -> Result<Image> =
Image::flood_fill;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32, f32, f32, f32) -> Result<Image> = crate::image::draw_line;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32, f32, f32, f32) -> Result<Image> = Image::draw_line;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32, f32, f32, f32) -> Result<Image> = crate::image::draw_rectangle;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32, f32, f32, f32) -> Result<Image> = Image::draw_rectangle;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32, f32, f32) -> Result<Image> = crate::image::draw_circle;
#[allow(clippy::type_complexity)]
const _: fn(&Image, f32, f32, f32, f32, f32) -> Result<Image> = Image::draw_circle;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, f32) -> Result<Image> = crate::image::fill_polygon;
#[allow(clippy::type_complexity)]
const _: fn(&Image, &Matrix, f32) -> Result<Image> = Image::fill_polygon;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, CornerScore) -> Result<Image> = crate::image::corner_score;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, CornerScore) -> Result<Image> = Image::corner_score;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32) -> Result<Image> = crate::image::corner_fast;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32) -> Result<Image> = Image::corner_fast;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32) -> Result<(Matrix, Matrix)> =
crate::image::good_features_to_track;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32) -> Result<(Matrix, Matrix)> = Image::good_features_to_track;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32, u32, u32) -> Result<(Matrix, Matrix, Matrix)> =
crate::image::orb;
#[allow(clippy::type_complexity)]
const _: fn(&Image, u32, f32, f32, u32, u32) -> Result<(Matrix, Matrix, Matrix)> = Image::orb;