我怎样才能调整CIImage的大小

时间:2012-10-09 00:03:11

标签: ios cocoa-touch core-image

  

可能重复:
  resizing a UIImage without loading it entirely into memory?

我如何调整CIImage的大小?

NSDictionary *imageOptions = nil;
NSNumber *orientation = CMGetAttachment(imageDataSampleBuffer, kCGImagePropertyOrientation, NULL);
if (orientation) {
    imageOptions = [NSDictionary dictionaryWithObject:orientation forKey:CIDetectorImageOrientation];
}

NSArray *features = [faceDetector featuresInImage:ciImage options:imageOptions];

我需要在ciImage中设置要素的宽度。

0 个答案:

没有答案