Coder Social home page Coder Social logo

Floating-point MRF w/ LERC compression depth maps are correctly read, but the viewer is all black and measuring tools cannot be used about oriented-imagery HOT 7 CLOSED

esri avatar esri commented on June 1, 2024
Floating-point MRF w/ LERC compression depth maps are correctly read, but the viewer is all black and measuring tools cannot be used

from oriented-imagery.

Comments (7)

kushu493 avatar kushu493 commented on June 1, 2024

Can you share the sample with @abhiataero? I will look into it.

from oriented-imagery.

kushu493 avatar kushu493 commented on June 1, 2024

Hi Alex,

I looked into it. The MRF files with LERC compression that you provided have issues. They are not encoded properly. I can't even load MRF file in ArcGIS Pro.

from oriented-imagery.

AlexanderPoone avatar AlexanderPoone commented on June 1, 2024

If the file is corrupt, then why does the pixels array have correct values

from oriented-imagery.

kushu493 avatar kushu493 commented on June 1, 2024

Pixels array also have wrong values. You can try to load the .lrc file with the sample app provided here. https://github.com/Esri/lerc
This is a lerc reader.

from oriented-imagery.

AlexanderPoone avatar AlexanderPoone commented on June 1, 2024

I see, thanks!

from oriented-imagery.

AlexanderPoone avatar AlexanderPoone commented on June 1, 2024

I know why the issue occurs now:
Under addDepthValues() in viewer.js:

                    var d = t.statistics[0].minValue,
                        u = t.statistics[0].maxValue,
                        g = 255 / (u - d);

u happens to be Infinity because I forgot to handle them, and g equals 0

from oriented-imagery.

AlexanderPoone avatar AlexanderPoone commented on June 1, 2024

Thanks Kushagra, the European dataset is all fixed now!
(The Brandenburg Gate is shown below)

from oriented-imagery.

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.