You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am very new to image processing, sorry if I mix up things.
I am working on a segmentation problem for macOS, I get a mask of size 320x320 that I need to scale up to the original image size then I can applied the mask against it.
The problem I am facing is when scaling up using Lanczos resampling I get very smooth edges in the scaled mask, then when getting the segmented image I can see the background, (this is very noticeable in the hair).
Original image
Segmented image
Small mask
LanczosResampling
For masking I am just doing:
let maskedImageRef = originalImageCGImage.masking(cgImageMask)
let maskedImage = NSImage(cgImage: maskedImageRef, size: size)
return maskedImage.drawImage()
Any advice on how can I improve make the edges?
Thank you! ❤️
The text was updated successfully, but these errors were encountered:
Hi everyone 👋, amazing framework GPUImage!
I am very new to image processing, sorry if I mix up things.
I am working on a segmentation problem for macOS, I get a mask of size 320x320 that I need to scale up to the original image size then I can applied the mask against it.
The problem I am facing is when scaling up using Lanczos resampling I get very smooth edges in the scaled mask, then when getting the segmented image I can see the background, (this is very noticeable in the hair).
For masking I am just doing:
Any advice on how can I improve make the edges?
Thank you! ❤️
The text was updated successfully, but these errors were encountered: