iOS5.0でバンプディストーションを実行する必要があります...xcodeにエラーが表示されず、出力も得られません...バンプフィルターインスタンスをトレースして印刷している間、null値が出力されます...
それについてのアイデア...
いくつかの投稿は、iOS 5.0では機能しなかったことを示してい ますが、バンプディストーションを実行する他の方法があります...
前もって感謝します....
よろしく、
スパイネット
私のコード...
context = [CIContext contextWithOptions:nil];
CIFilter *bumpDistortion = [CIFilter filterWithName:@"CIBumpDistortion"];
[bumpDistortion setValue:ciimage forKey:kCIInputImageKey];
[bumpDistortion setValue:[CIVector vectorWithX:200 Y:150] forKey:@"inputCenter"];
[bumpDistortion setValue:[NSNumber numberWithFloat:100] forKey:@"inputRadius"];
[bumpDistortion setValue:[NSNumber numberWithFloat:3.0] forKey:@"inputScale"];
CIImage *imageOutput = [bumpDistortion outputImage];
CGImageRef cgimg = [context createCGImage:imageOutput fromRect:[imageOutput extent]];
UIImage *newImg = [UIImage imageWithCGImage:cgimg];
[self.imageView setImage:newImg];