Skip to content

Computation of commonSize #1

Description

@maltesilber

Hi @shuuchen,
I have a question regarding your code.
In the function sumNormalizedFeatures we compute the commonSize with

commonWidth = startSize[0] / 2**(levels/2 - 1)
commonHeight = startSize[1] / 2**(levels/2 - 1)

I do not quite understand why we devide by 2**(levels/2 - 1). Which would be 2**3.5. Shoudn't it be

commonWidth = startSize[0] / 2**((levels-1)/2)
commonHeight = startSize[1] / 2**((levels-1)/2)

Which would leave us with 2**4=16. This makes more sense to me since the reduction factor at scale 4 is 1:16. Or am I misunderstanding something?

Thanks in advance :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions