Giter Site home page Giter Site logo

Comments (3)

polarkernel avatar polarkernel commented on August 18, 2024 1

The value for edgeSight is 0.49597, just below the threshold of 0.5 to get a front facade. Its way-segment has a lot of quite near facades, which makes its average distance low. Maybe we leave this threshold for a moment and collect other examples before we screw at this parameter.

from blosm.

vvoovv avatar vvoovv commented on August 18, 2024

Another example is just across the street from the back facade in the first message. Both side and back facades should be classified as the front ones.

image

from blosm.

polarkernel avatar polarkernel commented on August 18, 2024

Another example is just across the street from the back facade in the first message. Both side and back facades should be classified as the front ones.

These two facades are not classified as front facades due to the angle weight in edgeSight computation, similar to corner facades (see issue #14). But here we can't use similar considerations. We could try to relax the angle restriction by extending the angle weight and allow a broader range of angles. For instance the weight could be set to one until 45° and to start the restriction there (red line):

But then, many other facades also get classified as front facades, for instance in bern_old_town.osm the facades pointed to by cyan arrows in the follwing image:

Such changes are delicate. You may try yourself and see whether you agree with the result by replacing the line 50 in facade_classification.py by the follwoing three lines:

                pseudoAngle = visInfo.dx/(visInfo.dx+visInfo.dy) * 2.
                angleWeight = pseudoAngle if pseudoAngle < 1. else 1.
                edgeSight = visInfo.value * angleWeight  * visInfo.waySegment.avgDist/visInfo.distance

from blosm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.