Git Product home page Git Product logo

Comments (3)

cvvergara avatar cvvergara commented on August 22, 2024

This is not a solution, but @sanak helped me to make an automated testing in my computer.
I have in my computer a directory with the lion and the the results of running the converter:

#[BIN]
./PotreeConverter lion_takanawa.las -s 0.15 -l 3 -o bin --output-format BINARY > stats/binStats.txt
#[LAS]
./PotreeConverter lion_takanawa.las -s 0.15 -l 3 -o las --output-format LAS > stats/lasStats.txt

this is the directory:

drwxr-xr-x 4 mapas users      4096 ago  2 21:49 bin
-rw-r--r-- 1 mapas users       552 ago  2 21:51 compare.sh
drwxr-xr-x 4 mapas users      4096 ago  2 21:12 las
-rw-r--r-- 1 mapas users  30030774 ago  20:55 lion_takanawa.7z        
-rw-r--r-- 1 mapas users 118397431 jun  3  2014 lion_takanawa.las

The compare.sh does the same convertions, but I store in a different directory, and diff compare directories, I also diff compare all the statistics that come from the command.

# [BINARY]
./PotreeConverter lion_takanawa.las -s 0.15 -l 3 -o binTest --output-format BINARY > stats/binStatsTest.txt
#[LAS]
./PotreeConverter lion_takanawa.las -s 0.15 -l 3 -o lasTest --output-format LAS > stats/lasStatsTest.txt
#[LAZ]   -- doesnt work for ubuntu
#PotreeConverter lion_takanawa.las -s 0.15 -l 3 -o laz --output-format LAZ
echo comparing binary stats
diff stats/binStats.txt stats/binStatsTest.txt
echo comparing las stats
diff stats/lasStats.txt stats/lasStatsTest.txt

echo comparing BINARY
diff -bur bin binTest

echo comparing LAS
diff -bur las lasTest

this is a run I made to make sure that the for-loop didn't modify the output:

$ sh compare.sh 
comparing binary stats
28c28
< duration: 5.223s
---
> duration: 3.924s
comparing las stats
28c28
< duration: 4.973s
---
> duration: 4.032s
comparing BINARY
comparing LAS

(looks like it is a second faster... but if you really want to make an statistic of how much faster it is, more figures are needed and for each one at least 30 times needs to be executed under the same conditions, so that an average can be performed with a good degree of freedom and make a size / time relationship).

from potreeconverter.

cvvergara avatar cvvergara commented on August 22, 2024

For travis:
For testing, the tiger is a very complicated figure, A test is to be thought as "for this input I expect this output".
With simpler figures like:
Cube, pyramid, cone, sphere, cylinder.

  1. first its easier to check visually that the output is correct.
  2. so we expect the same output when code changes
  3. and a complex figure/map,
    It needs to be considered that everything goes to the repository so take into account the size.

The input: the figures: they can be stored in zip/tar
The expected output: its a directory and it can be zip/tar

The script that does the checking in travis:
unzip/untar the input and output,
runs the commands,
does the comparison
prints out any difference.

from potreeconverter.

cvvergara avatar cvvergara commented on August 22, 2024

From the code I can see that there are several conversion that can be done, right now I only have the
las to las
las to binary
But all possible conversion combinations needs to be tested also

from potreeconverter.

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.