Visual Effect Filters
-
Applying the filter to an image:
let filter = SessionFilterPixellate() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterPixellate() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterPixellate() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterPixellate : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterFalseColor() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterFalseColor() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterFalseColor() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterFalseColor : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterLuminanceThreshold() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterLuminanceThreshold() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterLuminanceThreshold() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterLuminanceThreshold : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterSketch() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterSketch() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterSketch() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterSketch : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterPolkaDot() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterPolkaDot() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterPolkaDot() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterPolkaDot : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterHalftone() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterHalftone() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterHalftone() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterHalftone : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterSepiaTone() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterSepiaTone() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterSepiaTone() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterSepiaTone : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterEdgeDetection() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterEdgeDetection() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterEdgeDetection() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterEdgeDetection : SessionFilter
-
Warning
This filter is currently disabled and may be re-enabled in a future version.Applying the filter to an image:
let filter = SessionFilterCornerDetection() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterCornerDetection() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterCornerDetection() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterCornerDetection : SessionFilter
-
Warning
This filter is currently disabled and may be re-enabled in a future version.Applying the filter to an image:
let filter = SessionFilterHistogram() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterHistogram() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterHistogram() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterHistogram : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterToon() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterToon() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterToon() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterToon : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterTiltShift() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterTiltShift() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterTiltShift() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterTiltShift : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterSwirl() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterSwirl() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterSwirl() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterSwirl : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterCGAColorspace() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterCGAColorspace() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterCGAColorspace() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterCGAColorspace : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterBulge() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterBulge() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterBulge() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterBulge : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterPinch() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterPinch() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterPinch() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterPinch : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterSphereRefraction() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterSphereRefraction() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterSphereRefraction() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterSphereRefraction : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterGaussianBlur() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterGaussianBlur() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterGaussianBlur() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterGaussianBlur : SessionFilter
-
Applying the filter to an image:
let filter = SessionFilterStretchDistortion() filter.normalizedIntensity = 100 session.image!.primaryFilter = filter
Applying the filter to a whole video:
let filter = SessionFilterStretchDistortion() filter.normalizedIntensity = 100 session.video!.primaryFilter = filter
Applying the filter to the first segment of a video:
let filter = SessionFilterStretchDistortion() filter.normalizedIntensity = 100 session.video!.videoSegments.first!.filters = [filter]
For more information about filters visit the super class
See moreSessionFilter
.Declaration
Swift
open class SessionFilterStretchDistortion : SessionFilter