How to use vImageFloodFill_Planar16U to flood fill an Image
I’ve been attempting to flood fill an image using vImageFloodFill_ARGB8888 and it won’t work. There’s not way to set the threshold for minute color difference so the fill actually fills. Sop I thought that
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