SessionFilterStraighten

open class SessionFilterStraighten : SessionFilter

Original Image Filtered Image

Applying the filter to an image:

let straightenFilter = SessionFilterStraighten()
straightenFilter.normalizedIntensity = 5 // Degrees
session.image!.filters = [straightenFilter]

Applying the filter to a whole video:

let straightenFilter = SessionFilterStraighten()
straightenFilter.normalizedIntensity = 5 // Degrees
session.video!.filters = [straightenFilter]

Applying the filter to the first segment of a video:

let vignetteFilter = straightenFilter()
straightenFilter.normalizedIntensity = 5 // Degrees
session.video!.videoSegments.first!.filters = [straightenFilter]

For more information about filters visit the super class SessionFilter.