Questions tagged [vimage]

vImage is a library of high-performance image-processing routines provided by Apple in macOS, iOS, tvOS, and watchOS. It includes functions for image manipulation—convolutions, geometric transformations, histogram operations, morphological transformations, and alpha compositing—as well as utility functions for format conversions and other operations.

vImage Programming Guide

62 questions
1
vote
1 answer

vImageMatrixMultiply_ARGB8888ToPlanar8 is not work while build release mode iOS application

I am developing an image processing application and try to use the vImage. It works great and gets right result in debug mode. However, it always returns a black image or throws an error in release mode. I have already tried the official example…
jj200789
  • 41
  • 1
  • 4
1
vote
1 answer

Draw Histogram computed by vImage

I computed histogram using vImageHistogramCalculation_ARGB8888(...). I now have histogram data for each of the three RGB channels stored in 256 bins. My questions is what's the way to plot these values in a UIView using OpenGLES or Core Graphics? It…
Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131
1
vote
2 answers

How to draw cropped bitmap using the Metal API or Accelerate Framework?

I'm implementing a custom video compositor that crops video frames. Currently I use Core Graphics to do this: -(void)renderImage:(CGImageRef)image inBuffer:(CVPixelBufferRef)destination { CGRect cropRect = // some rect ... CGImageRef…
bcattle
  • 12,115
  • 6
  • 62
  • 82
1
vote
3 answers

How do you scale an image using vImage in the Accelerate framework in iOS 8?

I am trying to resize a CMSampleBufferRef as quickly as possible on an iOS 8 device for use in image processing. From what I have found online, the way to do this seems to be by using the vImage API in the Accelerate framework. However, I haven't…
lehn0058
  • 19,977
  • 15
  • 69
  • 109
1
vote
1 answer

How to use vImageMatrixMultiply to convert from YUV planer data to 32 bpp, 8bpc RGBX?

I have YUV planar data (420YpCbCr8BiPlanarFullRange) and I would like to convert it to RBGX (RBGA but with 255 in the alpha channel). void * const luminescencePlaneBytes = ...; void * const cbChrominancePlaneBytes = ...; void * const…
Robert
  • 37,670
  • 37
  • 171
  • 213
1
vote
2 answers

How do I use the Accelerate Framework With Core Graphics?

I have a project. It basically takes photo from iPhone camera and applies some effects on photo. Before I apply effect I use core graphics to scale image to appropriate size. After scaling and rotating image I use Accelerate framework(vImage) in…
mustafa
  • 15,254
  • 10
  • 48
  • 57
1
vote
3 answers

How to compile vImage emboss effect sample code?

Here is the code found in the documentation: int myEmboss(void *inData, unsigned int inRowBytes, void *outData, unsigned int outRowBytes, unsigned int height, unsigned int width, void *kernel, unsigned int kernel_height, unsigned int…
alecail
  • 3,993
  • 4
  • 33
  • 52
0
votes
1 answer

How to resize CVPixelBufferRef 420f with preserving aspect ratio?

I am trying to resize a pixel buffer with the kCVPixelFormatType_420YpCbCr8BiPlanarFullRange (420f) pixel format to another size with preserving aspect ratio and adding black bars (if needed). I am using the vImageScale_Planar8 and…
0
votes
1 answer

objective-c crop vImage PixelBuffer

How to access the existing crop capabilities of vImage that are only documented for swift, but for objective-c? https://developer.apple.com/documentation/accelerate/vimage/pixelbuffer/3951652-cropped?changes=_7_1&language=objc just for linkage, i…
cguenther
  • 1,579
  • 1
  • 10
  • 14
0
votes
0 answers

How to download the images displayed through the vuetify v-image component directly

the native img element can right-click to open the menu to save the picture,but the vuetify v-image component can't save the picture with right click it's there have some solutions to help me fix this question, Thank you very much
dfy
  • 23
  • 2
0
votes
1 answer

How to create an ARGB8888 Binary image on iOS swift

I am using the following code to create the ARGB8888 image. Is this the correct Image format for ARBG8888 or should I use a different format. This link is used to create the below Image FOrmat guard let imageConversionToCGImage = img.cgImage, …
DURGA_PRASAD
  • 1,239
  • 1
  • 8
  • 7
0
votes
0 answers

Find median for an image array for background estimation fast in Swift/ObjectiveC

I need to estimate the background across multiple frames of a stationary video (not-moving camera). I have a number of frames and want to calculate the median for each pixel across all frames (usually 10 to 100 frames). I was able to do that with…
Mando
  • 11,414
  • 17
  • 86
  • 167
0
votes
2 answers

Getting RGBA values for all pixels of CGImage Swift

I am trying to create a real time video processing app, in which I need to get the RGBA values of all pixels for each frame, and process them using an external library, and show them. I am trying to get the RGBA value for each pixel, but it is too…
0
votes
1 answer

Extracting image channels via vImage comes with side effect

I'm trying to use the vImageConvert_ARGB8888toPlanar8 API to extract RGB channels. Suppose the following inputImage is a solid white image from: https://www.solidbackgrounds.com/images/1080x1920/1080x1920-white-solid-color-background.jpg Here is my…
0
votes
0 answers

Manipulate CVPixelbuffer, vImage, CGImage and UIImage for a rotation

I get from AR session, the current frame with: self.sceneView.session.currentFrame?.capturedImage so I get a CVPixelBuffer with my image information. I followed this link to convert my CVPixelBuffer to CGImage. (I use previously createCGImage method…
A.Ozda
  • 39
  • 9