I searched the matlabroot, but do not find the function, and ' doc' and 'edit' command still find it.
so where to find resizeImage2D ?
捕获asda.PNG

 채택된 답변

Steven Lord
Steven Lord 2019년 3월 6일

0 개 추천

It is a function in the nnet.internal.cnnhost package directory. Its name is not resizeImage2D but nnet.internal.cnnhost.resizeImage2D. As the "internal" part of the package name indicates, you should not write code depending on the behavior or existence of this function in a future release.
According to the which function, this function is built-in and so you cannot read the code.
>> which -all nnet.internal.cnnhost.resizeImage2D
resizeImage2D is a built-in method % static method or package function

댓글 수: 4

Jack Xiao
Jack Xiao 2019년 3월 7일
Thank you, but i still do not find the function (nnet.internal.cnnhost.resizeImage2D) in the nnet.internal.cnnhost package directory.
捕获3221.PNG
Image Analyst
Image Analyst 2019년 3월 7일
I don't have it either. It must be built-in more than we think.
Exactly why do you need the m-file (if there was one, which there isn't)? What's wrong with using regular imresize()?
And you didn't say whether any error was thrown by the code you showed. (If not, why do you even care if you can see source code for that function?)
Jack Xiao
Jack Xiao 2019년 3월 7일
it is from a example demo of matlab. i find it support uint8 data to be single type after resize.
maybe it is from a c file.
i think it is for reducing ram space for gpu computation.
and imresize (the data type won't be changed) will be ok if there is enough gpu ram.
thank you!
Steven Lord
Steven Lord 2019년 3월 7일
It's built-in and there is no help text for it. Don't write code that depends on it functioning a particular way or even it existing in a future release.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Big Data Processing에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 3월 6일

댓글:

2019년 3월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by