Giter Club home page Giter Club logo

Comments (3)

namratadutt avatar namratadutt commented on May 25, 2024 1

I apologize for the late response. I think I had a different file at that time. Here is the code to extract the hypercube from the mat file. Good luck!

# File directory
basedir = os.getcwd()
truth_file = basedir + "/muufl_gulfport_campus_1_hsi_220_label.mat"

# Read mat file
mat = scipy.io.loadmat(truth_file)

# Extract hypercube
hsi = ((mat['hsi'])[0])[0]
hyper = hsi[1] # hypercube

from lidar-and-hyperspectral-fusion-classification.

HarshAditya23 avatar HarshAditya23 commented on May 25, 2024

Can tell me how to generate classified output (classified map) as a result?? I tried using y_pred function but no luck.

Have you tried to use the program of 2018 Houston Data of Hyperspec & Lidar ?

from lidar-and-hyperspectral-fusion-classification.

namratadutt avatar namratadutt commented on May 25, 2024

Are you asking how to generate the classified/ segmented map of the entire ROI? I usually take this approach. I firstly flatten the hypercube pixels from (height x width x bands) --> ((height*width) x bands). Secondly, I make the predictions using the model.predict() function in Keras. Thirdly, I reshape the predictions back to (height x width).

from lidar-and-hyperspectral-fusion-classification.

Related Issues (1)

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.