Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Question about downsampling upsampling and image size #20

Open
dbriard opened this issue Oct 25, 2022 · 0 comments
Open

Question about downsampling upsampling and image size #20

dbriard opened this issue Oct 25, 2022 · 0 comments

Comments

@dbriard
Copy link

dbriard commented Oct 25, 2022

Hi and thank you for your great paper.

I am a bit confused by the input and output image sizes in the proposed method to refine the coarse mask.
Let's say the source images are 4000x3000 and the inferred mask is 256x256, and forget about the post-processing steps (denoising, luminosity, etc...). So the idea is to do guided upscaling of the inferred mask to the input image size to restore missing details (holes in trees, fine details).

  1. Is the modified guided filter supposed to do this upscaling alone, or does it only refine the mask at coarse resolution? 256x256 pixels, or quarter or input image size? (1024x768)

  2. Is the 64x scale factor for the full size image? and should I have to upscale the mask to 4000x3000 using (one single ?) bilinear interpolation before applying the modified guided filter? (in the provided code, I can see 256x factor, or 4x64 ??).

  3. In the suppl. material pdf, you said you use the modified guided filter to compute an image of a quarter resolution of the original image. Then, use a bilinear interpolation... but to me that will produce blured mask, not 1:1 quality mask. Do you then apply another small guided filter?

  4. Is the 64x scale factor the equivalent of a box filter radius 64 pixels in the original guided filter implementation?

Many thanks if you can help with my questions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant