Giter VIP home page Giter VIP logo

Comments (8)

mparkan avatar mparkan commented on June 12, 2024

Did you install and load the required octave packages ("image", "statistics")?

If not, type the following in the octave Command Window:
pkg install image -forge
pkg install statistics -forge

from digital-forestry-toolbox.

diouck avatar diouck commented on June 12, 2024

Hello and thank you for your answer.Thank you very much after the installation I launched the pkg load image command and it worked.
Thank

from digital-forestry-toolbox.

diouck avatar diouck commented on June 12, 2024

I'm just going to ask a question how can I export the segmentation to get the grip of the canopic surface in shp format

from digital-forestry-toolbox.

diouck avatar diouck commented on June 12, 2024

Otherwise, at levels of exercise 3, I also have this error
>> ind = sub2ind([nrows, ncols], P(:,1), P(:,2)); error: 'nrows' undefined near line 1 column 16
have you un idea

Thanks

from digital-forestry-toolbox.

diouck avatar diouck commented on June 12, 2024

Hello, For info compared to tutorial 3, I had to try to hazar the numbers. And I put the proposed numbers to make it work.

`>> ind = sub2ind([1, 2], P(:,1), P(:,2));
error: sub2ind: index (2001,_): out of bound 1

ind = sub2ind([10, 20], P(:,1), P(:,2));
error: sub2ind: index (2001,): out of bound 10
ind = sub2ind([2001, 20], P(:,1), P(:,2));
error: sub2ind: index (
,2801): out of bound 20
ind = sub2ind([2001, 2801], P(:,1), P(:,2));
xyh = [pc.record.x, pc.record.y, pc.record.z - models.terrain.values(ind)];
`

However, it is impossible to export the data in csv format
`>> fid = fopen('C:\LIDAR\NM\tiges.csv', 'w+'); % open file

fprintf(fid, 'X, Y, H\n'); % write header line
fprintf(fid, '%.2f, %.2f, %.2f\n', xyh_stem'); % write r
ecords
fclose(fid); % close file
xyh_stem
xyh_stem =
fid
fid = 6
`
But my question is how to find nrows and ncols directly.

Thank you

from digital-forestry-toolbox.

diouck avatar diouck commented on June 12, 2024

Now to find nrows and ncols i use
[nrows, ncols] = size(models.terrain.values);
But impossible to export data to CSV file

from digital-forestry-toolbox.

mparkan avatar mparkan commented on June 12, 2024

Please make sure:

  • you are running the tutorial_3.m file (and not copy pasting code from the webpage)
  • you have installed and loaded all the required Octave packages

I've also modified tutorial 2 to allow export of segment (individual tree) boundaries. Let me know how it works.

from digital-forestry-toolbox.

mparkan avatar mparkan commented on June 12, 2024

Closing this due to inactivity.

from digital-forestry-toolbox.

Related Issues (13)

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.