OliveappImageUtility.h 909 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // ImageUtility.h
  3. // FaceVerificationSDK
  4. //
  5. // Created by jqshen on 5/4/15.
  6. // Copyright (c) 2015 Oliveapp. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <Foundation/Foundation.h>
  10. @interface OliveappImageUtility : NSObject
  11. + (CIImage*)cropImage: (CIImage*) ciImage withCropArea: (CGRect)cropArea;
  12. + (CIImage*)scaleImage: (CIImage*) ciImage withScaleRatio: (CGFloat)scaleRatio;
  13. + (CIImage*)rotateImageClockWise90: (CIImage*) ciImage witdDegree: (double) degree;
  14. + (void)storeImage:(CIImage*)_image withFileName: (NSString*) fileName;
  15. + (UIImage *)makeUIImageFromCIImage:(CIImage *)ciImage ;
  16. + (UIImage *)scaleImage:(UIImage *)image toScale:(float)scaleSize;
  17. + (void) printImageInfo: (UIImage*) image;
  18. + (UIImage *) convertBitmapRGBA8ToUIImage:(unsigned char *) buffer
  19. withWidth:(int) width
  20. withHeight:(int) height;
  21. @end