이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
What is the solution to this error?
조회 수: 1 (최근 30일)
이전 댓글 표시
What this error main?
.....
>> SSDBExperiment_BuildCropDataset
Error using fullfile (line 67)
All inputs must be strings, character vectors, or cell arrays of character vectors.
Error in SSDBExperiment_BuildCropDataset (line 17)
D.SaveDir = fullfile(D.Root, 'CropData');
.......
I have file with name (fullfile.m)
What should I do, which lines need change to work correctly.
Thank you in advanced.
댓글 수: 24
Walter Roberson
2022년 3월 9일
You cannot pass a struct array into fullfile()
Perhaps one of the fields inside D.Root is what you need.
Ruwaida Lawgali
2022년 3월 9일
D.Root contains 6 images
DefaultRoot=load('DefaultRoot.mat'); %-->DefaultRoot
D.Root =DefaultRoot;
Walter Roberson
2022년 3월 10일
When you use that form of load(), then the output variable DefaultRoot will be created as a struct vector with one field name for each variable stored in the .mat file.
Your code is not expecting DefaultRoot.mat to contain images: your code is expecting that it will contain a variable named DefaultRoot that is the name of the parent directory of CropData where the data is to be stored.
ResolveMissingOptions() is then used to create options.SaveDir that is what is actually used later.
Ruwaida Lawgali
2022년 3월 10일
When I put :
D.SaveDir = fullfile('C:\Users\ALSRAYA\Desktop\codes\codeHMAX\Caltech\PNGImages\cars', 'CropData');
instead of :
D.SaveDir = fullfile(D.Root, 'CropData');
it works without errors, and gaves this result:
........
>> SSDBExperiment_BuildCropDataset
imageLabelingSession0 positives were selected
Generating the set of negative crop locations at 6 per positive...
done
saved progress in C:\Users\ALSRAYA\Desktop\codes\codeHMAX\Caltech\PNGImages\cars\CropData\MyFirstData_car_CroppingInfo.mat
Actutally cropping the data now...
FRACTION_NUM =
1
>>
..........
is it correct????
Walter Roberson
2022년 3월 10일
That looks plausible.
Or you could leave the code the way it was but put in
D.Root = 'C:\Users\ALSRAYA\Desktop\codes\codeHMAX\Caltech\PNGImages\cars';
before D.Root is used.
Ruwaida Lawgali
2022년 3월 10일
How can I find the next file to be run after the main file???
I have a code with 41 files.
Thank you in advanced
Walter Roberson
2022년 3월 10일
CAfilelist.mat variable CAfilelist needs to be a cell array . Each element of the cell array must be a struct that contains a field named olistname that is used by QReadOList2 and the result of that Q* call needs to be a struct that contains a field named 'car'
But, options.UsableIndices had to be set first, and options is created by ResolveMissingOptions, which we do not have the source code for, so I do not know if D.Root is used in creating the options.
Ruwaida Lawgali
2022년 3월 11일
I have these things.
CAfilelist.mat variable CAfilelist needs to be a cell array .
CAfilelist.mat (1x3547 cell)
...............
Each element of the cell array must be a struct that contains a field named olistname
Anno_OList\SSDB00001_olist.mat ........to n
Ruwaida Lawgali
2022년 3월 11일
Good evening,
When I run the next file.m(ResolveMissingOptions)
I got this:
requires more input arguments to run.
........
ResolveMissingOptions(options, d)
Undefined function or variable 'options'.
........
What should I put as a defualt (options, d) =(?,?)
Thank you.
Walter Roberson
2022년 3월 11일
It looks like options.UsableIndices is being set from the assignment
D.UsableIndices = 1:300;
If I read the code correctly, that already tells it to use the first 300 entries from CAfilelist .
I have a code with 41 files.
But your display from CAfilelist shows 3547 ?
Ruwaida Lawgali
2022년 3월 11일
I mean when I decompressed the code, I found (41 file.m), including (SSDBExperiment_BuildCropDataset).
But
what does this mean:
But your display from CAfilelist shows 3547 ?
Thank you.
Walter Roberson
2022년 3월 13일
What did you get the software from? Was there no description of it?
I searched for some key function names, but I was not able to find that software anywhere, so I do not know where it is from or how it is intended to be used.
Ruwaida Lawgali
2022년 3월 13일
편집: Walter Roberson
2022년 3월 13일
Well, maybe I selected an Incomplete code for HMAX.
First of all, I have studied many papers about Object Recognition.
Then, I wanted to make an execute for this subject.
So, I focused on the paper that made the first standard for HMAX(Robust Object Recognition with Cortex-Like Mechanisms)
They said:
"Both the source code of our system and the StreetScenes data set used in our experiments are readily available [16].
[16] A software implementation of the system as well as the StreetScenes data set, http://cbcl.mit.edu/software-datasets , 2006."
I downloaded the code from this site.
So, I just need to execute the HMAX code, Then add a small modification.
This thing is really important for my dissertation.
After all, can you help me to find a complete and correct code for my subject, please.
To make a comparison with other papers, I need to execute the original code, and get the accuracy.
Then, I will add a corner detection to solve the problem that found in Standard HMAX.
Thank you.
Walter Roberson
2022년 3월 13일
I am not sure which code link you used? When I look at that site they say that HMAX was for a 1999 paper and the MATLAB code is no longer available from them.
Ruwaida Lawgali
2022년 3월 13일
what do you think of this code ?
is it a standrd?
CBCL <cbcl-noreply@mit.edu>
The following link will be valid for 24 hours:
Walter Roberson
2022년 3월 13일
It looks like it is layered on top of a different software package, and that most of the computation work is done in C. It looks like the work was done roughly a decade ago.
It is an unusual way of writing code, but it is possible that it fits in well with their other software package.
Walter Roberson
2022년 3월 14일
You would install the CNS package first and then this set of software, and then you would be able to use it from MATLAB. It defines a set of MATLAB classes and methods but does the computation in C for efficiency.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
아시아 태평양
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)