Hi all, I’m currently implementing some CV operation on image impainting,
For example I have an image (pytorch) with size (C, H, W) (C may greater than 3) and I want to keep non-zeros pixel and fill the 0-value pixel with background, how can I do this. I do not need to do backpropagation so you can use CV or numpy operations.
I have tried filling the zero-valued pixel with the top left pixel of the original image for example but it look not natural at all, my point is can we do some heuristic methods like apply gaussian CNN kernels or stuff like that with the aim of creating natural images
I think you’ll have to be a bit more specific about what you’re looking for. Creating natural images is a whole field and it can get really challenging (google GANs). You asked about some simple heuristic method, which sounds like a good idea, but without knowing what your domain is or more details it’s very difficult to blindly suggest a reasonable heuristics. Typically good heuristics require intuition about the domain.