Page 1 of 1

Rotated Crop Rectangle

Posted: 2016-02-26T02:47:38-07:00
by spammy63
Hi all,
any glue how to create a crop geometry to get exactly cut these selected rotated area from a real huge image ito a new one ?
I have all exact pixel positions for x, y, height, width and angle of that red crop area.
As the unrotated crop is no problem, I found no tips so far how to cut a rotated crop area from images.
Rotate the huge image first and then crop seems to be too slow for my application.
Many thanks for any tip in advance ...

Chris

(Do you see that image?)->
Image

Re: Rotated Crop Rectangle

Posted: 2016-02-26T02:56:29-07:00
by snibgo
(Do you see that image?)
No.

Re: Rotated Crop Rectangle

Posted: 2016-02-26T03:11:28-07:00
by spammy63
Image

Re: Rotated Crop Rectangle

Posted: 2016-02-26T04:52:11-07:00
by snibgo
You need to rotate sometime. You could either:

1. rotate the main image, then crop, OR

2. crop the main image down to the outer-limits of the rotated rectangle, then rotate the result, then crop that again.

Re: Rotated Crop Rectangle

Posted: 2016-03-03T19:37:15-07:00
by anthony
Or if you want the results unrotated, fill the outline and use it as a mask!

Re: Rotated Crop Rectangle

Posted: 2016-09-09T03:49:21-07:00
by spammy63
Many Thanks Anthony ... I used option 2 (crop-rotate-crop).