Skip to main content

hdc_pattern_recognition

Function hdc_pattern_recognition 

Source
pub fn hdc_pattern_recognition<T>(
    image: ArrayView2<'_, T>,
    patterns: &[(&ArrayView2<'_, T>, &str)],
    config: &HDCConfig,
) -> NdimageResult<Vec<PatternMatch>>
where T: Float + FromPrimitive + Copy + Send + Sync,
Expand description

HDC-based pattern recognition

Recognize patterns in images using stored hypervector representations.

§Arguments

  • image - Input image to search
  • patterns - Known patterns with labels
  • config - HDC configuration

§Returns

Vector of pattern matches found in the image