There are at least 4 transformations that could rotate an image by an acute angle:
- Level
- Warp
- Crop add border
- Composite
If only rotation is performed by any of the above, do they use similar resampling algorithms? Which one would be the best (the least blurry, or with the least amount of artifacts, for example)?
Cheers!
Rotating images and methods
Moderator: jsachs
-
- Posts: 1431
- Joined: April 25th, 2009, 12:56 am
- What is the make/model of your primary camera?: Fuji X-E2
- Contact:
Rotating images and methods
Maciej Tomczak
Phototramp.com
Phototramp.com
Re: Rotating images and methods
They all use the same resampling code.
Jonathan Sachs
Digital Light & Color
Digital Light & Color
-
- Posts: 1431
- Joined: April 25th, 2009, 12:56 am
- What is the make/model of your primary camera?: Fuji X-E2
- Contact:
Re: Rotating images and methods
It looks like rotating in Crop/Add Border uses some sharpening routine at the end. Do they all do?
Maciej Tomczak
Phototramp.com
Phototramp.com
-
- Posts: 1431
- Joined: April 25th, 2009, 12:56 am
- What is the make/model of your primary camera?: Fuji X-E2
- Contact:
Re: Rotating images and methods
Also, Level seems to execute the rotation part much faster than Crop/Add Border. I'm not sure how different the results are - I can't detect much difference.
Maciej Tomczak
Phototramp.com
Phototramp.com
Re: Rotating images and methods
Level is faster because Crop rotates the entire image at full resolution to speed up subsequent operations at the same rotation angle -- not be cause of any difference in resampling.
Jonathan Sachs
Digital Light & Color
Digital Light & Color
-
- Posts: 1431
- Joined: April 25th, 2009, 12:56 am
- What is the make/model of your primary camera?: Fuji X-E2
- Contact:
Re: Rotating images and methods
And the sharpening part of Crop rotate - is that common to all, just happening silently?
Maciej Tomczak
Phototramp.com
Phototramp.com
Re: Rotating images and methods
Am currently on vacation without access to the code.
Jonathan Sachs
Digital Light & Color
Digital Light & Color
Re: Rotating images and methods
Only Crop automatically sharpens after rotating. It does the equivalent of the basic Sharpen function (with method = Sharpen) which does light sharpening to offset the slight blurring from the bilinear interpolation used to rotate the image. You can get the same effect in Level, Warp or Composite by sharpening the output images. Otherwise the effects should be more or less identical.
Jonathan Sachs
Digital Light & Color
Digital Light & Color