CIPerspectiveCorrection

In the Apple docs (https://developer.apple.com/documentation/coreimage/ciperspectivecorrection), there is a parameter, "crop", that doesn't seem to be documented properly. It is described as "A rectangle that specifies the extent of the corrected image.", but has a boolean value.

Has anyone used this parameter, and if so, how is it used? I passed in a NSNumber with an underlying boolean value, but got a "this class is not key value coding-compliant for the key crop" when I tried to use it.

I was trying to make a perspective correction but without cropping the image to the corners of the passed in coordinates.

Ok, I realized my mistake. The parameter must be passed as "inputCrop", and it does work as I hoped. The image is corrected, but not cropped to the passed in coordinates.

CIPerspectiveCorrection
 
 
Q