GithubHelp home page GithubHelp logo

Comments (3)

chris-cooper avatar chris-cooper commented on June 16, 2024 2

Thanks for the info and links @oscarlorentzon !

from mapillary-js.

oscarlorentzon avatar oscarlorentzon commented on June 16, 2024

Thanks for the interest in mapillary-js.

Are there standard open source toolsets for generating tile pyramids that are easy to hook up to mapillary-js with a data provider?

It is possible to use an image server like loris. An image tiles request from mapillary-js (imageId + zoom level) need to be converted to the relevant tiles for that level and that specific image and each tile needs to specify the loris URLs including the IIIF region. Something along this line was done in an earlier version of mapillary-js.

Is the tiling scheme used by GraphDataProvider documented publicly?

It is not documented publicly as of now. The tiling scheme is similar to 2D map tiling schemes (e.g. Bing tiles) in general and is built as quad tree.

For the lowest level, 0, an image can have a maximum size of 1px x 1px. For level 1 is an image can have a maximum size of 2px x 2px. I use maximum size here because most images are not square so the downsized image may also be rectangular.

In mapillary-js we have currently hardcoded the minimum level we request tiles for to 11 and the tile size is set to 1024.

The best documentation for now is the code in the src/tile folder, with the TileMath logic the core of the tiling scheme.

Does an equirectangular image get converted to a cubemap prior to tiling?

No conversion is performed, the equirectangular image is the one that is tiled.

Let me know if you want to pursue a solution and I can provide more insight.

from mapillary-js.

oscarlorentzon avatar oscarlorentzon commented on June 16, 2024

The optimal solution here would be to break out the image tiling functionality into an ImageTileProvider concept (like the DataProvider and GeometryProvider). Then anyone could implement the ImageTileProvider interface and define their own tiling scheme, tile size etc.

from mapillary-js.

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.