几何变换(仿射、透视、Seam Carving、金字塔、极坐标)
| 项目 | 数量 |
|---|---|
| 公开函数 | 77 |
| 公开类型 | 2 |
| 常量 | 0 |
| 错误类型 | 0 |
pub(all) struct AffineMatrix {
pub(all) struct PerspectiveMatrix {pub fn build_gaussian_pyramid(@types.Image, Int) -> Array[@types.Image] raise @types.LoadError
pub fn build_gaussian_pyramid_16(@types.Image16, Int) -> Array[@types.Image16] raise @types.LoadError
pub fn build_gaussian_pyramid_f(@types.ImageF, Int) -> Array[@types.ImageF] raise @types.LoadError
pub fn build_laplacian_pyramid(@types.Image, Int) -> Array[@types.Image] raise @types.LoadError
pub fn build_laplacian_pyramid_16(@types.Image16, Int) -> Array[@types.Image16] raise @types.LoadError
pub fn build_laplacian_pyramid_float(@types.ImageF, Int) -> Array[@types.ImageF] raise @types.LoadError
pub fn compute_energy(@types.Image) -> Array[Double]
pub fn compute_energy_16(@types.Image16) -> Array[Double]
pub fn compute_energy_f(@types.ImageF) -> Array[Double]
pub fn crop(@types.Image, Int, Int, Int, Int) -> @types.Image raise @types.LoadError
pub fn crop_16(@types.Image16, Int, Int, Int, Int) -> @types.Image16 raise @types.LoadError
pub fn crop_f(@types.ImageF, Int, Int, Int, Int) -> @types.ImageF raise @types.LoadError
pub fn draw_circle(@types.Image, Int, Int, Int, Array[Byte], thickness? : Int, fill? : Bool) -> @types.Image
pub fn draw_circle_16(@types.Image16, Int, Int, Int, Array[Int], thickness? : Int, fill? : Bool) -> @types.Image16
pub fn draw_circle_f(@types.ImageF, Int, Int, Int, Array[Float], thickness? : Int, fill? : Bool) -> @types.ImageF
pub fn draw_copy(@types.Image, @types.Image, Int, Int) -> @types.Image raise @types.LoadError
pub fn draw_line(@types.Image, Int, Int, Int, Int, Array[Byte], thickness? : Int) -> @types.Image
pub fn draw_line_16(@types.Image16, Int, Int, Int, Int, Array[Int], thickness? : Int) -> @types.Image16
pub fn draw_line_f(@types.ImageF, Int, Int, Int, Int, Array[Float], thickness? : Int) -> @types.ImageF
pub fn draw_over(@types.Image, @types.Image, Int, Int) -> @types.Image raise @types.LoadError
pub fn draw_polygon(@types.Image, Array[(Int, Int)], Array[Byte], thickness? : Int, fill? : Bool) -> @types.Image
pub fn draw_polygon_16(@types.Image16, Array[(Int, Int)], Array[Int], thickness? : Int) -> @types.Image16
pub fn draw_polygon_f(@types.ImageF, Array[(Int, Int)], Array[Float], thickness? : Int) -> @types.ImageF
pub fn draw_rectangle(@types.Image, Int, Int, Int, Int, Array[Byte], thickness? : Int, fill? : Bool) -> @types.Image
pub fn draw_rectangle_16(@types.Image16, Int, Int, Int, Int, Array[Int], thickness? : Int, fill? : Bool) -> @types.Image16
pub fn draw_rectangle_f(@types.ImageF, Int, Int, Int, Int, Array[Float], thickness? : Int, fill? : Bool) -> @types.ImageF
pub fn find_horizontal_seam(Array[Double], Int, Int) -> Array[Int]
pub fn find_vertical_seam(Array[Double], Int, Int) -> Array[Int]
pub fn flip_horizontal(@types.Image) -> @types.Image
pub fn flip_horizontal_16(@types.Image16) -> @types.Image16
pub fn flip_horizontal_f(@types.ImageF) -> @types.ImageF
pub fn flip_vertical(@types.Image) -> @types.Image
pub fn flip_vertical_16(@types.Image16) -> @types.Image16
pub fn flip_vertical_f(@types.ImageF) -> @types.ImageF
pub fn get_affine_transform(Array[(Float, Float)], Array[(Float, Float)]) -> AffineMatrix?
pub fn get_perspective_transform(Array[(Float, Float)], Array[(Float, Float)]) -> PerspectiveMatrix?
pub fn get_rotation_matrix_2d((Float, Float), Float, Float) -> AffineMatrix
pub fn multi_band_blend(@types.Image, @types.Image, @types.Image, num_bands? : Int) -> @types.Image raise @types.LoadError
pub fn multi_band_blend_16(@types.Image16, @types.Image16, @types.Image16, num_bands? : Int) -> @types.Image16 raise @types.LoadError
pub fn multi_band_blend_f(@types.ImageF, @types.ImageF, @types.ImageF, num_bands? : Int) -> @types.ImageF raise @types.LoadError
pub fn pyr_down(@types.Image) -> @types.Image raise @types.LoadError
pub fn pyr_down_16(@types.Image16) -> @types.Image16 raise @types.LoadError
pub fn pyr_down_f(@types.ImageF) -> @types.ImageF raise @types.LoadError
pub fn pyr_up(@types.Image) -> @types.Image raise @types.LoadError
pub fn pyr_up_16(@types.Image16) -> @types.Image16 raise @types.LoadError
pub fn pyr_up_f(@types.ImageF) -> @types.ImageF raise @types.LoadError
pub fn remove_horizontal_seam(@types.Image, Array[Int]) -> @types.Image
pub fn remove_horizontal_seam_16(@types.Image16, Array[Int]) -> @types.Image16
pub fn remove_horizontal_seam_f(@types.ImageF, Array[Int]) -> @types.ImageF
pub fn remove_vertical_seam(@types.Image, Array[Int]) -> @types.Image
pub fn remove_vertical_seam_16(@types.Image16, Array[Int]) -> @types.Image16
pub fn remove_vertical_seam_f(@types.ImageF, Array[Int]) -> @types.ImageF
pub fn resize_16(@types.Image16, Int, Int) -> @types.Image16
pub fn resize_f(@types.ImageF, Int, Int) -> @types.ImageF
pub fn resize_to_contain(@types.Image, Int, Int, Array[Byte]) -> @types.Image raise @types.LoadError
pub fn resize_to_cover(@types.Image, Int, Int) -> @types.Image raise @types.LoadError
pub fn rotate(@types.Image, Float) -> @types.Image
pub fn rotate_180(@types.Image) -> @types.Image
pub fn rotate_180_16(@types.Image16) -> @types.Image16
pub fn rotate_180_f(@types.ImageF) -> @types.ImageF
pub fn rotate_270(@types.Image) -> @types.Image
pub fn rotate_270_16(@types.Image16) -> @types.Image16
pub fn rotate_270_f(@types.ImageF) -> @types.ImageF
pub fn rotate_90(@types.Image) -> @types.Image
pub fn rotate_90_16(@types.Image16) -> @types.Image16
pub fn rotate_90_f(@types.ImageF) -> @types.ImageF
pub fn seam_carve_resize(@types.Image, Int, Int) -> @types.Image raise @types.LoadError
pub fn seam_carve_resize_16(@types.Image16, Int, Int) -> @types.Image16 raise @types.LoadError
pub fn seam_carve_resize_f(@types.ImageF, Int, Int) -> @types.ImageF raise @types.LoadError
pub fn transpose_16(@types.Image16) -> @types.Image16
pub fn transpose_f(@types.ImageF) -> @types.ImageF
pub fn warp_affine(@types.Image, (Float, Float, Float, Float, Float, Float), Int, Int) -> @types.Image
pub fn warp_affine_16(@types.Image16, (Float, Float, Float, Float, Float, Float), Int, Int) -> @types.Image16
pub fn warp_affine_f(@types.ImageF, (Float, Float, Float, Float, Float, Float), Int, Int) -> @types.ImageF
pub fn warp_perspective(@types.Image, PerspectiveMatrix, Int, Int) -> @types.Image
pub fn warp_perspective_16(@types.Image16, PerspectiveMatrix, Int, Int) -> @types.Image16
pub fn warp_perspective_f(@types.ImageF, PerspectiveMatrix, Int, Int) -> @types.ImageFpub(all) struct AffineMatrix {
a : Float
b : Float
c : Float
d : Float
e : Float
f : Float
}pub(all) struct PerspectiveMatrix {
m00 : Float
m01 : Float
m02 : Float
m10 : Float
m11 : Float
m12 : Float
m20 : Float
m21 : Float
m22 : Float
}fn build_gaussian_pyramid(img : core/types.Image, levels : Int) -> Array[core/types.Image] raise core/types.LoadErrorfn build_gaussian_pyramid_16(img : core/types.Image16, levels : Int) -> Array[core/types.Image16] raise core/types.LoadErrorfn build_gaussian_pyramid_f(img : core/types.ImageF, levels : Int) -> Array[core/types.ImageF] raise core/types.LoadErrorfn build_laplacian_pyramid(img : core/types.Image, levels : Int) -> Array[core/types.Image] raise core/types.LoadErrorfn build_laplacian_pyramid_16(img : core/types.Image16, levels : Int) -> Array[core/types.Image16] raise core/types.LoadErrorfn build_laplacian_pyramid_float(img : core/types.ImageF, levels : Int) -> Array[core/types.ImageF] raise core/types.LoadErrorfn crop(img : core/types.Image, x : Int, y : Int, w : Int, h : Int) -> core/types.Image raise core/types.LoadErrorfn crop_16(img : core/types.Image16, x : Int, y : Int, w : Int, h : Int) -> core/types.Image16 raise core/types.LoadErrorfn crop_f(img : core/types.ImageF, x : Int, y : Int, w : Int, h : Int) -> core/types.ImageF raise core/types.LoadErrorfn crop_region(img : core/types.Image, region : core/types.Region) -> core/types.Imagefn draw_circle(img : core/types.Image, cx : Int, cy : Int, r : Int, color : Array[Byte], thickness? : Int, fill? : Bool) -> core/types.Imagefn draw_circle_16(img : core/types.Image16, cx : Int, cy : Int, r : Int, color : Array[Int], thickness? : Int, fill? : Bool) -> core/types.Image16fn draw_circle_f(img : core/types.ImageF, cx : Int, cy : Int, r : Int, color : Array[Float], thickness? : Int, fill? : Bool) -> core/types.ImageFfn draw_copy(dst : core/types.Image, src : core/types.Image, x : Int, y : Int) -> core/types.Image raise core/types.LoadErrorfn draw_line(img : core/types.Image, x1 : Int, y1 : Int, x2 : Int, y2 : Int, color : Array[Byte], thickness? : Int) -> core/types.Imagefn draw_line_16(img : core/types.Image16, x1 : Int, y1 : Int, x2 : Int, y2 : Int, color : Array[Int], thickness? : Int) -> core/types.Image16fn draw_line_f(img : core/types.ImageF, x1 : Int, y1 : Int, x2 : Int, y2 : Int, color : Array[Float], thickness? : Int) -> core/types.ImageFfn draw_over(dst : core/types.Image, src : core/types.Image, x : Int, y : Int) -> core/types.Image raise core/types.LoadErrorfn draw_rectangle(img : core/types.Image, x : Int, y : Int, rw : Int, rh : Int, color : Array[Byte], thickness? : Int, fill? : Bool) -> core/types.Imagefn draw_rectangle_16(img : core/types.Image16, x : Int, y : Int, rw : Int, rh : Int, color : Array[Int], thickness? : Int, fill? : Bool) -> core/types.Image16fn draw_rectangle_f(img : core/types.ImageF, x : Int, y : Int, rw : Int, rh : Int, color : Array[Float], thickness? : Int, fill? : Bool) -> core/types.ImageFfn flip_horizontal_16(img : core/types.Image16) -> core/types.Image16fn flip_horizontal_f(img : core/types.ImageF) -> core/types.ImageFfn flip_vertical_16(img : core/types.Image16) -> core/types.Image16fn flip_vertical_f(img : core/types.ImageF) -> core/types.ImageFfn get_perspective_transform(src : Array[(Float, Float)], dst : Array[(Float, Float)]) -> PerspectiveMatrix?fn multi_band_blend(img_a : core/types.Image, img_b : core/types.Image, mask : core/types.Image, num_bands? : Int) -> core/types.Image raise core/types.LoadErrorfn multi_band_blend_16(img_a : core/types.Image16, img_b : core/types.Image16, mask : core/types.Image16, num_bands? : Int) -> core/types.Image16 raise core/types.LoadErrorfn multi_band_blend_f(img_a : core/types.ImageF, img_b : core/types.ImageF, mask : core/types.ImageF, num_bands? : Int) -> core/types.ImageF raise core/types.LoadErrorfn pyr_down(img : core/types.Image) -> core/types.Image raise core/types.LoadErrorfn pyr_down_16(img : core/types.Image16) -> core/types.Image16 raise core/types.LoadErrorfn pyr_down_f(img : core/types.ImageF) -> core/types.ImageF raise core/types.LoadErrorfn pyr_up(img : core/types.Image) -> core/types.Image raise core/types.LoadErrorfn pyr_up_16(img : core/types.Image16) -> core/types.Image16 raise core/types.LoadErrorfn pyr_up_f(img : core/types.ImageF) -> core/types.ImageF raise core/types.LoadErrorfn resize_16(img : core/types.Image16, new_w : Int, new_h : Int) -> core/types.Image16fn resize_f(img : core/types.ImageF, new_w : Int, new_h : Int) -> core/types.ImageFfn resize_subsample(img : core/types.Image, out_w : Int, out_h : Int) -> core/types.Image raise core/types.LoadErrorfn resize_to_contain(img : core/types.Image, target_w : Int, target_h : Int, fill_color : Array[Byte]) -> core/types.Image raise core/types.LoadErrorfn resize_to_cover(img : core/types.Image, target_w : Int, target_h : Int) -> core/types.Image raise core/types.LoadErrorfn rotate(img : core/types.Image, angle_degrees : Float) -> core/types.Imagefn rotate_180_16(img : core/types.Image16) -> core/types.Image16fn rotate_180_f(img : core/types.ImageF) -> core/types.ImageFfn rotate_270_16(img : core/types.Image16) -> core/types.Image16fn rotate_270_f(img : core/types.ImageF) -> core/types.ImageFfn rotate_90_16(img : core/types.Image16) -> core/types.Image16fn rotate_90_f(img : core/types.ImageF) -> core/types.ImageFfn seam_carve_resize(img : core/types.Image, new_w : Int, new_h : Int) -> core/types.Image raise core/types.LoadErrorfn seam_carve_resize_16(img : core/types.Image16, new_w : Int, new_h : Int) -> core/types.Image16 raise core/types.LoadErrorfn seam_carve_resize_f(img : core/types.ImageF, new_w : Int, new_h : Int) -> core/types.ImageF raise core/types.LoadErrorfn thumbnail(img : core/types.Image, max_side : Int) -> core/types.Image raise core/types.LoadErrorfn thumbnail_budgeted(img : core/types.Image, max_side : Int, budget : core/types.AllocBudget) -> core/types.Image raise core/types.ImageErrorfn thumbnail_dims(width : Int, height : Int, max_side : Int) -> (Int, Int)fn transpose_16(img : core/types.Image16) -> core/types.Image16fn transpose_f(img : core/types.ImageF) -> core/types.ImageFfn warp_affine(img : core/types.Image, matrix : (Float, Float, Float, Float, Float, Float), new_w : Int, new_h : Int) -> core/types.Imagefn warp_affine_16(img : core/types.Image16, matrix : (Float, Float, Float, Float, Float, Float), new_w : Int, new_h : Int) -> core/types.Image16fn warp_affine_f(img : core/types.ImageF, matrix : (Float, Float, Float, Float, Float, Float), new_w : Int, new_h : Int) -> core/types.ImageFfn warp_perspective(img : core/types.Image, matrix : PerspectiveMatrix, new_w : Int, new_h : Int) -> core/types.Imagefn warp_perspective_16(img : core/types.Image16, matrix : PerspectiveMatrix, new_w : Int, new_h : Int) -> core/types.Image16fn warp_perspective_f(img : core/types.ImageF, matrix : PerspectiveMatrix, new_w : Int, new_h : Int) -> core/types.ImageFInstall
Download zipMoonBit image processing: color, transform, filter, edge, feature, enhance, segment, detection.