Back to FabImage Library website

You are here: Start » Function Reference » Computer Vision » Template Matching » MergeSingleLocationResults

MergeSingleLocationResults


Header: FIL.h
Namespace: fil
Module: MatchingBasic

Combines results from multiple LocateSingleObject instances.

Syntax

C++
C#
 
void fil::MergeSingleLocationResults
(
	const ftl::Conditional<fil::Object2D>& inObject1,
	const ftl::Conditional<fil::Object2D>& inObject2,
	const ftl::Conditional<fil::Object2D>& inObject3,
	const ftl::Conditional<fil::Object2D>& inObject4,
	float inMinScore,
	ftl::Conditional<fil::Object2D>& outObject,
	ftl::Conditional<int>& outIndex
)

Parameters

Name Type Range Default Description
Input value
inObject1 const Conditional<Object2D>&
Input value
inObject2 const Conditional<Object2D>&
Input value
inObject3 const Conditional<Object2D>&
Input value
inObject4 const Conditional<Object2D>&
Input value
inMinScore float -1.0 - 1.0 0.0f
Output value
outObject Conditional<Object2D>&
Output value
outIndex Conditional<int>&

In-place Processing

This function supports in-place data processing - you can pass the same reference to inObject1 and outObject, inObject2 and outObject, inObject3 and outObject, inObject4 and outObject

Read more about In-place Computation.

Description

Filter selects the best matching object from the given matching objects.

This filter is especially useful for finding big objects by using smaller template models instead of the large model.

This filter will return a valid object location even if object is partially covered.

Examples

Object location found based on two matching objects(red and green).

Remarks

Each template matching object which is used in filter must have set this same reference frame.

See Also