public static extern IntPtr imaqRefineMatches(IntPtr image, IntPtr pattern, ref PatternMatch candidatesIn, int numCandidatesIn, ref MatchPatternOptions options, ref MatchPatternAdvancedOptions advancedOptions, ref int numCandidatesref);
public static extern IntPtr imaqMatchPattern3(IntPtr image, IntPtr pattern, ref MatchPatternOptions options, ref MatchPatternAdvancedOptions advancedOptions, ref ROI roi, ref int numMatches);
public static extern IntPtr imaqMatchPattern2(IntPtr image, IntPtr pattern, ref MatchPatternOptions options, ref MatchPatternAdvancedOptions advancedOptions, Rect searchRect, ref int numMatches);