Undefined function or variable 'centerCropWindow2d'

The following error is thrown .....
Undefined function or variable 'centerCropWindow2d'
What do I need to set to use the method 'centerCropWindow2d'?
Thank you.

回答(1 个)

Do you have Image Processing Toolbox installed and licensed?
Are you using release R2019b or later?
According to this function's documentation page it was introduced as part of Image Processing Toolbox in release R2019b. If you don't have this toolbox or are using an older release you will not be able to use it.

2 个评论

Hi Steven,
Thank you for your prompt reply and for the explanation. The university has the license but we are running R2019a release. I guess, I will need to implement my own 'centerCropWindow2d' from the scratch, could you please give me a hint on how to implement this function please.
Thank you.
I have same question. Following...

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by