Rotating images and methods

Moderator: jsachs

Post Reply
tomczak
Posts: 1367
Joined: April 25th, 2009, 12:56 am
What is the make/model of your primary camera?: Fuji X-E2
Contact:

Rotating images and methods

Post by tomczak »

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!
Maciej Tomczak
Phototramp.com
jsachs
Posts: 4203
Joined: January 22nd, 2009, 11:03 pm

Re: Rotating images and methods

Post by jsachs »

They all use the same resampling code.
Jonathan Sachs
Digital Light & Color
tomczak
Posts: 1367
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

Post by tomczak »

It looks like rotating in Crop/Add Border uses some sharpening routine at the end. Do they all do?
Maciej Tomczak
Phototramp.com
tomczak
Posts: 1367
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

Post by tomczak »

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
jsachs
Posts: 4203
Joined: January 22nd, 2009, 11:03 pm

Re: Rotating images and methods

Post by jsachs »

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
tomczak
Posts: 1367
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

Post by tomczak »

And the sharpening part of Crop rotate - is that common to all, just happening silently?
Maciej Tomczak
Phototramp.com
jsachs
Posts: 4203
Joined: January 22nd, 2009, 11:03 pm

Re: Rotating images and methods

Post by jsachs »

Am currently on vacation without access to the code.
Jonathan Sachs
Digital Light & Color
jsachs
Posts: 4203
Joined: January 22nd, 2009, 11:03 pm

Re: Rotating images and methods

Post by jsachs »

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
tomczak
Posts: 1367
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

Post by tomczak »

Cheers!
Maciej Tomczak
Phototramp.com
Post Reply