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

Question about downsampling upsampling and image size #20

Description

@dbriard

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions