1- import { Image } from "../../image.class" ;
21import { MatchRequest } from "../../match-request.class" ;
32import { MatchResult } from "../../match-result.class" ;
4- import { Region } from "../../region.class" ;
53
64/**
75 * A Finder should provide an abstraction layer to perform
@@ -10,15 +8,6 @@ import { Region } from "../../region.class";
108 * @interface FinderInterface
119 */
1210export interface FinderInterface {
13- /**
14- * loadImage should allow to load an image from filesystem
15- *
16- * @param {string } path The filesystem path to the image
17- * @returns {* } An image
18- * @memberof VisionProviderInterface
19- */
20- loadImage ( path : string ) : any ;
21-
2211 /**
2312 * findMatch should provide an abstraction to search for an image needle
2413 * in another image haystack
@@ -38,35 +27,4 @@ export interface FinderInterface {
3827 * @memberof FinderInterface
3928 */
4029 findMatches ( matchRequest : MatchRequest ) : Promise < MatchResult [ ] > ;
41-
42- /**
43- * fromImageWithAlphaChannel should provide a way to create a library specific
44- * image with alpha channel from an abstract Image object holding raw data and image dimension
45- *
46- * @param {Image } img The input Image
47- * @param {Region } [roi] An optional Region to specify a ROI
48- * @returns {Promise<any> } An image
49- * @memberof VisionProviderInterface
50- */
51- fromImageWithAlphaChannel ( img : Image , roi ?: Region ) : Promise < any > ;
52-
53- /**
54- * fromImageWithoutAlphaChannel should provide a way to create a library specific
55- * image without alpha channel from an abstract Image object holding raw data and image dimension
56- *
57- * @param {Image } img The input Image
58- * @param {Region } [roi] An optional Region to specify a ROI
59- * @returns {Promise<any> } An image
60- * @memberof VisionProviderInterface
61- */
62- fromImageWithoutAlphaChannel ( img : Image , roi ?: Region ) : Promise < any > ;
63-
64- /**
65- * rgbToGrayScale should provide a way to convert an image from RGB to grayscale
66- *
67- * @param {* } img Input image, RGB
68- * @returns {Promise<any> } Output image, grayscale
69- * @memberof VisionProviderInterface
70- */
71- rgbToGrayScale ( img : any ) : Promise < any > ;
7230}
0 commit comments