SessionFilterHorizontalPerspective

open class SessionFilterHorizontalPerspective : SessionFilter

Original Image Filtered Image

Applying the filter to an image:

let horizontalPerspectiveFilter = SessionFilterHorizontalPerspective()
horizontalPerspectiveFilter.normalizedIntensity = 5 // Degrees
session.image!.filters = [horizontalPerspectiveFilter]

Applying the filter to a whole video:

let horizontalPerspectiveFilter = SessionFilterHorizontalPerspective()
horizontalPerspectiveFilter.normalizedIntensity = 5 // Degrees
session.video!.filters = [horizontalPerspectiveFilter]

Applying the filter to the first segment of a video:

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

For more information about filters visit the super class SessionFilter.