Package apple.vision
Class VNGenerateOpticalFlowRequest
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.vision.VNRequest
-
- apple.vision.VNImageBasedRequest
-
- apple.vision.VNTargetedImageRequest
-
- apple.vision.VNGenerateOpticalFlowRequest
-
public class VNGenerateOpticalFlowRequest extends VNTargetedImageRequest
VNGenerateOpticalFlowRequest will determine directional change vectors for each pixel in the targeted image to transform it into the image processed by the request handler, reporting this result with a single VNPixelBufferObservation. Because this request works at the pixel level, both images must have the same dimensions in order for the request to be successfully performed. Setting a region of interest will isolate where the change determination is performed; however, the resultant observation will still be reported with a full resolution VNPixelBufferObservation. Optical flow requests are very resource intensive, so it is recommended that only one request at a time be created and that the handler where the request was issued be released immediately after generating optical flows. Example usage: - (nullable VNPixelBufferObservation*) opticalFlowFromImage:(CVPixelBufferRef)fromImage toImage:(CVPixelBuffer)toImage error:(NSError**)error { VNImageRequestHandler* imageRequestHandler = [[VNImageRequestHandler alloc] initWithCVPixelBuffer:fromImage options:@{}]; VNGenerateOpticalFlowRequest* request = [[VNGenerateOpticalFlowRequest alloc] initWithTargetedCVPixelBuffer:toImage options:@{}]; if (![imageRequestHandler performRequests:@[ request ] error:error]) { return nil; } return [[request results] firstObject]; }
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.vision.VNTargetedImageRequest
VNTargetedImageRequest.Block_initWithTargetedCGImageOptionsCompletionHandler, VNTargetedImageRequest.Block_initWithTargetedCGImageOrientationOptionsCompletionHandler, VNTargetedImageRequest.Block_initWithTargetedCIImageOptionsCompletionHandler, VNTargetedImageRequest.Block_initWithTargetedCIImageOrientationOptionsCompletionHandler, VNTargetedImageRequest.Block_initWithTargetedCMSampleBufferOptionsCompletionHandler, VNTargetedImageRequest.Block_initWithTargetedCMSampleBufferOrientationOptionsCompletionHandler, VNTargetedImageRequest.Block_initWithTargetedCVPixelBufferOptionsCompletionHandler, VNTargetedImageRequest.Block_initWithTargetedCVPixelBufferOrientationOptionsCompletionHandler, VNTargetedImageRequest.Block_initWithTargetedImageDataOptionsCompletionHandler, VNTargetedImageRequest.Block_initWithTargetedImageDataOrientationOptionsCompletionHandler, VNTargetedImageRequest.Block_initWithTargetedImageURLOptionsCompletionHandler, VNTargetedImageRequest.Block_initWithTargetedImageURLOrientationOptionsCompletionHandler
-
Nested classes/interfaces inherited from class apple.vision.VNRequest
VNRequest.Block_completionHandler_ret, VNRequest.Block_initWithCompletionHandler
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedVNGenerateOpticalFlowRequest(org.moe.natj.general.Pointer peer)
-
Method Summary
-
Methods inherited from class apple.vision.VNImageBasedRequest
regionOfInterest, setRegionOfInterest
-
Methods inherited from class apple.vision.VNRequest
cancel, completionHandler, copyWithZone, preferBackgroundProcessing, results, revision, setPreferBackgroundProcessing, setRevision, setUsesCPUOnly, usesCPUOnly
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static VNGenerateOpticalFlowRequest alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
computationAccuracy
public long computationAccuracy()
The level of accuracy used to compute the optical flow. Default is VNGenerateOpticalFlowRequestComputationAccuracyMedium. The computational time typically trends with the accuracy level. This parameter allows for selective tuning by the client application.
-
currentRevision
public static long currentRevision()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
defaultRevision
public static long defaultRevision()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
init
public VNGenerateOpticalFlowRequest init()
Description copied from class:VNRequestCreates a new VNRequest with no completion handler.- Overrides:
initin classVNTargetedImageRequest
-
initWithCompletionHandler
public VNGenerateOpticalFlowRequest initWithCompletionHandler(VNRequest.Block_initWithCompletionHandler completionHandler)
Description copied from class:VNRequestCreates a new VNRequest with an optional completion handler.- Overrides:
initWithCompletionHandlerin classVNTargetedImageRequest- Parameters:
completionHandler- The block to be invoked after the request has completed its processing. The completion handler gets executed on the same dispatch queue as the request being executed.
-
initWithTargetedCGImageOptions
public VNGenerateOpticalFlowRequest initWithTargetedCGImageOptions(CGImageRef cgImage, NSDictionary<java.lang.String,?> options)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted CGImage.- Overrides:
initWithTargetedCGImageOptionsin classVNTargetedImageRequest- Parameters:
cgImage- The CGImageRef of the targeted image.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCGImageOptionsCompletionHandler
public VNGenerateOpticalFlowRequest initWithTargetedCGImageOptionsCompletionHandler(CGImageRef cgImage, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCGImageOptionsCompletionHandler completionHandler)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted CGImage.- Overrides:
initWithTargetedCGImageOptionsCompletionHandlerin classVNTargetedImageRequest- Parameters:
cgImage- The CGImageRef of the targeted image.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedCGImageOrientationOptions
public VNGenerateOpticalFlowRequest initWithTargetedCGImageOrientationOptions(CGImageRef cgImage, int orientation, NSDictionary<java.lang.String,?> options)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted CGImage.- Overrides:
initWithTargetedCGImageOrientationOptionsin classVNTargetedImageRequest- Parameters:
cgImage- The CGImageRef of the targeted image.orientation- The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCGImageOrientationOptionsCompletionHandler
public VNGenerateOpticalFlowRequest initWithTargetedCGImageOrientationOptionsCompletionHandler(CGImageRef cgImage, int orientation, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCGImageOrientationOptionsCompletionHandler completionHandler)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted CGImage.- Overrides:
initWithTargetedCGImageOrientationOptionsCompletionHandlerin classVNTargetedImageRequest- Parameters:
cgImage- The CGImageRef of the targeted image.orientation- The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedCIImageOptions
public VNGenerateOpticalFlowRequest initWithTargetedCIImageOptions(CIImage ciImage, NSDictionary<java.lang.String,?> options)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted CIImage.- Overrides:
initWithTargetedCIImageOptionsin classVNTargetedImageRequest- Parameters:
ciImage- The CIImage of the targeted image.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCIImageOptionsCompletionHandler
public VNGenerateOpticalFlowRequest initWithTargetedCIImageOptionsCompletionHandler(CIImage ciImage, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCIImageOptionsCompletionHandler completionHandler)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted CIImage.- Overrides:
initWithTargetedCIImageOptionsCompletionHandlerin classVNTargetedImageRequest- Parameters:
ciImage- The CIImage of the targeted image.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedCIImageOrientationOptions
public VNGenerateOpticalFlowRequest initWithTargetedCIImageOrientationOptions(CIImage ciImage, int orientation, NSDictionary<java.lang.String,?> options)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted CIImage.- Overrides:
initWithTargetedCIImageOrientationOptionsin classVNTargetedImageRequest- Parameters:
ciImage- The CIImage of the targeted image.orientation- The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCIImageOrientationOptionsCompletionHandler
public VNGenerateOpticalFlowRequest initWithTargetedCIImageOrientationOptionsCompletionHandler(CIImage ciImage, int orientation, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCIImageOrientationOptionsCompletionHandler completionHandler)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted CIImage.- Overrides:
initWithTargetedCIImageOrientationOptionsCompletionHandlerin classVNTargetedImageRequest- Parameters:
ciImage- The CIImage of the targeted image.orientation- The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedCMSampleBufferOptions
public VNGenerateOpticalFlowRequest initWithTargetedCMSampleBufferOptions(CMSampleBufferRef sampleBuffer, NSDictionary<java.lang.String,?> options)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted CMSampleBuffer.- Overrides:
initWithTargetedCMSampleBufferOptionsin classVNTargetedImageRequest- Parameters:
sampleBuffer- The CMSampleBuffer containing the CVImageBuffer to be used by the request.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCMSampleBufferOptionsCompletionHandler
public VNGenerateOpticalFlowRequest initWithTargetedCMSampleBufferOptionsCompletionHandler(CMSampleBufferRef sampleBuffer, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCMSampleBufferOptionsCompletionHandler completionHandler)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted CMSampleBuffer.- Overrides:
initWithTargetedCMSampleBufferOptionsCompletionHandlerin classVNTargetedImageRequest- Parameters:
sampleBuffer- The CMSampleBuffer containing the CVImageBuffer to be used by the request.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked after the request has been performed.
-
initWithTargetedCMSampleBufferOrientationOptions
public VNGenerateOpticalFlowRequest initWithTargetedCMSampleBufferOrientationOptions(CMSampleBufferRef sampleBuffer, int orientation, NSDictionary<java.lang.String,?> options)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted CMSampleBuffer.- Overrides:
initWithTargetedCMSampleBufferOrientationOptionsin classVNTargetedImageRequest- Parameters:
sampleBuffer- The CMSampleBuffer containing the CVImageBuffer to be used by the request.orientation- The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCMSampleBufferOrientationOptionsCompletionHandler
public VNGenerateOpticalFlowRequest initWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(CMSampleBufferRef sampleBuffer, int orientation, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCMSampleBufferOrientationOptionsCompletionHandler completionHandler)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted CMSampleBuffer.- Overrides:
initWithTargetedCMSampleBufferOrientationOptionsCompletionHandlerin classVNTargetedImageRequest- Parameters:
sampleBuffer- The CMSampleBuffer containing the CVImageBuffer to be used by the request.orientation- The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked after the request has been performed.
-
initWithTargetedCVPixelBufferOptions
public VNGenerateOpticalFlowRequest initWithTargetedCVPixelBufferOptions(CVBufferRef pixelBuffer, NSDictionary<java.lang.String,?> options)
Description copied from class:VNTargetedImageRequestCreate a new request that targets an image in a pixel buffer.- Overrides:
initWithTargetedCVPixelBufferOptionsin classVNTargetedImageRequest- Parameters:
pixelBuffer- The pixel buffer containing the targeted image.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCVPixelBufferOptionsCompletionHandler
public VNGenerateOpticalFlowRequest initWithTargetedCVPixelBufferOptionsCompletionHandler(CVBufferRef pixelBuffer, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCVPixelBufferOptionsCompletionHandler completionHandler)
Description copied from class:VNTargetedImageRequestCreate a new request that targets an image in a pixel buffer.- Overrides:
initWithTargetedCVPixelBufferOptionsCompletionHandlerin classVNTargetedImageRequest- Parameters:
pixelBuffer- The pixel buffer containing the targeted image.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedCVPixelBufferOrientationOptions
public VNGenerateOpticalFlowRequest initWithTargetedCVPixelBufferOrientationOptions(CVBufferRef pixelBuffer, int orientation, NSDictionary<java.lang.String,?> options)
Description copied from class:VNTargetedImageRequestCreate a new request that targets an image in a pixel buffer.- Overrides:
initWithTargetedCVPixelBufferOrientationOptionsin classVNTargetedImageRequest- Parameters:
pixelBuffer- The pixel buffer containing the targeted image.orientation- The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCVPixelBufferOrientationOptionsCompletionHandler
public VNGenerateOpticalFlowRequest initWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(CVBufferRef pixelBuffer, int orientation, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCVPixelBufferOrientationOptionsCompletionHandler completionHandler)
Description copied from class:VNTargetedImageRequestCreate a new request that targets an image in a pixel buffer.- Overrides:
initWithTargetedCVPixelBufferOrientationOptionsCompletionHandlerin classVNTargetedImageRequest- Parameters:
pixelBuffer- The pixel buffer containing the targeted image.orientation- The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedImageDataOptions
public VNGenerateOpticalFlowRequest initWithTargetedImageDataOptions(NSData imageData, NSDictionary<java.lang.String,?> options)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted image data.- Overrides:
initWithTargetedImageDataOptionsin classVNTargetedImageRequest- Parameters:
imageData- The data of the targeted image.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedImageDataOptionsCompletionHandler
public VNGenerateOpticalFlowRequest initWithTargetedImageDataOptionsCompletionHandler(NSData imageData, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedImageDataOptionsCompletionHandler completionHandler)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted image data.- Overrides:
initWithTargetedImageDataOptionsCompletionHandlerin classVNTargetedImageRequest- Parameters:
imageData- The data of the targeted image.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedImageDataOrientationOptions
public VNGenerateOpticalFlowRequest initWithTargetedImageDataOrientationOptions(NSData imageData, int orientation, NSDictionary<java.lang.String,?> options)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted image data.- Overrides:
initWithTargetedImageDataOrientationOptionsin classVNTargetedImageRequest- Parameters:
imageData- The data of the targeted image.orientation- The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedImageDataOrientationOptionsCompletionHandler
public VNGenerateOpticalFlowRequest initWithTargetedImageDataOrientationOptionsCompletionHandler(NSData imageData, int orientation, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedImageDataOrientationOptionsCompletionHandler completionHandler)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted image data.- Overrides:
initWithTargetedImageDataOrientationOptionsCompletionHandlerin classVNTargetedImageRequest- Parameters:
imageData- The data of the targeted image.orientation- The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedImageURLOptions
public VNGenerateOpticalFlowRequest initWithTargetedImageURLOptions(NSURL imageURL, NSDictionary<java.lang.String,?> options)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted image URL.- Overrides:
initWithTargetedImageURLOptionsin classVNTargetedImageRequest- Parameters:
imageURL- The URL of the targeted image.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedImageURLOptionsCompletionHandler
public VNGenerateOpticalFlowRequest initWithTargetedImageURLOptionsCompletionHandler(NSURL imageURL, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedImageURLOptionsCompletionHandler completionHandler)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted image URL.- Overrides:
initWithTargetedImageURLOptionsCompletionHandlerin classVNTargetedImageRequest- Parameters:
imageURL- The URL of the targeted image.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedImageURLOrientationOptions
public VNGenerateOpticalFlowRequest initWithTargetedImageURLOrientationOptions(NSURL imageURL, int orientation, NSDictionary<java.lang.String,?> options)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted image URL.- Overrides:
initWithTargetedImageURLOrientationOptionsin classVNTargetedImageRequest- Parameters:
imageURL- The URL of the targeted image.orientation- The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedImageURLOrientationOptionsCompletionHandler
public VNGenerateOpticalFlowRequest initWithTargetedImageURLOrientationOptionsCompletionHandler(NSURL imageURL, int orientation, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedImageURLOrientationOptionsCompletionHandler completionHandler)
Description copied from class:VNTargetedImageRequestCreate a new request with a targeted image URL.- Overrides:
initWithTargetedImageURLOrientationOptionsCompletionHandlerin classVNTargetedImageRequest- Parameters:
imageURL- The URL of the targeted image.orientation- The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
outputPixelFormat
public int outputPixelFormat()
Pixel format type of the output buffer. Valid values are kCVPixelFormatType_TwoComponent32Float and kCVPixelFormatType_TwoComponent16Half. Default is kCVPixelFormatType_TwoComponent32Float.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setComputationAccuracy
public void setComputationAccuracy(long value)
The level of accuracy used to compute the optical flow. Default is VNGenerateOpticalFlowRequestComputationAccuracyMedium. The computational time typically trends with the accuracy level. This parameter allows for selective tuning by the client application.
-
setOutputPixelFormat
public void setOutputPixelFormat(int value)
Pixel format type of the output buffer. Valid values are kCVPixelFormatType_TwoComponent32Float and kCVPixelFormatType_TwoComponent16Half. Default is kCVPixelFormatType_TwoComponent32Float.
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supportedRevisions
public static NSIndexSet supportedRevisions()
-
version_static
public static long version_static()
-
-