title: Cropping CIImage with CICrop isn't working properly
body: <p>I'm having troubles cropping image. For me CICrop filter is not working properly. If my CIVector x and y (origins) are 0 everything working fine (image is cropped from left bottom corner), image is cropped by my rectangle width and height, but if CIVector origins (x and y) aren't 0 in my cropped image becomes space (because CICrop filter cropping from bottom left corner no matter what origins (x and y) are).</p>
  
  <p>I'm cropping CIImage with rectangle, <strong>source</strong>:  </p>
  
  <pre><code>CIVector *cropRect =[CIVector vectorWithX:150 Y:150 Z: 300 W: 300];
  
  CIFilter *cropFilter = [CIFilter filterWithName:@"CICrop"];   
  
  [cropFilter setValue:myCIImage forKey:@"inputImage"];
  [cropFilter setValue:cropRect forKey:@"inputRectangle"];
  
  CIImage *croppedImage = [cropFilter valueForKey:@"outputImage"];
  </code></pre>
  
  <p><strong>Output Image with CIVector X 150 and Y 150:</strong> (I drawn the border for clarity)</p>
  
  <p><img src="https://i.stack.imgur.com/NzpuI.png" alt="enter image description here"></p>
  
  <p><strong>Output Image with CIVector X 0 and Y 0:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/ePNdB.png" alt="enter image description here"></p>
  
  <p><strong>Original Image:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/bs7EQ.jpg" alt="enter image description here"></p>
  
  <p>What I'm doing wrong? Or is it supposed to do this?</p>