Class CIImage

    • Constructor Detail

      • CIImage

        protected CIImage​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static CIImage 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()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • emptyImage

        public static CIImage emptyImage()
        Create an empty Image.
      • hash_static

        public static long hash_static()
      • imageWithBitmapDataBytesPerRowSizeFormatColorSpace

        public static CIImage imageWithBitmapDataBytesPerRowSizeFormatColorSpace​(NSData data,
                                                                                 long bytesPerRow,
                                                                                 CGSize size,
                                                                                 int format,
                                                                                 CGColorSpaceRef colorSpace)
        Creates a new image whose bitmap data is from 'data'. Each row contains 'bytesPerRow' bytes. The dimensions of the image are defined by 'size'. 'format' defines the format and size of each pixel. 'colorSpace' defines the color space that the image is defined in, if nil, the image is not color matched.
      • imageWithCGImage

        public static CIImage imageWithCGImage​(CGImageRef image)
        Creates a new image from the contents of 'image'.
      • imageWithCVImageBuffer

        public static CIImage imageWithCVImageBuffer​(CVBufferRef imageBuffer)
        Creates a new image whose data is from the contents of a CVImageBuffer.
      • imageWithCVImageBufferOptions

        public static CIImage imageWithCVImageBufferOptions​(CVBufferRef imageBuffer,
                                                            NSDictionary<java.lang.String,​?> options)
      • imageWithCVPixelBuffer

        public static CIImage imageWithCVPixelBuffer​(CVBufferRef pixelBuffer)
        Creates a new image whose data is from the contents of a CVPixelBufferRef.
      • imageWithCVPixelBufferOptions

        public static CIImage imageWithCVPixelBufferOptions​(CVBufferRef pixelBuffer,
                                                            NSDictionary<java.lang.String,​?> options)
      • imageWithColor

        public static CIImage imageWithColor​(CIColor color)
        Return or initialize a new image with an infinite amount of the color 'color'.
      • imageWithContentsOfURL

        public static CIImage imageWithContentsOfURL​(NSURL url)
      • imageWithContentsOfURLOptions

        public static CIImage imageWithContentsOfURLOptions​(NSURL url,
                                                            NSDictionary<java.lang.String,​?> options)
      • imageWithData

        public static CIImage imageWithData​(NSData data)
      • imageWithDataOptions

        public static CIImage imageWithDataOptions​(NSData data,
                                                   NSDictionary<java.lang.String,​?> options)
      • imageWithImageProviderSize_FormatColorSpaceOptions

        public static CIImage imageWithImageProviderSize_FormatColorSpaceOptions​(java.lang.Object p,
                                                                                 long width,
                                                                                 long height,
                                                                                 int f,
                                                                                 CGColorSpaceRef cs,
                                                                                 NSDictionary<java.lang.String,​?> options)
        Create a new CIImage populated when rendered with data provided by 'p'. The provider object 'p' is retained until the image is deallocated. The 'options' dictionary supports kCIImageProviderTileSize as well as other options defined in CIImage.h
      • imageWithMTLTextureOptions

        public static CIImage imageWithMTLTextureOptions​(MTLTexture texture,
                                                         NSDictionary<java.lang.String,​?> options)
        Creates a new image referencing the contents of the Metal texture object. The texture type must be MTLTextureType2D and the texture format must be unsigned normalized or floating-point. When rendering a CIImage referencing this Metal texture, there should not be any uncommitted Metal comand buffers writing to the texture.
      • imageWithTextureSizeFlippedColorSpace

        public static CIImage imageWithTextureSizeFlippedColorSpace​(int name,
                                                                    CGSize size,
                                                                    boolean flipped,
                                                                    CGColorSpaceRef colorSpace)
        Creates a new image referencing the contents of the GL texture object with identifier 'name'. The texture should have dimensions as defined by 'size'. If 'flipped' is true, then the contents of the texture are flipped vertically when referenced. 'colorSpace' defines the color space that the image is defined in, if nil, the texture is not color matched.
      • 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()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • CGImage

        public CGImageRef CGImage()
        Returns a CGImageRef if the CIImage was created with [CIImage imageWithCGImage] or [CIImage imageWithContentsOfURL] and no options. Otherwise this property will be nil and calling [CIContext createCGImage:fromRect:] is recommended.
      • autoAdjustmentFilters

        public NSArray<? extends CIFilter> autoAdjustmentFilters()
        Return an array of filters to apply to an image to improve its skin tones, saturation, contrast, shadows and repair red-eyes or LED-eyes. The options dictionary can contain a CIDetectorImageOrientation key value. The value for this key is an integer NSNumber from 1..8 such as that found in kCGImagePropertyOrientation. If present, the adjustment will be done based on that orientation but any coordinates in the returned filters will still be based on those of the sender image.
      • autoAdjustmentFiltersWithOptions

        public NSArray<? extends CIFilter> autoAdjustmentFiltersWithOptions​(NSDictionary<java.lang.String,​?> options)
      • colorSpace

        public CGColorSpaceRef colorSpace()
        Returns if possible the color space of the image it was defined in. This method will return nil, if the color space cannot be determined.
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • extent

        public CGRect extent()
        Return a rect the defines the bounds of non-(0,0,0,0) pixels
      • imageByApplyingFilterWithInputParameters

        public CIImage imageByApplyingFilterWithInputParameters​(java.lang.String filterName,
                                                                NSDictionary<java.lang.String,​?> params)
        A convenience method for applying a filter to an image. The method returns outputImage of the filter after setting the filter's inputImage to the method receiver and other parameters from the key/value pairs of 'params'.
      • imageByApplyingGaussianBlurWithSigma

        public CIImage imageByApplyingGaussianBlurWithSigma​(double sigma)
        Return a new image by applying a gaussian blur to the receiver.
      • imageByApplyingOrientation

        public CIImage imageByApplyingOrientation​(int orientation)
        Returns a new image representing the original image with a transform applied to it based on an orientation value. CGImagePropertyOrientation enum values from 1 to 8 as defined in the TIFF spec are supported. Returns original image if the image is of infinite extent.
      • imageByApplyingTransform

        public CIImage imageByApplyingTransform​(CGAffineTransform matrix)
        Returns a new image representing the original image with the transform 'matrix' appended to it.
      • imageByClampingToExtent

        public CIImage imageByClampingToExtent()
        Return a new infinite image by replicating the edge pixels of the receiver image.
      • imageByClampingToRect

        public CIImage imageByClampingToRect​(CGRect rect)
        Return a new infinite image by replicating the edge pixels of a rectangle. This is equivalent to the CICrop filter.
      • imageByColorMatchingColorSpaceToWorkingSpace

        public CIImage imageByColorMatchingColorSpaceToWorkingSpace​(CGColorSpaceRef colorSpace)
        Return a new image by color matching from the colorSpace to the context's working space. This method will return nil if the CGColorSpace is not kCGColorSpaceModelRGB.
      • imageByColorMatchingWorkingSpaceToColorSpace

        public CIImage imageByColorMatchingWorkingSpaceToColorSpace​(CGColorSpaceRef colorSpace)
        Return a new image by color matching from the context's working space to the colorSpace. This method will return nil if the CGColorSpace is not kCGColorSpaceModelRGB.
      • imageByCompositingOverImage

        public CIImage imageByCompositingOverImage​(CIImage dest)
        Return a new image formed by compositing the receiver image over 'dest'. This is equivalent to the CISourceOverCompositing filter.
      • imageByCroppingToRect

        public CIImage imageByCroppingToRect​(CGRect rect)
        Return a new image cropped to a rectangle.
      • imageByPremultiplyingAlpha

        public CIImage imageByPremultiplyingAlpha()
        Return a new image by multiplying the receiver's RGB values by its alpha.
      • imageBySettingAlphaOneInExtent

        public CIImage imageBySettingAlphaOneInExtent​(CGRect extent)
        Return a new image with alpha set to 1 within the rectangle and 0 outside.
      • imageBySettingProperties

        public CIImage imageBySettingProperties​(NSDictionary<?,​?> properties)
        Return a new image by changing the recevier's properties.
      • imageByUnpremultiplyingAlpha

        public CIImage imageByUnpremultiplyingAlpha()
        Return a new image by dividing the receiver's RGB values by its alpha.
      • imageTransformForOrientation

        public CGAffineTransform imageTransformForOrientation​(int orientation)
        Returns a CGAffineTransform for an orientation value that can be applied to an image. CGImagePropertyOrientation enum values from 1 to 8 as defined in the TIFF spec are supported. Returns CGAffineTransformIdentity if the image is of infinite extent.
      • initWithBitmapDataBytesPerRowSizeFormatColorSpace

        public CIImage initWithBitmapDataBytesPerRowSizeFormatColorSpace​(NSData data,
                                                                         long bytesPerRow,
                                                                         CGSize size,
                                                                         int format,
                                                                         CGColorSpaceRef colorSpace)
      • initWithCGImage

        public CIImage initWithCGImage​(CGImageRef image)
        Initializers.
      • initWithCVImageBuffer

        public CIImage initWithCVImageBuffer​(CVBufferRef imageBuffer)
      • initWithCVImageBufferOptions

        public CIImage initWithCVImageBufferOptions​(CVBufferRef imageBuffer,
                                                    NSDictionary<java.lang.String,​?> options)
      • initWithCVPixelBuffer

        public CIImage initWithCVPixelBuffer​(CVBufferRef pixelBuffer)
      • initWithCVPixelBufferOptions

        public CIImage initWithCVPixelBufferOptions​(CVBufferRef pixelBuffer,
                                                    NSDictionary<java.lang.String,​?> options)
      • initWithContentsOfURL

        public CIImage initWithContentsOfURL​(NSURL url)
      • initWithContentsOfURLOptions

        public CIImage initWithContentsOfURLOptions​(NSURL url,
                                                    NSDictionary<java.lang.String,​?> options)
      • initWithImageProviderSize_FormatColorSpaceOptions

        public CIImage initWithImageProviderSize_FormatColorSpaceOptions​(java.lang.Object p,
                                                                         long width,
                                                                         long height,
                                                                         int f,
                                                                         CGColorSpaceRef cs,
                                                                         NSDictionary<java.lang.String,​?> options)
      • initWithMTLTextureOptions

        public CIImage initWithMTLTextureOptions​(MTLTexture texture,
                                                 NSDictionary<java.lang.String,​?> options)
        initWithMTLTexture will return nil if textureType is not MTLTextureType2D.
      • initWithTextureSizeFlippedColorSpace

        public CIImage initWithTextureSizeFlippedColorSpace​(int name,
                                                            CGSize size,
                                                            boolean flipped,
                                                            CGColorSpaceRef colorSpace)
      • pixelBuffer

        public CVBufferRef pixelBuffer()
        Returns a CVPixelBufferRef if the CIImage was created with [CIImage imageWithCVPixelBuffer] and no options. Otherwise this property will be nil and calling [CIContext render:toCVPixelBuffer:] is recommended. Modifying the contents of this pixelBuffer will cause the CIImage to render with undefined results.
      • properties

        public NSDictionary<java.lang.String,​?> properties()
        Returns the metadata properties of an image. If the image is the output of one or more CIFilters, then the metadata of the root inputImage will be returned. See also kCIImageProperties.
      • regionOfInterestForImageInRect

        public CGRect regionOfInterestForImageInRect​(CIImage image,
                                                     CGRect rect)
        Returns the rectangle of 'image' that is required to render the rectangle 'rect' of the receiver. This may return a null rect.
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • url

        public NSURL url()
        Returns the URL of the image when the image was created using the imageWithContentsOfURL APIs. This method will return nil, if the URL cannot be determined.
      • depthData

        public AVDepthData depthData()
        Returns a AVDepthData if the CIImage was created with [CIImage imageWithData] or [CIImage imageWithContentsOfURL] and. one the options kCIImageAuxiliaryDepth or kCIImageAuxiliaryDisparity.
      • imageByApplyingCGOrientation

        public CIImage imageByApplyingCGOrientation​(int orientation)
        Returns a new image representing the original image transformeded for the given CGImagePropertyOrientation
      • imageByApplyingFilter

        public CIImage imageByApplyingFilter​(java.lang.String filterName)
        A convenience method for applying a filter to an image. The method returns outputImage of the filter after setting the filter's inputImage to the method receiver and any other parameters from the filter's defaults.
      • imageBySamplingLinear

        public CIImage imageBySamplingLinear()
        Returns a new image by changing the receiver's sample mode to bilinear interpolation.
      • imageBySamplingNearest

        public CIImage imageBySamplingNearest()
        Returns a new image by changing the receiver's sample mode to nearest neighbor.
      • imageTransformForCGOrientation

        public CGAffineTransform imageTransformForCGOrientation​(int orientation)
        Returns a CGAffineTransform for the CGImagePropertyOrientation value that can be applied to an image.
      • imageWithIOSurface

        public static CIImage imageWithIOSurface​(IOSurfaceRef surface)
        Creates a new image from the contents of an IOSurface.
      • blackImage

        public static CIImage blackImage()
        Convenience constant color CIImages in the sRGB colorspace.
      • blueImage

        public static CIImage blueImage()
      • clearImage

        public static CIImage clearImage()
      • cyanImage

        public static CIImage cyanImage()
      • grayImage

        public static CIImage grayImage()
      • greenImage

        public static CIImage greenImage()
      • imageByApplyingTransformHighQualityDownsample

        public CIImage imageByApplyingTransformHighQualityDownsample​(CGAffineTransform matrix,
                                                                     boolean highQualityDownsample)
        specifying true or false here will override the context's kCIContextHighQualityDownsample setting.
      • imageByInsertingIntermediate

        public CIImage imageByInsertingIntermediate()
        Returns a new image that inserts a intermediate that is cacheable according to the CIContext's kCIContextCacheIntermediates option.
      • imageByInsertingIntermediate

        public CIImage imageByInsertingIntermediate​(boolean cache)
        Returns a new image that inserts a intermediate that is cacheable independent of the CIContext's kCIContextCacheIntermediates option.
      • imageWithCGImageSourceIndexOptions

        public static CIImage imageWithCGImageSourceIndexOptions​(CGImageSourceRef source,
                                                                 long index,
                                                                 NSDictionary<java.lang.String,​?> dict)
        Creates a new image from the contents of 'source'.
      • magentaImage

        public static CIImage magentaImage()
      • portraitEffectsMatte

        public AVPortraitEffectsMatte portraitEffectsMatte()
        Returns a AVPortraitEffectsMatte if the CIImage was created with [CIImage imageWithData] or [CIImage imageWithContentsOfURL] and. one the options kCIImageAuxiliaryPortraitEffectsMatte.
      • redImage

        public static CIImage redImage()
      • semanticSegmentationMatte

        public AVSemanticSegmentationMatte semanticSegmentationMatte()
        Returns a AVSemanticSegmentationMatte if the CIImage was created with [CIImage imageWithData] or [CIImage imageWithContentsOfURL] and. one the options like kCIImageAuxiliarySemanticSegmentationSkinMatte.
      • whiteImage

        public static CIImage whiteImage()
      • yellowImage

        public static CIImage yellowImage()