descriptor
TypeScriptget descriptor(): RequestDescriptorSwift declarationfinal var descriptor: RequestDescriptor { get }An enum that identifies the request and request revision.
class · iOS 27.0+ · SDK 27.1
final class GenerateIterativeSegmentationRequestA request that generates a segmentation mask from points, a rectangle, or a scribble. Initialize with a seed point, a seed rectangle, or a seed scribble buffer to generate the initial segmentation mask. Then add points to iteratively refine the segmentation mask. The request supports a maximum of 13 points when seeded with a point or scribble, or 11 points when seeded with a box.
get descriptor(): RequestDescriptorSwift declarationfinal var descriptor: RequestDescriptor { get }An enum that identifies the request and request revision.
get assetStatus(): Promise<DownloadableAssetsRequestStatus>Swift declarationfinal var assetStatus: DownloadableAssetsRequestStatus { get async }The current download status of the assets required by the request.
get qualityLevel(): GenerateIterativeSegmentationRequest_QualityLevelSwift declarationfinal var qualityLevel: GenerateIterativeSegmentationRequest.QualityLevel { get set }Controls the resolution of the produced mask. Higher resolutions will produce a smoother mask. Lower resolutions will be faster.
set qualityLevel(value: GenerateIterativeSegmentationRequest_QualityLevel)Swift declarationfinal var qualityLevel: GenerateIterativeSegmentationRequest.QualityLevel { get set }Controls the resolution of the produced mask. Higher resolutions will produce a smoother mask. Lower resolutions will be faster.
addExcludedPoint(point: NormalizedPoint): voidSwift declarationfinal func addExcludedPoint(_ point: NormalizedPoint) throwsRefines the mask with a point that is excluded from the desired segmentation. Throws an error if the total number of added points exceeds the limit. (13 points when seedPoint or seedScribbleBuffer was used, or 11 points when seedBox was used)
addIncludedPoint(point: NormalizedPoint): voidSwift declarationfinal func addIncludedPoint(_ point: NormalizedPoint) throwsRefines the mask with a point that is part of the desired segmentation. Throws an error if the total number of added points exceeds the limit. (13 points when seedPoint or seedScribbleBuffer was used, or 11 points when seedBox was used)
get regionOfInterest(): NormalizedRectSwift declarationfinal var regionOfInterest: NormalizedRect { get set }The region of the image in which Vision will perform the request. The rectangle is normalized to the dimensions of the processed image. Its origin is specified relative to the image's lower-left corner. By default, the region of interest will be the full image.
set regionOfInterest(value: NormalizedRect)Swift declarationfinal var regionOfInterest: NormalizedRect { get set }The region of the image in which Vision will perform the request. The rectangle is normalized to the dimensions of the processed image. Its origin is specified relative to the image's lower-left corner. By default, the region of interest will be the full image.
setComputeDevice(computeDevice: (_CoreML_MLComputeDevice) | null, computeStage: ComputeStage): voidSwift declarationfinal func setComputeDevice(_ computeDevice: MLComputeDevice?, for computeStage: ComputeStage)Assigns a compute device for a compute stage. If the parameter `computeDevice` is `nil`, the framework removes any explicit compute device assignment and allows the framework to select the device. Configure any compute device for a given compute stage. When performing a request, the system makes a validity check. Use `supportedComputeStageDevices` to get valid compute devices for a request’s compute stages. - Parameters: - `computeDevice: `The compute device to assign to the compute stage. - `computeStage: `The compute stage.
static initSeedScribbleBuffer(seedScribbleBuffer: _CoreVideo_CVReadOnlyPixelBuffer, revision?: (GenerateIterativeSegmentationRequest_Revision) | null): GenerateIterativeSegmentationRequestSwift declarationinit(seedScribbleBuffer: CVReadOnlyPixelBuffer, _ revision: GenerateIterativeSegmentationRequest.Revision? = nil)Instantiates with a scribble buffer.
static get supportedRevisions(): Array<GenerateIterativeSegmentationRequest_Revision>Swift declarationstatic let supportedRevisions: [GenerateIterativeSegmentationRequest.Revision]The revisions supported by ``GenerateIterativeSegmentationRequest``.
get supportedComputeStageDevices(): NativeMap<ComputeStage, Array<_CoreML_MLComputeDevice>>Swift declarationfinal var supportedComputeStageDevices: [ComputeStage : [MLComputeDevice]] { get }static initSeedBox(seedBox: NormalizedRect, revision?: (GenerateIterativeSegmentationRequest_Revision) | null): GenerateIterativeSegmentationRequestSwift declarationinit(seedBox: NormalizedRect, _ revision: GenerateIterativeSegmentationRequest.Revision? = nil)Instantiates with a seed box. No result will be produced if the box is outside the ``regionOfInterest``. By default, the ``regionOfInterest`` is the whole image.
get revision(): GenerateIterativeSegmentationRequest_RevisionSwift declarationfinal let revision: GenerateIterativeSegmentationRequest.RevisionThe request's configured revision.
static initSeedPoint(seedPoint: NormalizedPoint, revision?: (GenerateIterativeSegmentationRequest_Revision) | null): GenerateIterativeSegmentationRequestSwift declarationinit(seedPoint: NormalizedPoint, _ revision: GenerateIterativeSegmentationRequest.Revision? = nil)Instantiates with a seed point. No result will be produced if the point is outside the ``regionOfInterest``. By default, the ``regionOfInterest`` is the whole image. This point is counted toward the total number of points that can be added.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
GenerateIterativeSegmentationRequest.downloadAssets(progress:)
The iOS SDK compiler rejected this binding: instance method 'arg' requires that 'Subprogress' conform to 'Copyable'