Coder Social home page Coder Social logo

a runtime error about niswgsp HOT 3 CLOSED

nothinglo avatar nothinglo commented on August 24, 2024
a runtime error

from niswgsp.

Comments (3)

nothinglo avatar nothinglo commented on August 24, 2024 1

Hi, I surmise the problem is due to the wrong index of each image in the *STITCH-GRAPH.txt.

In "AANAP-roundabout-STITCH-GRAPH.txt"

{center_image_index | 1 | center image index}
{center_image_rotation_angle | 0 | center image rotation angle}
{images_count | 4 | images count}
{matching_graph_image_edges-0 | 1,3 | matching graph image edge 0}
{matching_graph_image_edges-1 | 2,3 | matching graph image edge 1}

0 => roundabout0 image
1 => roundabout1 image
2 => roundabout2 image
3 => roundabout3 image

But the index is not consistent between your device and mine.

The reason is according to your output:

roundabout0 rect = [1.17309e+06 x 1.58113e+06 from (2.06305e+06, 1.13368e+06)]
roundabout3 rect = [2.15131e+06 x 3.12946e+06 from (765193, 0)]
roundabout1 rect = [1.88212e+06 x 1.3209e+06 from (952085, 1.66553e+06)]
roundabout2 rect = [5.51731e+06 x 3.61797e+06 from (0, 36694.4)]

and mine:

roundabout0 rect = [855.777 x 566.812 from (0, 135.668)]
roundabout1 rect = [859.329 x 578.347 from (541.454, 123.999)]
roundabout2 rect = [906.457 x 610.837 from (939.36, 8.92342)]
roundabout3 rect = [889.318 x 594.416 from (119.783, 0)]

Thus, I consider that if you correct the indices in the *STITCH-GRAPH.txt, then the problem will be solved. You can try it first and I will adjust my code to prevent this situation in different devices. However, I am quite busy recently. I hope I could fix it as soon as possible. Thanks!

from niswgsp.

yzsz avatar yzsz commented on August 24, 2024

Thanks, I tried to use scandir instead of opendir+readdir and it works.

from niswgsp.

Liuzichi avatar Liuzichi commented on August 24, 2024

Thanks, I tried to use scandir instead of opendir+readdir and it works.
What do you change for fix this bug?

from niswgsp.

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.