In summary, the errors affect the Detective Lens Image Unit and the Pixellate Filter.
For the Detective Lens Filter ImageUnit example, the following changes are required in the Detective Lens Objective-C section:
- To be in line with DetectiveLensFilter.h of step 5, DetectiveLensFilter.m shall be corrected by changing inputWidth in customAttributes (step 10) into inputLensDiameter
- Accordingly, method outputImage shall be modified (step 13) so that all occurences of inputWidth are changed into inputLensDiameter
- Also in step 13, in outputImage, CIFilter *f; shall read CIFilter *compositedImage;
- In DetectiveLensFilter.m, the init method shall be modified so that path and url variables are declared as follows:
NSString *path = nil;
NSURL *url = nil;
For the Pixellate filter:
- In Pixellate.m, in method outputImage (step 8), PixellateTwoFilterKernel shall be changed to PixellateFilterKernel
Aucun commentaire:
Enregistrer un commentaire