Relative Content

Tag Archive for iosswiftaccelerate

Using vImageFloodFill_ARGB8888 on iOS to create a Flood fill for a UIImage

using the accelerate framework which I don’t really fully comprehend if I am honest, I am trying to create a flood fill for a UIImage. I have a UIImage extension I’ve create but the result I get is unpredictable if the image is of anything. If the UIImage is a single color image where every pixel is identical then the result is as expoected but if I take an image from my camera roll and attempt to run the floodfill I get a mess. This is the code I’m working with