error in example code
显示 更早的评论
i wanted to try example in Classify Hyperspectral Images Using Deep Learning code in my matlab, but matlab doesn't recognize createImagePatchesFromHypercube function. also i can't run this example here, although you mentiond This function is attached to the example as a supporting file.
could you please help me, thanks.
7 个评论
Walter Roberson
2021-2-3
"To perform hyperspectral image analysis, download the Image Processing Toolbox Hyperspectral Imaging Library from the Add-On Explorer"
Reza DShafa
2021-2-3
per isakson
2021-2-4
编辑:per isakson
2021-2-4
If you already installed it, make sure it's on the search path. Run
which createImagePatchesFromHypercube
If that doesn't solve it, reinstall.
Image Processing Toolbox™ Hyperspectral Imaging Library provides MATLAB® functions and tools for hyperspectral image processing and visualization.Use the functions in this library to read, write, and
Reza DShafa
2021-2-4
per isakson
2021-2-4
I didn't install the library and cannot see its content.
Use the little envelope icon to Contact MathWorks Image Processing Team. Or report your problems in the Comment thread of the submission.
Reza DShafa
2021-2-4
Jiang Karen
2021-9-13
I also encountered the same problem, have you solved it?
回答(1 个)
Once the Hyperspectral add-on is installed, then the master copy of that file is at
filename = fullfile(matlabroot, 'examples', 'deeplearning_shared', 'main', 'createImagePatchesFromHypercube.m')
ls(filename)
This file is not on your MATLAB path, and it is not intended that you use it directly. Instead, you need to
openExample('deeplearning_shared/HyperspectralImageClassificationUsingDeepLearningExample')
which will create a directory for you that holds the example and runs any necessary initialization.
3 个评论
Jiang Karen
2021-9-13
I have tried using the method you provided, but it still doesn't work.
Can you share the function createImagePatchesFromHypercube file?
That .m file can solve all my problems. Thank you sincerely.
Walter Roberson
2021-9-13
What do you see if you
filedir = fullfile(matlabroot, 'examples', 'deeplearning_shared', 'main');
ls(filedir)
Can you share the function
No, my understanding is that it is copyrighted code, and I do not have the authority to make it available to other people.
Jiang Karen
2021-9-13
编辑:Jiang Karen
2021-9-13
I think these functions are open source, because these libraries can be downloaded for free.
I also downloaded the toolbox, there may be some bugs.
Other people and I also encountered the same problem.
Hope you can help me. Sincerely.
Email: jklblue@qq.com
类别
在 帮助中心 和 File Exchange 中查找有关 Hyperspectral Image Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!