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
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
Reza DShafa 2021년 2월 3일
it's already installed and only this function is not recognised by matlab. how can i acces to the source code of this function? may you please share it with me. thanks
Unrecognized function or variable 'createImagePatchesFromHypercube'.
Error in CSCNN (line 15)
[allPatches,allLabels] = createImagePatchesFromHypercube(imageData,gtLabel,windowSize);
this is the error
per isakson
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
Reza DShafa 2021년 2월 4일
@per isaksonper isakson
i did as you said. reinstalled it again and this is what happens 'createImagePatchesFromHypercube' not found. the code doesn't work in here either but with different error this time hypercube function is not recognised. thanks for helping me.
per isakson
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
Reza DShafa 2021년 2월 4일
thanks a lot.
Jiang Karen
Jiang Karen 2021년 9월 13일
I also encountered the same problem, have you solved it?

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2021년 9월 13일

0 개 추천

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')
filename = '/MATLAB/examples/deeplearning_shared/main/createImagePatchesFromHypercube.m'
ls(filename)
/MATLAB/examples/deeplearning_shared/main/createImagePatchesFromHypercube.m
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
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.
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
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에 대해 자세히 알아보기

질문:

2021년 2월 3일

편집:

2021년 9월 13일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by