Skip to main content

Module cv

Module cv 

Source
Expand description

Classical CV — canonical implementation in specialized_libs::computer_vision::cv.

Modules§

buffer
codecs
Image codecs: PNG (encode + decode) and JPEG (decode only).
color
contours
draw
edges
error
Errors for classical CV kernels.
features
filter
flow
hist
morph
photo
sr
Classical super-resolution kernels (RGB packed u8, integer scale 2|3|4).
transform
video
Video / sequence helpers (frame ring; full demux later).

Structs§

BlobBox
FrameSequence
GrayView
Keypoint
Match
RgbView

Enums§

CvError

Constants§

DESC_LEN
MAX_SEQ_FRAMES
Max frames held in a fixed ring for biosense windows.

Functions§

bicubic_u8
Bicubic upsample RGB8. out ≥ w*scale * h*scale * 3. Scale ∈ {2,3,4}.
bilateral_denoise_u8
Bilateral denoise on a u8 image.
bilinear_u8
Bilinear upsample RGB8. out ≥ w*scale * h*scale * 3. Scale ∈ {2,3,4}.
box_blur_u8
Box blur with odd radius r (kernel 2r+1). out ≥ w*h.
brief_desc_u8
Write n descriptors into out (n * DESC_LEN bytes).
canny_u8
Approximate Canny edges. out binary-ish 0/255. low/high thresholds on magnitude.
dilate_u8
Binary dilation on a u8 image.
draw_rect_u8
Draws a rect on a u8 image.
equalize_hist_u8
Histogram equalization on a u8 image.
erode_u8
Binary erosion on a u8 image.
fast_corners_u8
Detect FAST corners. out caller-buffered.
find_external_blobs
Find up to out.len() external blobs where pixel ≥ thresh.
gaussian_blur_u8
Fixed 3×3 Gaussian. out ≥ w*h.
hamming_match
Match query descriptors to train. out one match per query (best).
histogram_u8
Write 256 bin counts into bins.
lanczos3_u8
Lanczos-3 upsample RGB8. out ≥ w*scale * h*scale * 3. Scale ∈ {2,3,4}.
lucas_kanade_step
Estimate flow from prev to next for each keypoint. Writes dx,dy into flow as pairs.
median_blur_u8
Median blur on a u8 image.
rgb_to_gray_u8
Convert packed RGB8 to Gray8. out length ≥ width*height.
sobel_mag_u8
Sobel magnitude on a u8 image.
synthetic_pulse_sequence
Load a synthetic pulsing sequence for tests / demos (no file demux).
warp_affine_u8
m = [a,b,c, d,e,f] maps output → input.
warp_perspective_u8
Perspective warp on a u8 image.