EMatcher::LearnPattern

Learns a pattern to subsequently match in an image.

Namespace: Euresys::Open_eVision

[C++]

void LearnPattern(
   EROIBW8* pattern
)

void LearnPattern(
   EROIC24* pattern
)

void LearnPattern(
   EROIBW8* pattern,
   const ERegion& region
)

void LearnPattern(
   EROIC24* pattern,
   const ERegion& region
)

void LearnPattern(
   EROIBW8* pattern,
   const EFrame& frame
)

void LearnPattern(
   EROIC24* pattern,
   const EFrame& frame
)

void LearnPattern(
   EROIBW8* pattern,
   const ERegion& region,
   const EFrame& frame
)

void LearnPattern(
   EROIC24* pattern,
   const ERegion& region,
   const EFrame& frame
)

Parameters

pattern

Pattern to learn.

region

Region in the pattern image to consider

frame

Reference frame of the learned image

Remarks

The maximum size for a pattern is (sqrt(Minimum Reduced Area) - 1) * 2^8. For the default Minimum Reduced Area of 64, this corresponds to a 1792x1792 maximum size. Increasing the Minimum Reduced Area enables larger pattern size but reduces the processing speed.

When a region is given, the method will ignore the pixels outside the region by internally setting them to 0 and setting EMatcher::DontCareThreshold to 1 if it wasn't set by the user. Thus, when working with an ERegion, all pixels that are black in the pattern will be discarded.

Consequently, when using binary images, the value 0 shouldn't be used if you use an ERegion for learning. 0's in your images should be replaced by 1's. This can be done with the EArithmeticLogicOperation.Add mode of EasyImage::Oper.

EMatcher.LearnPattern

Learns a pattern to subsequently match in an image.

Namespace: Euresys.Open_eVision

[C#]

void LearnPattern(
   EROIBW8 pattern
)

void LearnPattern(
   EROIC24 pattern
)

void LearnPattern(
   EROIBW8 pattern,
   ERegion region
)

void LearnPattern(
   EROIC24 pattern,
   ERegion region
)

void LearnPattern(
   EROIBW8 pattern,
   EFrame frame
)

void LearnPattern(
   EROIC24 pattern,
   EFrame frame
)

void LearnPattern(
   EROIBW8 pattern,
   ERegion region,
   EFrame frame
)

void LearnPattern(
   EROIC24 pattern,
   ERegion region,
   EFrame frame
)

Parameters

pattern

Pattern to learn.

region

Region in the pattern image to consider

frame

Reference frame of the learned image

Remarks

The maximum size for a pattern is (sqrt(Minimum Reduced Area) - 1) * 2^8. For the default Minimum Reduced Area of 64, this corresponds to a 1792x1792 maximum size. Increasing the Minimum Reduced Area enables larger pattern size but reduces the processing speed.

When a region is given, the method will ignore the pixels outside the region by internally setting them to 0 and setting EMatcher.DontCareThreshold to 1 if it wasn't set by the user. Thus, when working with an ERegion, all pixels that are black in the pattern will be discarded.

Consequently, when using binary images, the value 0 shouldn't be used if you use an ERegion for learning. 0's in your images should be replaced by 1's. This can be done with the EArithmeticLogicOperation.Add mode of EasyImage.Oper.

EMatcher.LearnPattern

Learns a pattern to subsequently match in an image.

Module: open_evision

[Python]

LearnPattern(
    pattern: EROIBW8
) -> None

LearnPattern(
    pattern: EROIC24
) -> None

LearnPattern(
    pattern: EROIBW8
    region: ERegion
) -> None

LearnPattern(
    pattern: EROIC24
    region: ERegion
) -> None

LearnPattern(
    pattern: EROIBW8
    frame: EFrame
) -> None

LearnPattern(
    pattern: EROIC24
    frame: EFrame
) -> None

LearnPattern(
    pattern: EROIBW8
    region: ERegion
    frame: EFrame
) -> None

LearnPattern(
    pattern: EROIC24
    region: ERegion
    frame: EFrame
) -> None

Parameters

pattern

Pattern to learn.

region

Region in the pattern image to consider

frame

Reference frame of the learned image

Remarks

The maximum size for a pattern is (sqrt(Minimum Reduced Area) - 1) * 2^8. For the default Minimum Reduced Area of 64, this corresponds to a 1792x1792 maximum size. Increasing the Minimum Reduced Area enables larger pattern size but reduces the processing speed.

When a region is given, the method will ignore the pixels outside the region by internally setting them to 0 and setting EMatcher.DontCareThreshold to 1 if it wasn't set by the user. Thus, when working with an ERegion, all pixels that are black in the pattern will be discarded.

Consequently, when using binary images, the value 0 shouldn't be used if you use an ERegion for learning. 0's in your images should be replaced by 1's. This can be done with the EArithmeticLogicOperation.Add mode of EasyImage.Oper.