Skip to content

ratio calculation in c++ generated filterContours returns 0  #810

@dwpage

Description

@dwpage

This:
double ratio = bb.width / bb.height;

Appears to be doing integer division, I switched to:
double ratio = (double)bb.width / (double)bb.height;

and got what I expected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions