필터 지우기
필터 지우기

how to solve this error?

조회 수: 1 (최근 30일)
MOHAMED GILANI
MOHAMED GILANI 2021년 5월 25일
댓글: Image Analyst 2021년 5월 25일
Undefined function 'cnnFeatures_newnew' for input arguments of type 'SeriesNetwork'.
W_CNN=double(cnnFeatures_newnew(I,vgg19));
RGB_proposed=zeros([size(I,1),size(I,2),size(I,3)]);
for ii=1:n
for jj=1:3
temp(:,:,jj)=W_CNN(:,:,jj,ii).*I(:,:,jj,ii);
end
RGB_proposed=RGB_proposed+temp;
end
any solution for this?

답변 (1개)

Image Analyst
Image Analyst 2021년 5월 25일
편집: Image Analyst 2021년 5월 25일
It does not know the variable called cnnFeatures_newnew. Why do you think it should? That variable is not just magically going to appear in your program -- you have to define it somewhere/somehow first.
Or if you've defined it as a function (or array), it doesn't know how to use a second argument (or index) of the type vgg19.
  댓글 수: 2
MOHAMED GILANI
MOHAMED GILANI 2021년 5월 25일
its already defined as function
but with is wrong with vgg19?
Image Analyst
Image Analyst 2021년 5월 25일
It looks like you've redefined the size() function. Or you've made ii a function. What does this say if you put it right before line 3
which -all size
which -all ii

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

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by