SessionFilterVerticalPerspective

open class SessionFilterVerticalPerspective : SessionFilter

Original Image Filtered Image

Applying the filter to an image:

let verticalPerspectiveFilter = SessionFilterVerticalPerspective()
verticalPerspectiveFilter.normalizedIntensity = 5 // Degrees
session.image!.filters = [verticalPerspectiveFilter]

Applying the filter to a whole video:

let verticalPerspectiveFilter = SessionFilterVerticalPerspective()
verticalPerspectiveFilter.normalizedIntensity = 5 // Degrees
session.video!.filters = [verticalPerspectiveFilter]

Applying the filter to the first segment of a video:

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

For more information about filters visit the super class SessionFilter.