//
//  GetSimilarity.h
//  imgsimlartest
//
//  Created by test on 16/3/3.
//  Copyright © 2016年 com.facishare.CoreTest. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef double Similarity;

// https://www.geek-share.com/detail/2668348701.html

@interface GetSimilarity : NSObject

- (void)setImgWithImgA:(UIImage*)imgA ImgB:(UIImage*)imgB;

- (void)setImgAWidthImg:(UIImage*)img;

- (void)setImgBWidthImg:(UIImage*)img;

- (Similarity)getSimilarityValue;

+ (Similarity)getSimilarityValueWithImgA:(UIImage*)imga ImgB:(UIImage*)imgb;

/* 获取缩小到10*10图片个像素灰度值与平均灰度值比较 0/1之后的的平均值 */
- (CGFloat)getSimilarityGroupWithImg:(UIImage*)img;

@end



